Documentation ¶
Index ¶
- Constants
- 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 CareerSkill
- func (cs *CareerSkill) QueryCareerSkillGroup() *CareerSkillGroupQuery
- func (cs *CareerSkill) QuerySkill() *SkillQuery
- func (cs *CareerSkill) String() string
- func (cs *CareerSkill) Unwrap() *CareerSkill
- func (cs *CareerSkill) Update() *CareerSkillUpdateOne
- func (cs *CareerSkill) Value(name string) (ent.Value, error)
- type CareerSkillClient
- func (c *CareerSkillClient) Create() *CareerSkillCreate
- func (c *CareerSkillClient) CreateBulk(builders ...*CareerSkillCreate) *CareerSkillCreateBulk
- func (c *CareerSkillClient) Delete() *CareerSkillDelete
- func (c *CareerSkillClient) DeleteOne(cs *CareerSkill) *CareerSkillDeleteOne
- func (c *CareerSkillClient) DeleteOneID(id int) *CareerSkillDeleteOne
- func (c *CareerSkillClient) Get(ctx context.Context, id int) (*CareerSkill, error)
- func (c *CareerSkillClient) GetX(ctx context.Context, id int) *CareerSkill
- func (c *CareerSkillClient) Hooks() []Hook
- func (c *CareerSkillClient) Intercept(interceptors ...Interceptor)
- func (c *CareerSkillClient) Interceptors() []Interceptor
- func (c *CareerSkillClient) Query() *CareerSkillQuery
- func (c *CareerSkillClient) QueryCareerSkillGroup(cs *CareerSkill) *CareerSkillGroupQuery
- func (c *CareerSkillClient) QuerySkill(cs *CareerSkill) *SkillQuery
- func (c *CareerSkillClient) Update() *CareerSkillUpdate
- func (c *CareerSkillClient) UpdateOne(cs *CareerSkill) *CareerSkillUpdateOne
- func (c *CareerSkillClient) UpdateOneID(id int) *CareerSkillUpdateOne
- func (c *CareerSkillClient) Use(hooks ...Hook)
- type CareerSkillCreate
- func (csc *CareerSkillCreate) Exec(ctx context.Context) error
- func (csc *CareerSkillCreate) ExecX(ctx context.Context)
- func (csc *CareerSkillCreate) Mutation() *CareerSkillMutation
- func (csc *CareerSkillCreate) OnConflict(opts ...sql.ConflictOption) *CareerSkillUpsertOne
- func (csc *CareerSkillCreate) OnConflictColumns(columns ...string) *CareerSkillUpsertOne
- func (csc *CareerSkillCreate) Save(ctx context.Context) (*CareerSkill, error)
- func (csc *CareerSkillCreate) SaveX(ctx context.Context) *CareerSkill
- func (csc *CareerSkillCreate) SetCareerSkillGroup(c *CareerSkillGroup) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetCareerSkillGroupID(id int) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetCreateTime(t time.Time) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetNillableCreateTime(t *time.Time) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetNillableUpdateTime(t *time.Time) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetNillableVersion(s *string) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetSkill(s *Skill) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetSkillID(id int) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetUpdateTime(t time.Time) *CareerSkillCreate
- func (csc *CareerSkillCreate) SetVersion(s string) *CareerSkillCreate
- type CareerSkillCreateBulk
- func (cscb *CareerSkillCreateBulk) Exec(ctx context.Context) error
- func (cscb *CareerSkillCreateBulk) ExecX(ctx context.Context)
- func (cscb *CareerSkillCreateBulk) OnConflict(opts ...sql.ConflictOption) *CareerSkillUpsertBulk
- func (cscb *CareerSkillCreateBulk) OnConflictColumns(columns ...string) *CareerSkillUpsertBulk
- func (cscb *CareerSkillCreateBulk) Save(ctx context.Context) ([]*CareerSkill, error)
- func (cscb *CareerSkillCreateBulk) SaveX(ctx context.Context) []*CareerSkill
- type CareerSkillDelete
- type CareerSkillDeleteOne
- type CareerSkillEdges
- type CareerSkillGroup
- func (csg *CareerSkillGroup) QueryCareer() *UserCareerQuery
- func (csg *CareerSkillGroup) QueryCareerSkills() *CareerSkillQuery
- func (csg *CareerSkillGroup) String() string
- func (csg *CareerSkillGroup) Unwrap() *CareerSkillGroup
- func (csg *CareerSkillGroup) Update() *CareerSkillGroupUpdateOne
- func (csg *CareerSkillGroup) Value(name string) (ent.Value, error)
- type CareerSkillGroupBy
- func (csgb *CareerSkillGroupBy) Aggregate(fns ...AggregateFunc) *CareerSkillGroupBy
- func (s *CareerSkillGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CareerSkillGroupBy) BoolX(ctx context.Context) bool
- func (s *CareerSkillGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CareerSkillGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CareerSkillGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CareerSkillGroupBy) Float64X(ctx context.Context) float64
- func (s *CareerSkillGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CareerSkillGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CareerSkillGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CareerSkillGroupBy) IntX(ctx context.Context) int
- func (s *CareerSkillGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CareerSkillGroupBy) IntsX(ctx context.Context) []int
- func (csgb *CareerSkillGroupBy) Scan(ctx context.Context, v any) error
- func (s *CareerSkillGroupBy) ScanX(ctx context.Context, v any)
- func (s *CareerSkillGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CareerSkillGroupBy) StringX(ctx context.Context) string
- func (s *CareerSkillGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CareerSkillGroupBy) StringsX(ctx context.Context) []string
- type CareerSkillGroupClient
- func (c *CareerSkillGroupClient) Create() *CareerSkillGroupCreate
- func (c *CareerSkillGroupClient) CreateBulk(builders ...*CareerSkillGroupCreate) *CareerSkillGroupCreateBulk
- func (c *CareerSkillGroupClient) Delete() *CareerSkillGroupDelete
- func (c *CareerSkillGroupClient) DeleteOne(csg *CareerSkillGroup) *CareerSkillGroupDeleteOne
- func (c *CareerSkillGroupClient) DeleteOneID(id int) *CareerSkillGroupDeleteOne
- func (c *CareerSkillGroupClient) Get(ctx context.Context, id int) (*CareerSkillGroup, error)
- func (c *CareerSkillGroupClient) GetX(ctx context.Context, id int) *CareerSkillGroup
- func (c *CareerSkillGroupClient) Hooks() []Hook
- func (c *CareerSkillGroupClient) Intercept(interceptors ...Interceptor)
- func (c *CareerSkillGroupClient) Interceptors() []Interceptor
- func (c *CareerSkillGroupClient) Query() *CareerSkillGroupQuery
- func (c *CareerSkillGroupClient) QueryCareer(csg *CareerSkillGroup) *UserCareerQuery
- func (c *CareerSkillGroupClient) QueryCareerSkills(csg *CareerSkillGroup) *CareerSkillQuery
- func (c *CareerSkillGroupClient) Update() *CareerSkillGroupUpdate
- func (c *CareerSkillGroupClient) UpdateOne(csg *CareerSkillGroup) *CareerSkillGroupUpdateOne
- func (c *CareerSkillGroupClient) UpdateOneID(id int) *CareerSkillGroupUpdateOne
- func (c *CareerSkillGroupClient) Use(hooks ...Hook)
- type CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) AddCareerSkillIDs(ids ...int) *CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) AddCareerSkills(c ...*CareerSkill) *CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) Exec(ctx context.Context) error
- func (csgc *CareerSkillGroupCreate) ExecX(ctx context.Context)
- func (csgc *CareerSkillGroupCreate) Mutation() *CareerSkillGroupMutation
- func (csgc *CareerSkillGroupCreate) OnConflict(opts ...sql.ConflictOption) *CareerSkillGroupUpsertOne
- func (csgc *CareerSkillGroupCreate) OnConflictColumns(columns ...string) *CareerSkillGroupUpsertOne
- func (csgc *CareerSkillGroupCreate) Save(ctx context.Context) (*CareerSkillGroup, error)
- func (csgc *CareerSkillGroupCreate) SaveX(ctx context.Context) *CareerSkillGroup
- func (csgc *CareerSkillGroupCreate) SetCareer(u *UserCareer) *CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) SetCareerID(id int) *CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) SetCreateTime(t time.Time) *CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) SetLabel(s string) *CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) SetNillableCreateTime(t *time.Time) *CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) SetNillableUpdateTime(t *time.Time) *CareerSkillGroupCreate
- func (csgc *CareerSkillGroupCreate) SetUpdateTime(t time.Time) *CareerSkillGroupCreate
- type CareerSkillGroupCreateBulk
- func (csgcb *CareerSkillGroupCreateBulk) Exec(ctx context.Context) error
- func (csgcb *CareerSkillGroupCreateBulk) ExecX(ctx context.Context)
- func (csgcb *CareerSkillGroupCreateBulk) OnConflict(opts ...sql.ConflictOption) *CareerSkillGroupUpsertBulk
- func (csgcb *CareerSkillGroupCreateBulk) OnConflictColumns(columns ...string) *CareerSkillGroupUpsertBulk
- func (csgcb *CareerSkillGroupCreateBulk) Save(ctx context.Context) ([]*CareerSkillGroup, error)
- func (csgcb *CareerSkillGroupCreateBulk) SaveX(ctx context.Context) []*CareerSkillGroup
- type CareerSkillGroupDelete
- type CareerSkillGroupDeleteOne
- type CareerSkillGroupEdges
- type CareerSkillGroupGroupBy
- func (csggb *CareerSkillGroupGroupBy) Aggregate(fns ...AggregateFunc) *CareerSkillGroupGroupBy
- func (s *CareerSkillGroupGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CareerSkillGroupGroupBy) BoolX(ctx context.Context) bool
- func (s *CareerSkillGroupGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CareerSkillGroupGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CareerSkillGroupGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CareerSkillGroupGroupBy) Float64X(ctx context.Context) float64
- func (s *CareerSkillGroupGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CareerSkillGroupGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CareerSkillGroupGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CareerSkillGroupGroupBy) IntX(ctx context.Context) int
- func (s *CareerSkillGroupGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CareerSkillGroupGroupBy) IntsX(ctx context.Context) []int
- func (csggb *CareerSkillGroupGroupBy) Scan(ctx context.Context, v any) error
- func (s *CareerSkillGroupGroupBy) ScanX(ctx context.Context, v any)
- func (s *CareerSkillGroupGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CareerSkillGroupGroupBy) StringX(ctx context.Context) string
- func (s *CareerSkillGroupGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CareerSkillGroupGroupBy) StringsX(ctx context.Context) []string
- type CareerSkillGroupMutation
- func (m *CareerSkillGroupMutation) AddCareerSkillIDs(ids ...int)
- func (m *CareerSkillGroupMutation) AddField(name string, value ent.Value) error
- func (m *CareerSkillGroupMutation) AddedEdges() []string
- func (m *CareerSkillGroupMutation) AddedField(name string) (ent.Value, bool)
- func (m *CareerSkillGroupMutation) AddedFields() []string
- func (m *CareerSkillGroupMutation) AddedIDs(name string) []ent.Value
- func (m *CareerSkillGroupMutation) CareerCleared() bool
- func (m *CareerSkillGroupMutation) CareerID() (id int, exists bool)
- func (m *CareerSkillGroupMutation) CareerIDs() (ids []int)
- func (m *CareerSkillGroupMutation) CareerSkillsCleared() bool
- func (m *CareerSkillGroupMutation) CareerSkillsIDs() (ids []int)
- func (m *CareerSkillGroupMutation) ClearCareer()
- func (m *CareerSkillGroupMutation) ClearCareerSkills()
- func (m *CareerSkillGroupMutation) ClearEdge(name string) error
- func (m *CareerSkillGroupMutation) ClearField(name string) error
- func (m *CareerSkillGroupMutation) ClearedEdges() []string
- func (m *CareerSkillGroupMutation) ClearedFields() []string
- func (m CareerSkillGroupMutation) Client() *Client
- func (m *CareerSkillGroupMutation) CreateTime() (r time.Time, exists bool)
- func (m *CareerSkillGroupMutation) EdgeCleared(name string) bool
- func (m *CareerSkillGroupMutation) Field(name string) (ent.Value, bool)
- func (m *CareerSkillGroupMutation) FieldCleared(name string) bool
- func (m *CareerSkillGroupMutation) Fields() []string
- func (m *CareerSkillGroupMutation) ID() (id int, exists bool)
- func (m *CareerSkillGroupMutation) IDs(ctx context.Context) ([]int, error)
- func (m *CareerSkillGroupMutation) Label() (r string, exists bool)
- func (m *CareerSkillGroupMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *CareerSkillGroupMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CareerSkillGroupMutation) OldLabel(ctx context.Context) (v string, err error)
- func (m *CareerSkillGroupMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *CareerSkillGroupMutation) Op() Op
- func (m *CareerSkillGroupMutation) RemoveCareerSkillIDs(ids ...int)
- func (m *CareerSkillGroupMutation) RemovedCareerSkillsIDs() (ids []int)
- func (m *CareerSkillGroupMutation) RemovedEdges() []string
- func (m *CareerSkillGroupMutation) RemovedIDs(name string) []ent.Value
- func (m *CareerSkillGroupMutation) ResetCareer()
- func (m *CareerSkillGroupMutation) ResetCareerSkills()
- func (m *CareerSkillGroupMutation) ResetCreateTime()
- func (m *CareerSkillGroupMutation) ResetEdge(name string) error
- func (m *CareerSkillGroupMutation) ResetField(name string) error
- func (m *CareerSkillGroupMutation) ResetLabel()
- func (m *CareerSkillGroupMutation) ResetUpdateTime()
- func (m *CareerSkillGroupMutation) SetCareerID(id int)
- func (m *CareerSkillGroupMutation) SetCreateTime(t time.Time)
- func (m *CareerSkillGroupMutation) SetField(name string, value ent.Value) error
- func (m *CareerSkillGroupMutation) SetLabel(s string)
- func (m *CareerSkillGroupMutation) SetOp(op Op)
- func (m *CareerSkillGroupMutation) SetUpdateTime(t time.Time)
- func (m CareerSkillGroupMutation) Tx() (*Tx, error)
- func (m *CareerSkillGroupMutation) Type() string
- func (m *CareerSkillGroupMutation) UpdateTime() (r time.Time, exists bool)
- func (m *CareerSkillGroupMutation) Where(ps ...predicate.CareerSkillGroup)
- func (m *CareerSkillGroupMutation) WhereP(ps ...func(*sql.Selector))
- type CareerSkillGroupQuery
- func (csgq *CareerSkillGroupQuery) Aggregate(fns ...AggregateFunc) *CareerSkillGroupSelect
- func (csgq *CareerSkillGroupQuery) All(ctx context.Context) ([]*CareerSkillGroup, error)
- func (csgq *CareerSkillGroupQuery) AllX(ctx context.Context) []*CareerSkillGroup
- func (csgq *CareerSkillGroupQuery) Clone() *CareerSkillGroupQuery
- func (csgq *CareerSkillGroupQuery) Count(ctx context.Context) (int, error)
- func (csgq *CareerSkillGroupQuery) CountX(ctx context.Context) int
- func (csgq *CareerSkillGroupQuery) Exist(ctx context.Context) (bool, error)
- func (csgq *CareerSkillGroupQuery) ExistX(ctx context.Context) bool
- func (csgq *CareerSkillGroupQuery) First(ctx context.Context) (*CareerSkillGroup, error)
- func (csgq *CareerSkillGroupQuery) FirstID(ctx context.Context) (id int, err error)
- func (csgq *CareerSkillGroupQuery) FirstIDX(ctx context.Context) int
- func (csgq *CareerSkillGroupQuery) FirstX(ctx context.Context) *CareerSkillGroup
- func (csgq *CareerSkillGroupQuery) GroupBy(field string, fields ...string) *CareerSkillGroupGroupBy
- func (csgq *CareerSkillGroupQuery) IDs(ctx context.Context) (ids []int, err error)
- func (csgq *CareerSkillGroupQuery) IDsX(ctx context.Context) []int
- func (csgq *CareerSkillGroupQuery) Limit(limit int) *CareerSkillGroupQuery
- func (csgq *CareerSkillGroupQuery) Offset(offset int) *CareerSkillGroupQuery
- func (csgq *CareerSkillGroupQuery) Only(ctx context.Context) (*CareerSkillGroup, error)
- func (csgq *CareerSkillGroupQuery) OnlyID(ctx context.Context) (id int, err error)
- func (csgq *CareerSkillGroupQuery) OnlyIDX(ctx context.Context) int
- func (csgq *CareerSkillGroupQuery) OnlyX(ctx context.Context) *CareerSkillGroup
- func (csgq *CareerSkillGroupQuery) Order(o ...careerskillgroup.OrderOption) *CareerSkillGroupQuery
- func (csgq *CareerSkillGroupQuery) QueryCareer() *UserCareerQuery
- func (csgq *CareerSkillGroupQuery) QueryCareerSkills() *CareerSkillQuery
- func (csgq *CareerSkillGroupQuery) Select(fields ...string) *CareerSkillGroupSelect
- func (csgq *CareerSkillGroupQuery) Unique(unique bool) *CareerSkillGroupQuery
- func (csgq *CareerSkillGroupQuery) Where(ps ...predicate.CareerSkillGroup) *CareerSkillGroupQuery
- func (csgq *CareerSkillGroupQuery) WithCareer(opts ...func(*UserCareerQuery)) *CareerSkillGroupQuery
- func (csgq *CareerSkillGroupQuery) WithCareerSkills(opts ...func(*CareerSkillQuery)) *CareerSkillGroupQuery
- type CareerSkillGroupSelect
- func (csgs *CareerSkillGroupSelect) Aggregate(fns ...AggregateFunc) *CareerSkillGroupSelect
- func (s *CareerSkillGroupSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CareerSkillGroupSelect) BoolX(ctx context.Context) bool
- func (s *CareerSkillGroupSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CareerSkillGroupSelect) BoolsX(ctx context.Context) []bool
- func (s *CareerSkillGroupSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CareerSkillGroupSelect) Float64X(ctx context.Context) float64
- func (s *CareerSkillGroupSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CareerSkillGroupSelect) Float64sX(ctx context.Context) []float64
- func (s *CareerSkillGroupSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CareerSkillGroupSelect) IntX(ctx context.Context) int
- func (s *CareerSkillGroupSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CareerSkillGroupSelect) IntsX(ctx context.Context) []int
- func (csgs *CareerSkillGroupSelect) Scan(ctx context.Context, v any) error
- func (s *CareerSkillGroupSelect) ScanX(ctx context.Context, v any)
- func (s *CareerSkillGroupSelect) String(ctx context.Context) (_ string, err error)
- func (s *CareerSkillGroupSelect) StringX(ctx context.Context) string
- func (s *CareerSkillGroupSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CareerSkillGroupSelect) StringsX(ctx context.Context) []string
- type CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) AddCareerSkillIDs(ids ...int) *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) AddCareerSkills(c ...*CareerSkill) *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) ClearCareer() *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) ClearCareerSkills() *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) Exec(ctx context.Context) error
- func (csgu *CareerSkillGroupUpdate) ExecX(ctx context.Context)
- func (csgu *CareerSkillGroupUpdate) Mutation() *CareerSkillGroupMutation
- func (csgu *CareerSkillGroupUpdate) RemoveCareerSkillIDs(ids ...int) *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) RemoveCareerSkills(c ...*CareerSkill) *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) Save(ctx context.Context) (int, error)
- func (csgu *CareerSkillGroupUpdate) SaveX(ctx context.Context) int
- func (csgu *CareerSkillGroupUpdate) SetCareer(u *UserCareer) *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) SetCareerID(id int) *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) SetLabel(s string) *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) SetUpdateTime(t time.Time) *CareerSkillGroupUpdate
- func (csgu *CareerSkillGroupUpdate) Where(ps ...predicate.CareerSkillGroup) *CareerSkillGroupUpdate
- type CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) AddCareerSkillIDs(ids ...int) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) AddCareerSkills(c ...*CareerSkill) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) ClearCareer() *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) ClearCareerSkills() *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) Exec(ctx context.Context) error
- func (csguo *CareerSkillGroupUpdateOne) ExecX(ctx context.Context)
- func (csguo *CareerSkillGroupUpdateOne) Mutation() *CareerSkillGroupMutation
- func (csguo *CareerSkillGroupUpdateOne) RemoveCareerSkillIDs(ids ...int) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) RemoveCareerSkills(c ...*CareerSkill) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) Save(ctx context.Context) (*CareerSkillGroup, error)
- func (csguo *CareerSkillGroupUpdateOne) SaveX(ctx context.Context) *CareerSkillGroup
- func (csguo *CareerSkillGroupUpdateOne) Select(field string, fields ...string) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) SetCareer(u *UserCareer) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) SetCareerID(id int) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) SetLabel(s string) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) SetUpdateTime(t time.Time) *CareerSkillGroupUpdateOne
- func (csguo *CareerSkillGroupUpdateOne) Where(ps ...predicate.CareerSkillGroup) *CareerSkillGroupUpdateOne
- type CareerSkillGroupUpsert
- func (u *CareerSkillGroupUpsert) SetLabel(v string) *CareerSkillGroupUpsert
- func (u *CareerSkillGroupUpsert) SetUpdateTime(v time.Time) *CareerSkillGroupUpsert
- func (u *CareerSkillGroupUpsert) UpdateLabel() *CareerSkillGroupUpsert
- func (u *CareerSkillGroupUpsert) UpdateUpdateTime() *CareerSkillGroupUpsert
- type CareerSkillGroupUpsertBulk
- func (u *CareerSkillGroupUpsertBulk) DoNothing() *CareerSkillGroupUpsertBulk
- func (u *CareerSkillGroupUpsertBulk) Exec(ctx context.Context) error
- func (u *CareerSkillGroupUpsertBulk) ExecX(ctx context.Context)
- func (u *CareerSkillGroupUpsertBulk) Ignore() *CareerSkillGroupUpsertBulk
- func (u *CareerSkillGroupUpsertBulk) SetLabel(v string) *CareerSkillGroupUpsertBulk
- func (u *CareerSkillGroupUpsertBulk) SetUpdateTime(v time.Time) *CareerSkillGroupUpsertBulk
- func (u *CareerSkillGroupUpsertBulk) Update(set func(*CareerSkillGroupUpsert)) *CareerSkillGroupUpsertBulk
- func (u *CareerSkillGroupUpsertBulk) UpdateLabel() *CareerSkillGroupUpsertBulk
- func (u *CareerSkillGroupUpsertBulk) UpdateNewValues() *CareerSkillGroupUpsertBulk
- func (u *CareerSkillGroupUpsertBulk) UpdateUpdateTime() *CareerSkillGroupUpsertBulk
- type CareerSkillGroupUpsertOne
- func (u *CareerSkillGroupUpsertOne) DoNothing() *CareerSkillGroupUpsertOne
- func (u *CareerSkillGroupUpsertOne) Exec(ctx context.Context) error
- func (u *CareerSkillGroupUpsertOne) ExecX(ctx context.Context)
- func (u *CareerSkillGroupUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *CareerSkillGroupUpsertOne) IDX(ctx context.Context) int
- func (u *CareerSkillGroupUpsertOne) Ignore() *CareerSkillGroupUpsertOne
- func (u *CareerSkillGroupUpsertOne) SetLabel(v string) *CareerSkillGroupUpsertOne
- func (u *CareerSkillGroupUpsertOne) SetUpdateTime(v time.Time) *CareerSkillGroupUpsertOne
- func (u *CareerSkillGroupUpsertOne) Update(set func(*CareerSkillGroupUpsert)) *CareerSkillGroupUpsertOne
- func (u *CareerSkillGroupUpsertOne) UpdateLabel() *CareerSkillGroupUpsertOne
- func (u *CareerSkillGroupUpsertOne) UpdateNewValues() *CareerSkillGroupUpsertOne
- func (u *CareerSkillGroupUpsertOne) UpdateUpdateTime() *CareerSkillGroupUpsertOne
- type CareerSkillGroups
- type CareerSkillMutation
- func (m *CareerSkillMutation) AddField(name string, value ent.Value) error
- func (m *CareerSkillMutation) AddedEdges() []string
- func (m *CareerSkillMutation) AddedField(name string) (ent.Value, bool)
- func (m *CareerSkillMutation) AddedFields() []string
- func (m *CareerSkillMutation) AddedIDs(name string) []ent.Value
- func (m *CareerSkillMutation) CareerSkillGroupCleared() bool
- func (m *CareerSkillMutation) CareerSkillGroupID() (id int, exists bool)
- func (m *CareerSkillMutation) CareerSkillGroupIDs() (ids []int)
- func (m *CareerSkillMutation) ClearCareerSkillGroup()
- func (m *CareerSkillMutation) ClearEdge(name string) error
- func (m *CareerSkillMutation) ClearField(name string) error
- func (m *CareerSkillMutation) ClearSkill()
- func (m *CareerSkillMutation) ClearVersion()
- func (m *CareerSkillMutation) ClearedEdges() []string
- func (m *CareerSkillMutation) ClearedFields() []string
- func (m CareerSkillMutation) Client() *Client
- func (m *CareerSkillMutation) CreateTime() (r time.Time, exists bool)
- func (m *CareerSkillMutation) EdgeCleared(name string) bool
- func (m *CareerSkillMutation) Field(name string) (ent.Value, bool)
- func (m *CareerSkillMutation) FieldCleared(name string) bool
- func (m *CareerSkillMutation) Fields() []string
- func (m *CareerSkillMutation) ID() (id int, exists bool)
- func (m *CareerSkillMutation) IDs(ctx context.Context) ([]int, error)
- func (m *CareerSkillMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *CareerSkillMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CareerSkillMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *CareerSkillMutation) OldVersion(ctx context.Context) (v *string, err error)
- func (m *CareerSkillMutation) Op() Op
- func (m *CareerSkillMutation) RemovedEdges() []string
- func (m *CareerSkillMutation) RemovedIDs(name string) []ent.Value
- func (m *CareerSkillMutation) ResetCareerSkillGroup()
- func (m *CareerSkillMutation) ResetCreateTime()
- func (m *CareerSkillMutation) ResetEdge(name string) error
- func (m *CareerSkillMutation) ResetField(name string) error
- func (m *CareerSkillMutation) ResetSkill()
- func (m *CareerSkillMutation) ResetUpdateTime()
- func (m *CareerSkillMutation) ResetVersion()
- func (m *CareerSkillMutation) SetCareerSkillGroupID(id int)
- func (m *CareerSkillMutation) SetCreateTime(t time.Time)
- func (m *CareerSkillMutation) SetField(name string, value ent.Value) error
- func (m *CareerSkillMutation) SetOp(op Op)
- func (m *CareerSkillMutation) SetSkillID(id int)
- func (m *CareerSkillMutation) SetUpdateTime(t time.Time)
- func (m *CareerSkillMutation) SetVersion(s string)
- func (m *CareerSkillMutation) SkillCleared() bool
- func (m *CareerSkillMutation) SkillID() (id int, exists bool)
- func (m *CareerSkillMutation) SkillIDs() (ids []int)
- func (m CareerSkillMutation) Tx() (*Tx, error)
- func (m *CareerSkillMutation) Type() string
- func (m *CareerSkillMutation) UpdateTime() (r time.Time, exists bool)
- func (m *CareerSkillMutation) Version() (r string, exists bool)
- func (m *CareerSkillMutation) VersionCleared() bool
- func (m *CareerSkillMutation) Where(ps ...predicate.CareerSkill)
- func (m *CareerSkillMutation) WhereP(ps ...func(*sql.Selector))
- type CareerSkillQuery
- func (csq *CareerSkillQuery) Aggregate(fns ...AggregateFunc) *CareerSkillSelect
- func (csq *CareerSkillQuery) All(ctx context.Context) ([]*CareerSkill, error)
- func (csq *CareerSkillQuery) AllX(ctx context.Context) []*CareerSkill
- func (csq *CareerSkillQuery) Clone() *CareerSkillQuery
- func (csq *CareerSkillQuery) Count(ctx context.Context) (int, error)
- func (csq *CareerSkillQuery) CountX(ctx context.Context) int
- func (csq *CareerSkillQuery) Exist(ctx context.Context) (bool, error)
- func (csq *CareerSkillQuery) ExistX(ctx context.Context) bool
- func (csq *CareerSkillQuery) First(ctx context.Context) (*CareerSkill, error)
- func (csq *CareerSkillQuery) FirstID(ctx context.Context) (id int, err error)
- func (csq *CareerSkillQuery) FirstIDX(ctx context.Context) int
- func (csq *CareerSkillQuery) FirstX(ctx context.Context) *CareerSkill
- func (csq *CareerSkillQuery) GroupBy(field string, fields ...string) *CareerSkillGroupBy
- func (csq *CareerSkillQuery) IDs(ctx context.Context) (ids []int, err error)
- func (csq *CareerSkillQuery) IDsX(ctx context.Context) []int
- func (csq *CareerSkillQuery) Limit(limit int) *CareerSkillQuery
- func (csq *CareerSkillQuery) Offset(offset int) *CareerSkillQuery
- func (csq *CareerSkillQuery) Only(ctx context.Context) (*CareerSkill, error)
- func (csq *CareerSkillQuery) OnlyID(ctx context.Context) (id int, err error)
- func (csq *CareerSkillQuery) OnlyIDX(ctx context.Context) int
- func (csq *CareerSkillQuery) OnlyX(ctx context.Context) *CareerSkill
- func (csq *CareerSkillQuery) Order(o ...careerskill.OrderOption) *CareerSkillQuery
- func (csq *CareerSkillQuery) QueryCareerSkillGroup() *CareerSkillGroupQuery
- func (csq *CareerSkillQuery) QuerySkill() *SkillQuery
- func (csq *CareerSkillQuery) Select(fields ...string) *CareerSkillSelect
- func (csq *CareerSkillQuery) Unique(unique bool) *CareerSkillQuery
- func (csq *CareerSkillQuery) Where(ps ...predicate.CareerSkill) *CareerSkillQuery
- func (csq *CareerSkillQuery) WithCareerSkillGroup(opts ...func(*CareerSkillGroupQuery)) *CareerSkillQuery
- func (csq *CareerSkillQuery) WithSkill(opts ...func(*SkillQuery)) *CareerSkillQuery
- type CareerSkillSelect
- func (css *CareerSkillSelect) Aggregate(fns ...AggregateFunc) *CareerSkillSelect
- func (s *CareerSkillSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CareerSkillSelect) BoolX(ctx context.Context) bool
- func (s *CareerSkillSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CareerSkillSelect) BoolsX(ctx context.Context) []bool
- func (s *CareerSkillSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CareerSkillSelect) Float64X(ctx context.Context) float64
- func (s *CareerSkillSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CareerSkillSelect) Float64sX(ctx context.Context) []float64
- func (s *CareerSkillSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CareerSkillSelect) IntX(ctx context.Context) int
- func (s *CareerSkillSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CareerSkillSelect) IntsX(ctx context.Context) []int
- func (css *CareerSkillSelect) Scan(ctx context.Context, v any) error
- func (s *CareerSkillSelect) ScanX(ctx context.Context, v any)
- func (s *CareerSkillSelect) String(ctx context.Context) (_ string, err error)
- func (s *CareerSkillSelect) StringX(ctx context.Context) string
- func (s *CareerSkillSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CareerSkillSelect) StringsX(ctx context.Context) []string
- type CareerSkillUpdate
- func (csu *CareerSkillUpdate) ClearCareerSkillGroup() *CareerSkillUpdate
- func (csu *CareerSkillUpdate) ClearSkill() *CareerSkillUpdate
- func (csu *CareerSkillUpdate) ClearVersion() *CareerSkillUpdate
- func (csu *CareerSkillUpdate) Exec(ctx context.Context) error
- func (csu *CareerSkillUpdate) ExecX(ctx context.Context)
- func (csu *CareerSkillUpdate) Mutation() *CareerSkillMutation
- func (csu *CareerSkillUpdate) Save(ctx context.Context) (int, error)
- func (csu *CareerSkillUpdate) SaveX(ctx context.Context) int
- func (csu *CareerSkillUpdate) SetCareerSkillGroup(c *CareerSkillGroup) *CareerSkillUpdate
- func (csu *CareerSkillUpdate) SetCareerSkillGroupID(id int) *CareerSkillUpdate
- func (csu *CareerSkillUpdate) SetNillableVersion(s *string) *CareerSkillUpdate
- func (csu *CareerSkillUpdate) SetSkill(s *Skill) *CareerSkillUpdate
- func (csu *CareerSkillUpdate) SetSkillID(id int) *CareerSkillUpdate
- func (csu *CareerSkillUpdate) SetUpdateTime(t time.Time) *CareerSkillUpdate
- func (csu *CareerSkillUpdate) SetVersion(s string) *CareerSkillUpdate
- func (csu *CareerSkillUpdate) Where(ps ...predicate.CareerSkill) *CareerSkillUpdate
- type CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) ClearCareerSkillGroup() *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) ClearSkill() *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) ClearVersion() *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) Exec(ctx context.Context) error
- func (csuo *CareerSkillUpdateOne) ExecX(ctx context.Context)
- func (csuo *CareerSkillUpdateOne) Mutation() *CareerSkillMutation
- func (csuo *CareerSkillUpdateOne) Save(ctx context.Context) (*CareerSkill, error)
- func (csuo *CareerSkillUpdateOne) SaveX(ctx context.Context) *CareerSkill
- func (csuo *CareerSkillUpdateOne) Select(field string, fields ...string) *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) SetCareerSkillGroup(c *CareerSkillGroup) *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) SetCareerSkillGroupID(id int) *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) SetNillableVersion(s *string) *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) SetSkill(s *Skill) *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) SetSkillID(id int) *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) SetUpdateTime(t time.Time) *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) SetVersion(s string) *CareerSkillUpdateOne
- func (csuo *CareerSkillUpdateOne) Where(ps ...predicate.CareerSkill) *CareerSkillUpdateOne
- type CareerSkillUpsert
- func (u *CareerSkillUpsert) ClearVersion() *CareerSkillUpsert
- func (u *CareerSkillUpsert) SetUpdateTime(v time.Time) *CareerSkillUpsert
- func (u *CareerSkillUpsert) SetVersion(v string) *CareerSkillUpsert
- func (u *CareerSkillUpsert) UpdateUpdateTime() *CareerSkillUpsert
- func (u *CareerSkillUpsert) UpdateVersion() *CareerSkillUpsert
- type CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) ClearVersion() *CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) DoNothing() *CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) Exec(ctx context.Context) error
- func (u *CareerSkillUpsertBulk) ExecX(ctx context.Context)
- func (u *CareerSkillUpsertBulk) Ignore() *CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) SetUpdateTime(v time.Time) *CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) SetVersion(v string) *CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) Update(set func(*CareerSkillUpsert)) *CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) UpdateNewValues() *CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) UpdateUpdateTime() *CareerSkillUpsertBulk
- func (u *CareerSkillUpsertBulk) UpdateVersion() *CareerSkillUpsertBulk
- type CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) ClearVersion() *CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) DoNothing() *CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) Exec(ctx context.Context) error
- func (u *CareerSkillUpsertOne) ExecX(ctx context.Context)
- func (u *CareerSkillUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *CareerSkillUpsertOne) IDX(ctx context.Context) int
- func (u *CareerSkillUpsertOne) Ignore() *CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) SetUpdateTime(v time.Time) *CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) SetVersion(v string) *CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) Update(set func(*CareerSkillUpsert)) *CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) UpdateNewValues() *CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) UpdateUpdateTime() *CareerSkillUpsertOne
- func (u *CareerSkillUpsertOne) UpdateVersion() *CareerSkillUpsertOne
- type CareerSkills
- type CareerTask
- func (ct *CareerTask) QueryCareer() *UserCareerQuery
- func (ct *CareerTask) QueryCareerTaskDescriptions() *CareerTaskDescriptionQuery
- func (ct *CareerTask) String() string
- func (ct *CareerTask) Unwrap() *CareerTask
- func (ct *CareerTask) Update() *CareerTaskUpdateOne
- func (ct *CareerTask) Value(name string) (ent.Value, error)
- type CareerTaskClient
- func (c *CareerTaskClient) Create() *CareerTaskCreate
- func (c *CareerTaskClient) CreateBulk(builders ...*CareerTaskCreate) *CareerTaskCreateBulk
- func (c *CareerTaskClient) Delete() *CareerTaskDelete
- func (c *CareerTaskClient) DeleteOne(ct *CareerTask) *CareerTaskDeleteOne
- func (c *CareerTaskClient) DeleteOneID(id int) *CareerTaskDeleteOne
- func (c *CareerTaskClient) Get(ctx context.Context, id int) (*CareerTask, error)
- func (c *CareerTaskClient) GetX(ctx context.Context, id int) *CareerTask
- func (c *CareerTaskClient) Hooks() []Hook
- func (c *CareerTaskClient) Intercept(interceptors ...Interceptor)
- func (c *CareerTaskClient) Interceptors() []Interceptor
- func (c *CareerTaskClient) Query() *CareerTaskQuery
- func (c *CareerTaskClient) QueryCareer(ct *CareerTask) *UserCareerQuery
- func (c *CareerTaskClient) QueryCareerTaskDescriptions(ct *CareerTask) *CareerTaskDescriptionQuery
- func (c *CareerTaskClient) Update() *CareerTaskUpdate
- func (c *CareerTaskClient) UpdateOne(ct *CareerTask) *CareerTaskUpdateOne
- func (c *CareerTaskClient) UpdateOneID(id int) *CareerTaskUpdateOne
- func (c *CareerTaskClient) Use(hooks ...Hook)
- type CareerTaskCreate
- func (ctc *CareerTaskCreate) AddCareerTaskDescriptionIDs(ids ...int) *CareerTaskCreate
- func (ctc *CareerTaskCreate) AddCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskCreate
- func (ctc *CareerTaskCreate) Exec(ctx context.Context) error
- func (ctc *CareerTaskCreate) ExecX(ctx context.Context)
- func (ctc *CareerTaskCreate) Mutation() *CareerTaskMutation
- func (ctc *CareerTaskCreate) OnConflict(opts ...sql.ConflictOption) *CareerTaskUpsertOne
- func (ctc *CareerTaskCreate) OnConflictColumns(columns ...string) *CareerTaskUpsertOne
- func (ctc *CareerTaskCreate) Save(ctx context.Context) (*CareerTask, error)
- func (ctc *CareerTaskCreate) SaveX(ctx context.Context) *CareerTask
- func (ctc *CareerTaskCreate) SetCareer(u *UserCareer) *CareerTaskCreate
- func (ctc *CareerTaskCreate) SetCareerID(id int) *CareerTaskCreate
- func (ctc *CareerTaskCreate) SetCreateTime(t time.Time) *CareerTaskCreate
- func (ctc *CareerTaskCreate) SetName(s string) *CareerTaskCreate
- func (ctc *CareerTaskCreate) SetNillableCreateTime(t *time.Time) *CareerTaskCreate
- func (ctc *CareerTaskCreate) SetNillableUpdateTime(t *time.Time) *CareerTaskCreate
- func (ctc *CareerTaskCreate) SetUpdateTime(t time.Time) *CareerTaskCreate
- type CareerTaskCreateBulk
- func (ctcb *CareerTaskCreateBulk) Exec(ctx context.Context) error
- func (ctcb *CareerTaskCreateBulk) ExecX(ctx context.Context)
- func (ctcb *CareerTaskCreateBulk) OnConflict(opts ...sql.ConflictOption) *CareerTaskUpsertBulk
- func (ctcb *CareerTaskCreateBulk) OnConflictColumns(columns ...string) *CareerTaskUpsertBulk
- func (ctcb *CareerTaskCreateBulk) Save(ctx context.Context) ([]*CareerTask, error)
- func (ctcb *CareerTaskCreateBulk) SaveX(ctx context.Context) []*CareerTask
- type CareerTaskDelete
- type CareerTaskDeleteOne
- type CareerTaskDescription
- func (ctd *CareerTaskDescription) QueryCareerTask() *CareerTaskQuery
- func (ctd *CareerTaskDescription) String() string
- func (ctd *CareerTaskDescription) Unwrap() *CareerTaskDescription
- func (ctd *CareerTaskDescription) Update() *CareerTaskDescriptionUpdateOne
- func (ctd *CareerTaskDescription) Value(name string) (ent.Value, error)
- type CareerTaskDescriptionClient
- func (c *CareerTaskDescriptionClient) Create() *CareerTaskDescriptionCreate
- func (c *CareerTaskDescriptionClient) CreateBulk(builders ...*CareerTaskDescriptionCreate) *CareerTaskDescriptionCreateBulk
- func (c *CareerTaskDescriptionClient) Delete() *CareerTaskDescriptionDelete
- func (c *CareerTaskDescriptionClient) DeleteOne(ctd *CareerTaskDescription) *CareerTaskDescriptionDeleteOne
- func (c *CareerTaskDescriptionClient) DeleteOneID(id int) *CareerTaskDescriptionDeleteOne
- func (c *CareerTaskDescriptionClient) Get(ctx context.Context, id int) (*CareerTaskDescription, error)
- func (c *CareerTaskDescriptionClient) GetX(ctx context.Context, id int) *CareerTaskDescription
- func (c *CareerTaskDescriptionClient) Hooks() []Hook
- func (c *CareerTaskDescriptionClient) Intercept(interceptors ...Interceptor)
- func (c *CareerTaskDescriptionClient) Interceptors() []Interceptor
- func (c *CareerTaskDescriptionClient) Query() *CareerTaskDescriptionQuery
- func (c *CareerTaskDescriptionClient) QueryCareerTask(ctd *CareerTaskDescription) *CareerTaskQuery
- func (c *CareerTaskDescriptionClient) Update() *CareerTaskDescriptionUpdate
- func (c *CareerTaskDescriptionClient) UpdateOne(ctd *CareerTaskDescription) *CareerTaskDescriptionUpdateOne
- func (c *CareerTaskDescriptionClient) UpdateOneID(id int) *CareerTaskDescriptionUpdateOne
- func (c *CareerTaskDescriptionClient) Use(hooks ...Hook)
- type CareerTaskDescriptionCreate
- func (ctdc *CareerTaskDescriptionCreate) Exec(ctx context.Context) error
- func (ctdc *CareerTaskDescriptionCreate) ExecX(ctx context.Context)
- func (ctdc *CareerTaskDescriptionCreate) Mutation() *CareerTaskDescriptionMutation
- func (ctdc *CareerTaskDescriptionCreate) OnConflict(opts ...sql.ConflictOption) *CareerTaskDescriptionUpsertOne
- func (ctdc *CareerTaskDescriptionCreate) OnConflictColumns(columns ...string) *CareerTaskDescriptionUpsertOne
- func (ctdc *CareerTaskDescriptionCreate) Save(ctx context.Context) (*CareerTaskDescription, error)
- func (ctdc *CareerTaskDescriptionCreate) SaveX(ctx context.Context) *CareerTaskDescription
- func (ctdc *CareerTaskDescriptionCreate) SetCareerTask(c *CareerTask) *CareerTaskDescriptionCreate
- func (ctdc *CareerTaskDescriptionCreate) SetCareerTaskID(id int) *CareerTaskDescriptionCreate
- func (ctdc *CareerTaskDescriptionCreate) SetDescription(s string) *CareerTaskDescriptionCreate
- type CareerTaskDescriptionCreateBulk
- func (ctdcb *CareerTaskDescriptionCreateBulk) Exec(ctx context.Context) error
- func (ctdcb *CareerTaskDescriptionCreateBulk) ExecX(ctx context.Context)
- func (ctdcb *CareerTaskDescriptionCreateBulk) OnConflict(opts ...sql.ConflictOption) *CareerTaskDescriptionUpsertBulk
- func (ctdcb *CareerTaskDescriptionCreateBulk) OnConflictColumns(columns ...string) *CareerTaskDescriptionUpsertBulk
- func (ctdcb *CareerTaskDescriptionCreateBulk) Save(ctx context.Context) ([]*CareerTaskDescription, error)
- func (ctdcb *CareerTaskDescriptionCreateBulk) SaveX(ctx context.Context) []*CareerTaskDescription
- type CareerTaskDescriptionDelete
- type CareerTaskDescriptionDeleteOne
- type CareerTaskDescriptionEdges
- type CareerTaskDescriptionGroupBy
- func (ctdgb *CareerTaskDescriptionGroupBy) Aggregate(fns ...AggregateFunc) *CareerTaskDescriptionGroupBy
- func (s *CareerTaskDescriptionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CareerTaskDescriptionGroupBy) BoolX(ctx context.Context) bool
- func (s *CareerTaskDescriptionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CareerTaskDescriptionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CareerTaskDescriptionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CareerTaskDescriptionGroupBy) Float64X(ctx context.Context) float64
- func (s *CareerTaskDescriptionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CareerTaskDescriptionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CareerTaskDescriptionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CareerTaskDescriptionGroupBy) IntX(ctx context.Context) int
- func (s *CareerTaskDescriptionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CareerTaskDescriptionGroupBy) IntsX(ctx context.Context) []int
- func (ctdgb *CareerTaskDescriptionGroupBy) Scan(ctx context.Context, v any) error
- func (s *CareerTaskDescriptionGroupBy) ScanX(ctx context.Context, v any)
- func (s *CareerTaskDescriptionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CareerTaskDescriptionGroupBy) StringX(ctx context.Context) string
- func (s *CareerTaskDescriptionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CareerTaskDescriptionGroupBy) StringsX(ctx context.Context) []string
- type CareerTaskDescriptionMutation
- func (m *CareerTaskDescriptionMutation) AddField(name string, value ent.Value) error
- func (m *CareerTaskDescriptionMutation) AddedEdges() []string
- func (m *CareerTaskDescriptionMutation) AddedField(name string) (ent.Value, bool)
- func (m *CareerTaskDescriptionMutation) AddedFields() []string
- func (m *CareerTaskDescriptionMutation) AddedIDs(name string) []ent.Value
- func (m *CareerTaskDescriptionMutation) CareerTaskCleared() bool
- func (m *CareerTaskDescriptionMutation) CareerTaskID() (id int, exists bool)
- func (m *CareerTaskDescriptionMutation) CareerTaskIDs() (ids []int)
- func (m *CareerTaskDescriptionMutation) ClearCareerTask()
- func (m *CareerTaskDescriptionMutation) ClearEdge(name string) error
- func (m *CareerTaskDescriptionMutation) ClearField(name string) error
- func (m *CareerTaskDescriptionMutation) ClearedEdges() []string
- func (m *CareerTaskDescriptionMutation) ClearedFields() []string
- func (m CareerTaskDescriptionMutation) Client() *Client
- func (m *CareerTaskDescriptionMutation) Description() (r string, exists bool)
- func (m *CareerTaskDescriptionMutation) EdgeCleared(name string) bool
- func (m *CareerTaskDescriptionMutation) Field(name string) (ent.Value, bool)
- func (m *CareerTaskDescriptionMutation) FieldCleared(name string) bool
- func (m *CareerTaskDescriptionMutation) Fields() []string
- func (m *CareerTaskDescriptionMutation) ID() (id int, exists bool)
- func (m *CareerTaskDescriptionMutation) IDs(ctx context.Context) ([]int, error)
- func (m *CareerTaskDescriptionMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *CareerTaskDescriptionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CareerTaskDescriptionMutation) Op() Op
- func (m *CareerTaskDescriptionMutation) RemovedEdges() []string
- func (m *CareerTaskDescriptionMutation) RemovedIDs(name string) []ent.Value
- func (m *CareerTaskDescriptionMutation) ResetCareerTask()
- func (m *CareerTaskDescriptionMutation) ResetDescription()
- func (m *CareerTaskDescriptionMutation) ResetEdge(name string) error
- func (m *CareerTaskDescriptionMutation) ResetField(name string) error
- func (m *CareerTaskDescriptionMutation) SetCareerTaskID(id int)
- func (m *CareerTaskDescriptionMutation) SetDescription(s string)
- func (m *CareerTaskDescriptionMutation) SetField(name string, value ent.Value) error
- func (m *CareerTaskDescriptionMutation) SetOp(op Op)
- func (m CareerTaskDescriptionMutation) Tx() (*Tx, error)
- func (m *CareerTaskDescriptionMutation) Type() string
- func (m *CareerTaskDescriptionMutation) Where(ps ...predicate.CareerTaskDescription)
- func (m *CareerTaskDescriptionMutation) WhereP(ps ...func(*sql.Selector))
- type CareerTaskDescriptionQuery
- func (ctdq *CareerTaskDescriptionQuery) Aggregate(fns ...AggregateFunc) *CareerTaskDescriptionSelect
- func (ctdq *CareerTaskDescriptionQuery) All(ctx context.Context) ([]*CareerTaskDescription, error)
- func (ctdq *CareerTaskDescriptionQuery) AllX(ctx context.Context) []*CareerTaskDescription
- func (ctdq *CareerTaskDescriptionQuery) Clone() *CareerTaskDescriptionQuery
- func (ctdq *CareerTaskDescriptionQuery) Count(ctx context.Context) (int, error)
- func (ctdq *CareerTaskDescriptionQuery) CountX(ctx context.Context) int
- func (ctdq *CareerTaskDescriptionQuery) Exist(ctx context.Context) (bool, error)
- func (ctdq *CareerTaskDescriptionQuery) ExistX(ctx context.Context) bool
- func (ctdq *CareerTaskDescriptionQuery) First(ctx context.Context) (*CareerTaskDescription, error)
- func (ctdq *CareerTaskDescriptionQuery) FirstID(ctx context.Context) (id int, err error)
- func (ctdq *CareerTaskDescriptionQuery) FirstIDX(ctx context.Context) int
- func (ctdq *CareerTaskDescriptionQuery) FirstX(ctx context.Context) *CareerTaskDescription
- func (ctdq *CareerTaskDescriptionQuery) GroupBy(field string, fields ...string) *CareerTaskDescriptionGroupBy
- func (ctdq *CareerTaskDescriptionQuery) IDs(ctx context.Context) (ids []int, err error)
- func (ctdq *CareerTaskDescriptionQuery) IDsX(ctx context.Context) []int
- func (ctdq *CareerTaskDescriptionQuery) Limit(limit int) *CareerTaskDescriptionQuery
- func (ctdq *CareerTaskDescriptionQuery) Offset(offset int) *CareerTaskDescriptionQuery
- func (ctdq *CareerTaskDescriptionQuery) Only(ctx context.Context) (*CareerTaskDescription, error)
- func (ctdq *CareerTaskDescriptionQuery) OnlyID(ctx context.Context) (id int, err error)
- func (ctdq *CareerTaskDescriptionQuery) OnlyIDX(ctx context.Context) int
- func (ctdq *CareerTaskDescriptionQuery) OnlyX(ctx context.Context) *CareerTaskDescription
- func (ctdq *CareerTaskDescriptionQuery) Order(o ...careertaskdescription.OrderOption) *CareerTaskDescriptionQuery
- func (ctdq *CareerTaskDescriptionQuery) QueryCareerTask() *CareerTaskQuery
- func (ctdq *CareerTaskDescriptionQuery) Select(fields ...string) *CareerTaskDescriptionSelect
- func (ctdq *CareerTaskDescriptionQuery) Unique(unique bool) *CareerTaskDescriptionQuery
- func (ctdq *CareerTaskDescriptionQuery) Where(ps ...predicate.CareerTaskDescription) *CareerTaskDescriptionQuery
- func (ctdq *CareerTaskDescriptionQuery) WithCareerTask(opts ...func(*CareerTaskQuery)) *CareerTaskDescriptionQuery
- type CareerTaskDescriptionSelect
- func (ctds *CareerTaskDescriptionSelect) Aggregate(fns ...AggregateFunc) *CareerTaskDescriptionSelect
- func (s *CareerTaskDescriptionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CareerTaskDescriptionSelect) BoolX(ctx context.Context) bool
- func (s *CareerTaskDescriptionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CareerTaskDescriptionSelect) BoolsX(ctx context.Context) []bool
- func (s *CareerTaskDescriptionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CareerTaskDescriptionSelect) Float64X(ctx context.Context) float64
- func (s *CareerTaskDescriptionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CareerTaskDescriptionSelect) Float64sX(ctx context.Context) []float64
- func (s *CareerTaskDescriptionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CareerTaskDescriptionSelect) IntX(ctx context.Context) int
- func (s *CareerTaskDescriptionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CareerTaskDescriptionSelect) IntsX(ctx context.Context) []int
- func (ctds *CareerTaskDescriptionSelect) Scan(ctx context.Context, v any) error
- func (s *CareerTaskDescriptionSelect) ScanX(ctx context.Context, v any)
- func (s *CareerTaskDescriptionSelect) String(ctx context.Context) (_ string, err error)
- func (s *CareerTaskDescriptionSelect) StringX(ctx context.Context) string
- func (s *CareerTaskDescriptionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CareerTaskDescriptionSelect) StringsX(ctx context.Context) []string
- type CareerTaskDescriptionUpdate
- func (ctdu *CareerTaskDescriptionUpdate) ClearCareerTask() *CareerTaskDescriptionUpdate
- func (ctdu *CareerTaskDescriptionUpdate) Exec(ctx context.Context) error
- func (ctdu *CareerTaskDescriptionUpdate) ExecX(ctx context.Context)
- func (ctdu *CareerTaskDescriptionUpdate) Mutation() *CareerTaskDescriptionMutation
- func (ctdu *CareerTaskDescriptionUpdate) Save(ctx context.Context) (int, error)
- func (ctdu *CareerTaskDescriptionUpdate) SaveX(ctx context.Context) int
- func (ctdu *CareerTaskDescriptionUpdate) SetCareerTask(c *CareerTask) *CareerTaskDescriptionUpdate
- func (ctdu *CareerTaskDescriptionUpdate) SetCareerTaskID(id int) *CareerTaskDescriptionUpdate
- func (ctdu *CareerTaskDescriptionUpdate) SetDescription(s string) *CareerTaskDescriptionUpdate
- func (ctdu *CareerTaskDescriptionUpdate) Where(ps ...predicate.CareerTaskDescription) *CareerTaskDescriptionUpdate
- type CareerTaskDescriptionUpdateOne
- func (ctduo *CareerTaskDescriptionUpdateOne) ClearCareerTask() *CareerTaskDescriptionUpdateOne
- func (ctduo *CareerTaskDescriptionUpdateOne) Exec(ctx context.Context) error
- func (ctduo *CareerTaskDescriptionUpdateOne) ExecX(ctx context.Context)
- func (ctduo *CareerTaskDescriptionUpdateOne) Mutation() *CareerTaskDescriptionMutation
- func (ctduo *CareerTaskDescriptionUpdateOne) Save(ctx context.Context) (*CareerTaskDescription, error)
- func (ctduo *CareerTaskDescriptionUpdateOne) SaveX(ctx context.Context) *CareerTaskDescription
- func (ctduo *CareerTaskDescriptionUpdateOne) Select(field string, fields ...string) *CareerTaskDescriptionUpdateOne
- func (ctduo *CareerTaskDescriptionUpdateOne) SetCareerTask(c *CareerTask) *CareerTaskDescriptionUpdateOne
- func (ctduo *CareerTaskDescriptionUpdateOne) SetCareerTaskID(id int) *CareerTaskDescriptionUpdateOne
- func (ctduo *CareerTaskDescriptionUpdateOne) SetDescription(s string) *CareerTaskDescriptionUpdateOne
- func (ctduo *CareerTaskDescriptionUpdateOne) Where(ps ...predicate.CareerTaskDescription) *CareerTaskDescriptionUpdateOne
- type CareerTaskDescriptionUpsert
- type CareerTaskDescriptionUpsertBulk
- func (u *CareerTaskDescriptionUpsertBulk) DoNothing() *CareerTaskDescriptionUpsertBulk
- func (u *CareerTaskDescriptionUpsertBulk) Exec(ctx context.Context) error
- func (u *CareerTaskDescriptionUpsertBulk) ExecX(ctx context.Context)
- func (u *CareerTaskDescriptionUpsertBulk) Ignore() *CareerTaskDescriptionUpsertBulk
- func (u *CareerTaskDescriptionUpsertBulk) SetDescription(v string) *CareerTaskDescriptionUpsertBulk
- func (u *CareerTaskDescriptionUpsertBulk) Update(set func(*CareerTaskDescriptionUpsert)) *CareerTaskDescriptionUpsertBulk
- func (u *CareerTaskDescriptionUpsertBulk) UpdateDescription() *CareerTaskDescriptionUpsertBulk
- func (u *CareerTaskDescriptionUpsertBulk) UpdateNewValues() *CareerTaskDescriptionUpsertBulk
- type CareerTaskDescriptionUpsertOne
- func (u *CareerTaskDescriptionUpsertOne) DoNothing() *CareerTaskDescriptionUpsertOne
- func (u *CareerTaskDescriptionUpsertOne) Exec(ctx context.Context) error
- func (u *CareerTaskDescriptionUpsertOne) ExecX(ctx context.Context)
- func (u *CareerTaskDescriptionUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *CareerTaskDescriptionUpsertOne) IDX(ctx context.Context) int
- func (u *CareerTaskDescriptionUpsertOne) Ignore() *CareerTaskDescriptionUpsertOne
- func (u *CareerTaskDescriptionUpsertOne) SetDescription(v string) *CareerTaskDescriptionUpsertOne
- func (u *CareerTaskDescriptionUpsertOne) Update(set func(*CareerTaskDescriptionUpsert)) *CareerTaskDescriptionUpsertOne
- func (u *CareerTaskDescriptionUpsertOne) UpdateDescription() *CareerTaskDescriptionUpsertOne
- func (u *CareerTaskDescriptionUpsertOne) UpdateNewValues() *CareerTaskDescriptionUpsertOne
- type CareerTaskDescriptions
- type CareerTaskEdges
- type CareerTaskGroupBy
- func (ctgb *CareerTaskGroupBy) Aggregate(fns ...AggregateFunc) *CareerTaskGroupBy
- func (s *CareerTaskGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CareerTaskGroupBy) BoolX(ctx context.Context) bool
- func (s *CareerTaskGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CareerTaskGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CareerTaskGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CareerTaskGroupBy) Float64X(ctx context.Context) float64
- func (s *CareerTaskGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CareerTaskGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CareerTaskGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CareerTaskGroupBy) IntX(ctx context.Context) int
- func (s *CareerTaskGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CareerTaskGroupBy) IntsX(ctx context.Context) []int
- func (ctgb *CareerTaskGroupBy) Scan(ctx context.Context, v any) error
- func (s *CareerTaskGroupBy) ScanX(ctx context.Context, v any)
- func (s *CareerTaskGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CareerTaskGroupBy) StringX(ctx context.Context) string
- func (s *CareerTaskGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CareerTaskGroupBy) StringsX(ctx context.Context) []string
- type CareerTaskMutation
- func (m *CareerTaskMutation) AddCareerTaskDescriptionIDs(ids ...int)
- func (m *CareerTaskMutation) AddField(name string, value ent.Value) error
- func (m *CareerTaskMutation) AddedEdges() []string
- func (m *CareerTaskMutation) AddedField(name string) (ent.Value, bool)
- func (m *CareerTaskMutation) AddedFields() []string
- func (m *CareerTaskMutation) AddedIDs(name string) []ent.Value
- func (m *CareerTaskMutation) CareerCleared() bool
- func (m *CareerTaskMutation) CareerID() (id int, exists bool)
- func (m *CareerTaskMutation) CareerIDs() (ids []int)
- func (m *CareerTaskMutation) CareerTaskDescriptionsCleared() bool
- func (m *CareerTaskMutation) CareerTaskDescriptionsIDs() (ids []int)
- func (m *CareerTaskMutation) ClearCareer()
- func (m *CareerTaskMutation) ClearCareerTaskDescriptions()
- func (m *CareerTaskMutation) ClearEdge(name string) error
- func (m *CareerTaskMutation) ClearField(name string) error
- func (m *CareerTaskMutation) ClearedEdges() []string
- func (m *CareerTaskMutation) ClearedFields() []string
- func (m CareerTaskMutation) Client() *Client
- func (m *CareerTaskMutation) CreateTime() (r time.Time, exists bool)
- func (m *CareerTaskMutation) EdgeCleared(name string) bool
- func (m *CareerTaskMutation) Field(name string) (ent.Value, bool)
- func (m *CareerTaskMutation) FieldCleared(name string) bool
- func (m *CareerTaskMutation) Fields() []string
- func (m *CareerTaskMutation) ID() (id int, exists bool)
- func (m *CareerTaskMutation) IDs(ctx context.Context) ([]int, error)
- func (m *CareerTaskMutation) Name() (r string, exists bool)
- func (m *CareerTaskMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *CareerTaskMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CareerTaskMutation) OldName(ctx context.Context) (v string, err error)
- func (m *CareerTaskMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *CareerTaskMutation) Op() Op
- func (m *CareerTaskMutation) RemoveCareerTaskDescriptionIDs(ids ...int)
- func (m *CareerTaskMutation) RemovedCareerTaskDescriptionsIDs() (ids []int)
- func (m *CareerTaskMutation) RemovedEdges() []string
- func (m *CareerTaskMutation) RemovedIDs(name string) []ent.Value
- func (m *CareerTaskMutation) ResetCareer()
- func (m *CareerTaskMutation) ResetCareerTaskDescriptions()
- func (m *CareerTaskMutation) ResetCreateTime()
- func (m *CareerTaskMutation) ResetEdge(name string) error
- func (m *CareerTaskMutation) ResetField(name string) error
- func (m *CareerTaskMutation) ResetName()
- func (m *CareerTaskMutation) ResetUpdateTime()
- func (m *CareerTaskMutation) SetCareerID(id int)
- func (m *CareerTaskMutation) SetCreateTime(t time.Time)
- func (m *CareerTaskMutation) SetField(name string, value ent.Value) error
- func (m *CareerTaskMutation) SetName(s string)
- func (m *CareerTaskMutation) SetOp(op Op)
- func (m *CareerTaskMutation) SetUpdateTime(t time.Time)
- func (m CareerTaskMutation) Tx() (*Tx, error)
- func (m *CareerTaskMutation) Type() string
- func (m *CareerTaskMutation) UpdateTime() (r time.Time, exists bool)
- func (m *CareerTaskMutation) Where(ps ...predicate.CareerTask)
- func (m *CareerTaskMutation) WhereP(ps ...func(*sql.Selector))
- type CareerTaskQuery
- func (ctq *CareerTaskQuery) Aggregate(fns ...AggregateFunc) *CareerTaskSelect
- func (ctq *CareerTaskQuery) All(ctx context.Context) ([]*CareerTask, error)
- func (ctq *CareerTaskQuery) AllX(ctx context.Context) []*CareerTask
- func (ctq *CareerTaskQuery) Clone() *CareerTaskQuery
- func (ctq *CareerTaskQuery) Count(ctx context.Context) (int, error)
- func (ctq *CareerTaskQuery) CountX(ctx context.Context) int
- func (ctq *CareerTaskQuery) Exist(ctx context.Context) (bool, error)
- func (ctq *CareerTaskQuery) ExistX(ctx context.Context) bool
- func (ctq *CareerTaskQuery) First(ctx context.Context) (*CareerTask, error)
- func (ctq *CareerTaskQuery) FirstID(ctx context.Context) (id int, err error)
- func (ctq *CareerTaskQuery) FirstIDX(ctx context.Context) int
- func (ctq *CareerTaskQuery) FirstX(ctx context.Context) *CareerTask
- func (ctq *CareerTaskQuery) GroupBy(field string, fields ...string) *CareerTaskGroupBy
- func (ctq *CareerTaskQuery) IDs(ctx context.Context) (ids []int, err error)
- func (ctq *CareerTaskQuery) IDsX(ctx context.Context) []int
- func (ctq *CareerTaskQuery) Limit(limit int) *CareerTaskQuery
- func (ctq *CareerTaskQuery) Offset(offset int) *CareerTaskQuery
- func (ctq *CareerTaskQuery) Only(ctx context.Context) (*CareerTask, error)
- func (ctq *CareerTaskQuery) OnlyID(ctx context.Context) (id int, err error)
- func (ctq *CareerTaskQuery) OnlyIDX(ctx context.Context) int
- func (ctq *CareerTaskQuery) OnlyX(ctx context.Context) *CareerTask
- func (ctq *CareerTaskQuery) Order(o ...careertask.OrderOption) *CareerTaskQuery
- func (ctq *CareerTaskQuery) QueryCareer() *UserCareerQuery
- func (ctq *CareerTaskQuery) QueryCareerTaskDescriptions() *CareerTaskDescriptionQuery
- func (ctq *CareerTaskQuery) Select(fields ...string) *CareerTaskSelect
- func (ctq *CareerTaskQuery) Unique(unique bool) *CareerTaskQuery
- func (ctq *CareerTaskQuery) Where(ps ...predicate.CareerTask) *CareerTaskQuery
- func (ctq *CareerTaskQuery) WithCareer(opts ...func(*UserCareerQuery)) *CareerTaskQuery
- func (ctq *CareerTaskQuery) WithCareerTaskDescriptions(opts ...func(*CareerTaskDescriptionQuery)) *CareerTaskQuery
- type CareerTaskSelect
- func (cts *CareerTaskSelect) Aggregate(fns ...AggregateFunc) *CareerTaskSelect
- func (s *CareerTaskSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CareerTaskSelect) BoolX(ctx context.Context) bool
- func (s *CareerTaskSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CareerTaskSelect) BoolsX(ctx context.Context) []bool
- func (s *CareerTaskSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CareerTaskSelect) Float64X(ctx context.Context) float64
- func (s *CareerTaskSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CareerTaskSelect) Float64sX(ctx context.Context) []float64
- func (s *CareerTaskSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CareerTaskSelect) IntX(ctx context.Context) int
- func (s *CareerTaskSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CareerTaskSelect) IntsX(ctx context.Context) []int
- func (cts *CareerTaskSelect) Scan(ctx context.Context, v any) error
- func (s *CareerTaskSelect) ScanX(ctx context.Context, v any)
- func (s *CareerTaskSelect) String(ctx context.Context) (_ string, err error)
- func (s *CareerTaskSelect) StringX(ctx context.Context) string
- func (s *CareerTaskSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CareerTaskSelect) StringsX(ctx context.Context) []string
- type CareerTaskUpdate
- func (ctu *CareerTaskUpdate) AddCareerTaskDescriptionIDs(ids ...int) *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) AddCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) ClearCareer() *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) ClearCareerTaskDescriptions() *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) Exec(ctx context.Context) error
- func (ctu *CareerTaskUpdate) ExecX(ctx context.Context)
- func (ctu *CareerTaskUpdate) Mutation() *CareerTaskMutation
- func (ctu *CareerTaskUpdate) RemoveCareerTaskDescriptionIDs(ids ...int) *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) RemoveCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) Save(ctx context.Context) (int, error)
- func (ctu *CareerTaskUpdate) SaveX(ctx context.Context) int
- func (ctu *CareerTaskUpdate) SetCareer(u *UserCareer) *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) SetCareerID(id int) *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) SetName(s string) *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) SetUpdateTime(t time.Time) *CareerTaskUpdate
- func (ctu *CareerTaskUpdate) Where(ps ...predicate.CareerTask) *CareerTaskUpdate
- type CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) AddCareerTaskDescriptionIDs(ids ...int) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) AddCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) ClearCareer() *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) ClearCareerTaskDescriptions() *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) Exec(ctx context.Context) error
- func (ctuo *CareerTaskUpdateOne) ExecX(ctx context.Context)
- func (ctuo *CareerTaskUpdateOne) Mutation() *CareerTaskMutation
- func (ctuo *CareerTaskUpdateOne) RemoveCareerTaskDescriptionIDs(ids ...int) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) RemoveCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) Save(ctx context.Context) (*CareerTask, error)
- func (ctuo *CareerTaskUpdateOne) SaveX(ctx context.Context) *CareerTask
- func (ctuo *CareerTaskUpdateOne) Select(field string, fields ...string) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) SetCareer(u *UserCareer) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) SetCareerID(id int) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) SetName(s string) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) SetUpdateTime(t time.Time) *CareerTaskUpdateOne
- func (ctuo *CareerTaskUpdateOne) Where(ps ...predicate.CareerTask) *CareerTaskUpdateOne
- type CareerTaskUpsert
- type CareerTaskUpsertBulk
- func (u *CareerTaskUpsertBulk) DoNothing() *CareerTaskUpsertBulk
- func (u *CareerTaskUpsertBulk) Exec(ctx context.Context) error
- func (u *CareerTaskUpsertBulk) ExecX(ctx context.Context)
- func (u *CareerTaskUpsertBulk) Ignore() *CareerTaskUpsertBulk
- func (u *CareerTaskUpsertBulk) SetName(v string) *CareerTaskUpsertBulk
- func (u *CareerTaskUpsertBulk) SetUpdateTime(v time.Time) *CareerTaskUpsertBulk
- func (u *CareerTaskUpsertBulk) Update(set func(*CareerTaskUpsert)) *CareerTaskUpsertBulk
- func (u *CareerTaskUpsertBulk) UpdateName() *CareerTaskUpsertBulk
- func (u *CareerTaskUpsertBulk) UpdateNewValues() *CareerTaskUpsertBulk
- func (u *CareerTaskUpsertBulk) UpdateUpdateTime() *CareerTaskUpsertBulk
- type CareerTaskUpsertOne
- func (u *CareerTaskUpsertOne) DoNothing() *CareerTaskUpsertOne
- func (u *CareerTaskUpsertOne) Exec(ctx context.Context) error
- func (u *CareerTaskUpsertOne) ExecX(ctx context.Context)
- func (u *CareerTaskUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *CareerTaskUpsertOne) IDX(ctx context.Context) int
- func (u *CareerTaskUpsertOne) Ignore() *CareerTaskUpsertOne
- func (u *CareerTaskUpsertOne) SetName(v string) *CareerTaskUpsertOne
- func (u *CareerTaskUpsertOne) SetUpdateTime(v time.Time) *CareerTaskUpsertOne
- func (u *CareerTaskUpsertOne) Update(set func(*CareerTaskUpsert)) *CareerTaskUpsertOne
- func (u *CareerTaskUpsertOne) UpdateName() *CareerTaskUpsertOne
- func (u *CareerTaskUpsertOne) UpdateNewValues() *CareerTaskUpsertOne
- func (u *CareerTaskUpsertOne) UpdateUpdateTime() *CareerTaskUpsertOne
- type CareerTasks
- 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) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Hook
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Skill
- type SkillClient
- func (c *SkillClient) Create() *SkillCreate
- func (c *SkillClient) CreateBulk(builders ...*SkillCreate) *SkillCreateBulk
- func (c *SkillClient) Delete() *SkillDelete
- func (c *SkillClient) DeleteOne(s *Skill) *SkillDeleteOne
- func (c *SkillClient) DeleteOneID(id int) *SkillDeleteOne
- func (c *SkillClient) Get(ctx context.Context, id int) (*Skill, error)
- func (c *SkillClient) GetX(ctx context.Context, id int) *Skill
- func (c *SkillClient) Hooks() []Hook
- func (c *SkillClient) Intercept(interceptors ...Interceptor)
- func (c *SkillClient) Interceptors() []Interceptor
- func (c *SkillClient) Query() *SkillQuery
- func (c *SkillClient) QueryCareerSkills(s *Skill) *CareerSkillQuery
- func (c *SkillClient) QuerySkillTag(s *Skill) *SkillTagQuery
- func (c *SkillClient) Update() *SkillUpdate
- func (c *SkillClient) UpdateOne(s *Skill) *SkillUpdateOne
- func (c *SkillClient) UpdateOneID(id int) *SkillUpdateOne
- func (c *SkillClient) Use(hooks ...Hook)
- type SkillCreate
- func (sc *SkillCreate) AddCareerSkillIDs(ids ...int) *SkillCreate
- func (sc *SkillCreate) AddCareerSkills(c ...*CareerSkill) *SkillCreate
- func (sc *SkillCreate) Exec(ctx context.Context) error
- func (sc *SkillCreate) ExecX(ctx context.Context)
- func (sc *SkillCreate) Mutation() *SkillMutation
- func (sc *SkillCreate) OnConflict(opts ...sql.ConflictOption) *SkillUpsertOne
- func (sc *SkillCreate) OnConflictColumns(columns ...string) *SkillUpsertOne
- func (sc *SkillCreate) Save(ctx context.Context) (*Skill, error)
- func (sc *SkillCreate) SaveX(ctx context.Context) *Skill
- func (sc *SkillCreate) SetCode(s string) *SkillCreate
- func (sc *SkillCreate) SetCreateTime(t time.Time) *SkillCreate
- func (sc *SkillCreate) SetName(s string) *SkillCreate
- func (sc *SkillCreate) SetNillableCreateTime(t *time.Time) *SkillCreate
- func (sc *SkillCreate) SetNillableURL(s *string) *SkillCreate
- func (sc *SkillCreate) SetNillableUpdateTime(t *time.Time) *SkillCreate
- func (sc *SkillCreate) SetSkillTag(s *SkillTag) *SkillCreate
- func (sc *SkillCreate) SetSkillTagID(id int) *SkillCreate
- func (sc *SkillCreate) SetURL(s string) *SkillCreate
- func (sc *SkillCreate) SetUpdateTime(t time.Time) *SkillCreate
- type SkillCreateBulk
- func (scb *SkillCreateBulk) Exec(ctx context.Context) error
- func (scb *SkillCreateBulk) ExecX(ctx context.Context)
- func (scb *SkillCreateBulk) OnConflict(opts ...sql.ConflictOption) *SkillUpsertBulk
- func (scb *SkillCreateBulk) OnConflictColumns(columns ...string) *SkillUpsertBulk
- func (scb *SkillCreateBulk) Save(ctx context.Context) ([]*Skill, error)
- func (scb *SkillCreateBulk) SaveX(ctx context.Context) []*Skill
- type SkillDelete
- type SkillDeleteOne
- type SkillEdges
- type SkillGroupBy
- func (sgb *SkillGroupBy) Aggregate(fns ...AggregateFunc) *SkillGroupBy
- func (s *SkillGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SkillGroupBy) BoolX(ctx context.Context) bool
- func (s *SkillGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SkillGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SkillGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SkillGroupBy) Float64X(ctx context.Context) float64
- func (s *SkillGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SkillGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SkillGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SkillGroupBy) IntX(ctx context.Context) int
- func (s *SkillGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SkillGroupBy) IntsX(ctx context.Context) []int
- func (sgb *SkillGroupBy) Scan(ctx context.Context, v any) error
- func (s *SkillGroupBy) ScanX(ctx context.Context, v any)
- func (s *SkillGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SkillGroupBy) StringX(ctx context.Context) string
- func (s *SkillGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SkillGroupBy) StringsX(ctx context.Context) []string
- type SkillMutation
- func (m *SkillMutation) AddCareerSkillIDs(ids ...int)
- func (m *SkillMutation) AddField(name string, value ent.Value) error
- func (m *SkillMutation) AddedEdges() []string
- func (m *SkillMutation) AddedField(name string) (ent.Value, bool)
- func (m *SkillMutation) AddedFields() []string
- func (m *SkillMutation) AddedIDs(name string) []ent.Value
- func (m *SkillMutation) CareerSkillsCleared() bool
- func (m *SkillMutation) CareerSkillsIDs() (ids []int)
- func (m *SkillMutation) ClearCareerSkills()
- func (m *SkillMutation) ClearEdge(name string) error
- func (m *SkillMutation) ClearField(name string) error
- func (m *SkillMutation) ClearSkillTag()
- func (m *SkillMutation) ClearURL()
- func (m *SkillMutation) ClearedEdges() []string
- func (m *SkillMutation) ClearedFields() []string
- func (m SkillMutation) Client() *Client
- func (m *SkillMutation) Code() (r string, exists bool)
- func (m *SkillMutation) CreateTime() (r time.Time, exists bool)
- func (m *SkillMutation) EdgeCleared(name string) bool
- func (m *SkillMutation) Field(name string) (ent.Value, bool)
- func (m *SkillMutation) FieldCleared(name string) bool
- func (m *SkillMutation) Fields() []string
- func (m *SkillMutation) ID() (id int, exists bool)
- func (m *SkillMutation) IDs(ctx context.Context) ([]int, error)
- func (m *SkillMutation) Name() (r string, exists bool)
- func (m *SkillMutation) OldCode(ctx context.Context) (v string, err error)
- func (m *SkillMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *SkillMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SkillMutation) OldName(ctx context.Context) (v string, err error)
- func (m *SkillMutation) OldURL(ctx context.Context) (v *string, err error)
- func (m *SkillMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *SkillMutation) Op() Op
- func (m *SkillMutation) RemoveCareerSkillIDs(ids ...int)
- func (m *SkillMutation) RemovedCareerSkillsIDs() (ids []int)
- func (m *SkillMutation) RemovedEdges() []string
- func (m *SkillMutation) RemovedIDs(name string) []ent.Value
- func (m *SkillMutation) ResetCareerSkills()
- func (m *SkillMutation) ResetCode()
- func (m *SkillMutation) ResetCreateTime()
- func (m *SkillMutation) ResetEdge(name string) error
- func (m *SkillMutation) ResetField(name string) error
- func (m *SkillMutation) ResetName()
- func (m *SkillMutation) ResetSkillTag()
- func (m *SkillMutation) ResetURL()
- func (m *SkillMutation) ResetUpdateTime()
- func (m *SkillMutation) SetCode(s string)
- func (m *SkillMutation) SetCreateTime(t time.Time)
- func (m *SkillMutation) SetField(name string, value ent.Value) error
- func (m *SkillMutation) SetName(s string)
- func (m *SkillMutation) SetOp(op Op)
- func (m *SkillMutation) SetSkillTagID(id int)
- func (m *SkillMutation) SetURL(s string)
- func (m *SkillMutation) SetUpdateTime(t time.Time)
- func (m *SkillMutation) SkillTagCleared() bool
- func (m *SkillMutation) SkillTagID() (id int, exists bool)
- func (m *SkillMutation) SkillTagIDs() (ids []int)
- func (m SkillMutation) Tx() (*Tx, error)
- func (m *SkillMutation) Type() string
- func (m *SkillMutation) URL() (r string, exists bool)
- func (m *SkillMutation) URLCleared() bool
- func (m *SkillMutation) UpdateTime() (r time.Time, exists bool)
- func (m *SkillMutation) Where(ps ...predicate.Skill)
- func (m *SkillMutation) WhereP(ps ...func(*sql.Selector))
- type SkillQuery
- func (sq *SkillQuery) Aggregate(fns ...AggregateFunc) *SkillSelect
- func (sq *SkillQuery) All(ctx context.Context) ([]*Skill, error)
- func (sq *SkillQuery) AllX(ctx context.Context) []*Skill
- func (sq *SkillQuery) Clone() *SkillQuery
- func (sq *SkillQuery) Count(ctx context.Context) (int, error)
- func (sq *SkillQuery) CountX(ctx context.Context) int
- func (sq *SkillQuery) Exist(ctx context.Context) (bool, error)
- func (sq *SkillQuery) ExistX(ctx context.Context) bool
- func (sq *SkillQuery) First(ctx context.Context) (*Skill, error)
- func (sq *SkillQuery) FirstID(ctx context.Context) (id int, err error)
- func (sq *SkillQuery) FirstIDX(ctx context.Context) int
- func (sq *SkillQuery) FirstX(ctx context.Context) *Skill
- func (sq *SkillQuery) GroupBy(field string, fields ...string) *SkillGroupBy
- func (sq *SkillQuery) IDs(ctx context.Context) (ids []int, err error)
- func (sq *SkillQuery) IDsX(ctx context.Context) []int
- func (sq *SkillQuery) Limit(limit int) *SkillQuery
- func (sq *SkillQuery) Offset(offset int) *SkillQuery
- func (sq *SkillQuery) Only(ctx context.Context) (*Skill, error)
- func (sq *SkillQuery) OnlyID(ctx context.Context) (id int, err error)
- func (sq *SkillQuery) OnlyIDX(ctx context.Context) int
- func (sq *SkillQuery) OnlyX(ctx context.Context) *Skill
- func (sq *SkillQuery) Order(o ...skill.OrderOption) *SkillQuery
- func (sq *SkillQuery) QueryCareerSkills() *CareerSkillQuery
- func (sq *SkillQuery) QuerySkillTag() *SkillTagQuery
- func (sq *SkillQuery) Select(fields ...string) *SkillSelect
- func (sq *SkillQuery) Unique(unique bool) *SkillQuery
- func (sq *SkillQuery) Where(ps ...predicate.Skill) *SkillQuery
- func (sq *SkillQuery) WithCareerSkills(opts ...func(*CareerSkillQuery)) *SkillQuery
- func (sq *SkillQuery) WithSkillTag(opts ...func(*SkillTagQuery)) *SkillQuery
- type SkillSelect
- func (ss *SkillSelect) Aggregate(fns ...AggregateFunc) *SkillSelect
- func (s *SkillSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SkillSelect) BoolX(ctx context.Context) bool
- func (s *SkillSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SkillSelect) BoolsX(ctx context.Context) []bool
- func (s *SkillSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SkillSelect) Float64X(ctx context.Context) float64
- func (s *SkillSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SkillSelect) Float64sX(ctx context.Context) []float64
- func (s *SkillSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SkillSelect) IntX(ctx context.Context) int
- func (s *SkillSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SkillSelect) IntsX(ctx context.Context) []int
- func (ss *SkillSelect) Scan(ctx context.Context, v any) error
- func (s *SkillSelect) ScanX(ctx context.Context, v any)
- func (s *SkillSelect) String(ctx context.Context) (_ string, err error)
- func (s *SkillSelect) StringX(ctx context.Context) string
- func (s *SkillSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SkillSelect) StringsX(ctx context.Context) []string
- type SkillTag
- type SkillTagClient
- func (c *SkillTagClient) Create() *SkillTagCreate
- func (c *SkillTagClient) CreateBulk(builders ...*SkillTagCreate) *SkillTagCreateBulk
- func (c *SkillTagClient) Delete() *SkillTagDelete
- func (c *SkillTagClient) DeleteOne(st *SkillTag) *SkillTagDeleteOne
- func (c *SkillTagClient) DeleteOneID(id int) *SkillTagDeleteOne
- func (c *SkillTagClient) Get(ctx context.Context, id int) (*SkillTag, error)
- func (c *SkillTagClient) GetX(ctx context.Context, id int) *SkillTag
- func (c *SkillTagClient) Hooks() []Hook
- func (c *SkillTagClient) Intercept(interceptors ...Interceptor)
- func (c *SkillTagClient) Interceptors() []Interceptor
- func (c *SkillTagClient) Query() *SkillTagQuery
- func (c *SkillTagClient) QuerySkills(st *SkillTag) *SkillQuery
- func (c *SkillTagClient) Update() *SkillTagUpdate
- func (c *SkillTagClient) UpdateOne(st *SkillTag) *SkillTagUpdateOne
- func (c *SkillTagClient) UpdateOneID(id int) *SkillTagUpdateOne
- func (c *SkillTagClient) Use(hooks ...Hook)
- type SkillTagCreate
- func (stc *SkillTagCreate) AddSkillIDs(ids ...int) *SkillTagCreate
- func (stc *SkillTagCreate) AddSkills(s ...*Skill) *SkillTagCreate
- func (stc *SkillTagCreate) Exec(ctx context.Context) error
- func (stc *SkillTagCreate) ExecX(ctx context.Context)
- func (stc *SkillTagCreate) Mutation() *SkillTagMutation
- func (stc *SkillTagCreate) OnConflict(opts ...sql.ConflictOption) *SkillTagUpsertOne
- func (stc *SkillTagCreate) OnConflictColumns(columns ...string) *SkillTagUpsertOne
- func (stc *SkillTagCreate) Save(ctx context.Context) (*SkillTag, error)
- func (stc *SkillTagCreate) SaveX(ctx context.Context) *SkillTag
- func (stc *SkillTagCreate) SetCode(s string) *SkillTagCreate
- func (stc *SkillTagCreate) SetName(s string) *SkillTagCreate
- type SkillTagCreateBulk
- func (stcb *SkillTagCreateBulk) Exec(ctx context.Context) error
- func (stcb *SkillTagCreateBulk) ExecX(ctx context.Context)
- func (stcb *SkillTagCreateBulk) OnConflict(opts ...sql.ConflictOption) *SkillTagUpsertBulk
- func (stcb *SkillTagCreateBulk) OnConflictColumns(columns ...string) *SkillTagUpsertBulk
- func (stcb *SkillTagCreateBulk) Save(ctx context.Context) ([]*SkillTag, error)
- func (stcb *SkillTagCreateBulk) SaveX(ctx context.Context) []*SkillTag
- type SkillTagDelete
- type SkillTagDeleteOne
- type SkillTagEdges
- type SkillTagGroupBy
- func (stgb *SkillTagGroupBy) Aggregate(fns ...AggregateFunc) *SkillTagGroupBy
- func (s *SkillTagGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SkillTagGroupBy) BoolX(ctx context.Context) bool
- func (s *SkillTagGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SkillTagGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SkillTagGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SkillTagGroupBy) Float64X(ctx context.Context) float64
- func (s *SkillTagGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SkillTagGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SkillTagGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SkillTagGroupBy) IntX(ctx context.Context) int
- func (s *SkillTagGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SkillTagGroupBy) IntsX(ctx context.Context) []int
- func (stgb *SkillTagGroupBy) Scan(ctx context.Context, v any) error
- func (s *SkillTagGroupBy) ScanX(ctx context.Context, v any)
- func (s *SkillTagGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SkillTagGroupBy) StringX(ctx context.Context) string
- func (s *SkillTagGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SkillTagGroupBy) StringsX(ctx context.Context) []string
- type SkillTagMutation
- func (m *SkillTagMutation) AddField(name string, value ent.Value) error
- func (m *SkillTagMutation) AddSkillIDs(ids ...int)
- func (m *SkillTagMutation) AddedEdges() []string
- func (m *SkillTagMutation) AddedField(name string) (ent.Value, bool)
- func (m *SkillTagMutation) AddedFields() []string
- func (m *SkillTagMutation) AddedIDs(name string) []ent.Value
- func (m *SkillTagMutation) ClearEdge(name string) error
- func (m *SkillTagMutation) ClearField(name string) error
- func (m *SkillTagMutation) ClearSkills()
- func (m *SkillTagMutation) ClearedEdges() []string
- func (m *SkillTagMutation) ClearedFields() []string
- func (m SkillTagMutation) Client() *Client
- func (m *SkillTagMutation) Code() (r string, exists bool)
- func (m *SkillTagMutation) EdgeCleared(name string) bool
- func (m *SkillTagMutation) Field(name string) (ent.Value, bool)
- func (m *SkillTagMutation) FieldCleared(name string) bool
- func (m *SkillTagMutation) Fields() []string
- func (m *SkillTagMutation) ID() (id int, exists bool)
- func (m *SkillTagMutation) IDs(ctx context.Context) ([]int, error)
- func (m *SkillTagMutation) Name() (r string, exists bool)
- func (m *SkillTagMutation) OldCode(ctx context.Context) (v string, err error)
- func (m *SkillTagMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SkillTagMutation) OldName(ctx context.Context) (v string, err error)
- func (m *SkillTagMutation) Op() Op
- func (m *SkillTagMutation) RemoveSkillIDs(ids ...int)
- func (m *SkillTagMutation) RemovedEdges() []string
- func (m *SkillTagMutation) RemovedIDs(name string) []ent.Value
- func (m *SkillTagMutation) RemovedSkillsIDs() (ids []int)
- func (m *SkillTagMutation) ResetCode()
- func (m *SkillTagMutation) ResetEdge(name string) error
- func (m *SkillTagMutation) ResetField(name string) error
- func (m *SkillTagMutation) ResetName()
- func (m *SkillTagMutation) ResetSkills()
- func (m *SkillTagMutation) SetCode(s string)
- func (m *SkillTagMutation) SetField(name string, value ent.Value) error
- func (m *SkillTagMutation) SetName(s string)
- func (m *SkillTagMutation) SetOp(op Op)
- func (m *SkillTagMutation) SkillsCleared() bool
- func (m *SkillTagMutation) SkillsIDs() (ids []int)
- func (m SkillTagMutation) Tx() (*Tx, error)
- func (m *SkillTagMutation) Type() string
- func (m *SkillTagMutation) Where(ps ...predicate.SkillTag)
- func (m *SkillTagMutation) WhereP(ps ...func(*sql.Selector))
- type SkillTagQuery
- func (stq *SkillTagQuery) Aggregate(fns ...AggregateFunc) *SkillTagSelect
- func (stq *SkillTagQuery) All(ctx context.Context) ([]*SkillTag, error)
- func (stq *SkillTagQuery) AllX(ctx context.Context) []*SkillTag
- func (stq *SkillTagQuery) Clone() *SkillTagQuery
- func (stq *SkillTagQuery) Count(ctx context.Context) (int, error)
- func (stq *SkillTagQuery) CountX(ctx context.Context) int
- func (stq *SkillTagQuery) Exist(ctx context.Context) (bool, error)
- func (stq *SkillTagQuery) ExistX(ctx context.Context) bool
- func (stq *SkillTagQuery) First(ctx context.Context) (*SkillTag, error)
- func (stq *SkillTagQuery) FirstID(ctx context.Context) (id int, err error)
- func (stq *SkillTagQuery) FirstIDX(ctx context.Context) int
- func (stq *SkillTagQuery) FirstX(ctx context.Context) *SkillTag
- func (stq *SkillTagQuery) GroupBy(field string, fields ...string) *SkillTagGroupBy
- func (stq *SkillTagQuery) IDs(ctx context.Context) (ids []int, err error)
- func (stq *SkillTagQuery) IDsX(ctx context.Context) []int
- func (stq *SkillTagQuery) Limit(limit int) *SkillTagQuery
- func (stq *SkillTagQuery) Offset(offset int) *SkillTagQuery
- func (stq *SkillTagQuery) Only(ctx context.Context) (*SkillTag, error)
- func (stq *SkillTagQuery) OnlyID(ctx context.Context) (id int, err error)
- func (stq *SkillTagQuery) OnlyIDX(ctx context.Context) int
- func (stq *SkillTagQuery) OnlyX(ctx context.Context) *SkillTag
- func (stq *SkillTagQuery) Order(o ...skilltag.OrderOption) *SkillTagQuery
- func (stq *SkillTagQuery) QuerySkills() *SkillQuery
- func (stq *SkillTagQuery) Select(fields ...string) *SkillTagSelect
- func (stq *SkillTagQuery) Unique(unique bool) *SkillTagQuery
- func (stq *SkillTagQuery) Where(ps ...predicate.SkillTag) *SkillTagQuery
- func (stq *SkillTagQuery) WithSkills(opts ...func(*SkillQuery)) *SkillTagQuery
- type SkillTagSelect
- func (sts *SkillTagSelect) Aggregate(fns ...AggregateFunc) *SkillTagSelect
- func (s *SkillTagSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SkillTagSelect) BoolX(ctx context.Context) bool
- func (s *SkillTagSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SkillTagSelect) BoolsX(ctx context.Context) []bool
- func (s *SkillTagSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SkillTagSelect) Float64X(ctx context.Context) float64
- func (s *SkillTagSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SkillTagSelect) Float64sX(ctx context.Context) []float64
- func (s *SkillTagSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SkillTagSelect) IntX(ctx context.Context) int
- func (s *SkillTagSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SkillTagSelect) IntsX(ctx context.Context) []int
- func (sts *SkillTagSelect) Scan(ctx context.Context, v any) error
- func (s *SkillTagSelect) ScanX(ctx context.Context, v any)
- func (s *SkillTagSelect) String(ctx context.Context) (_ string, err error)
- func (s *SkillTagSelect) StringX(ctx context.Context) string
- func (s *SkillTagSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SkillTagSelect) StringsX(ctx context.Context) []string
- type SkillTagUpdate
- func (stu *SkillTagUpdate) AddSkillIDs(ids ...int) *SkillTagUpdate
- func (stu *SkillTagUpdate) AddSkills(s ...*Skill) *SkillTagUpdate
- func (stu *SkillTagUpdate) ClearSkills() *SkillTagUpdate
- func (stu *SkillTagUpdate) Exec(ctx context.Context) error
- func (stu *SkillTagUpdate) ExecX(ctx context.Context)
- func (stu *SkillTagUpdate) Mutation() *SkillTagMutation
- func (stu *SkillTagUpdate) RemoveSkillIDs(ids ...int) *SkillTagUpdate
- func (stu *SkillTagUpdate) RemoveSkills(s ...*Skill) *SkillTagUpdate
- func (stu *SkillTagUpdate) Save(ctx context.Context) (int, error)
- func (stu *SkillTagUpdate) SaveX(ctx context.Context) int
- func (stu *SkillTagUpdate) SetCode(s string) *SkillTagUpdate
- func (stu *SkillTagUpdate) SetName(s string) *SkillTagUpdate
- func (stu *SkillTagUpdate) Where(ps ...predicate.SkillTag) *SkillTagUpdate
- type SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) AddSkillIDs(ids ...int) *SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) AddSkills(s ...*Skill) *SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) ClearSkills() *SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) Exec(ctx context.Context) error
- func (stuo *SkillTagUpdateOne) ExecX(ctx context.Context)
- func (stuo *SkillTagUpdateOne) Mutation() *SkillTagMutation
- func (stuo *SkillTagUpdateOne) RemoveSkillIDs(ids ...int) *SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) RemoveSkills(s ...*Skill) *SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) Save(ctx context.Context) (*SkillTag, error)
- func (stuo *SkillTagUpdateOne) SaveX(ctx context.Context) *SkillTag
- func (stuo *SkillTagUpdateOne) Select(field string, fields ...string) *SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) SetCode(s string) *SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) SetName(s string) *SkillTagUpdateOne
- func (stuo *SkillTagUpdateOne) Where(ps ...predicate.SkillTag) *SkillTagUpdateOne
- type SkillTagUpsert
- type SkillTagUpsertBulk
- func (u *SkillTagUpsertBulk) DoNothing() *SkillTagUpsertBulk
- func (u *SkillTagUpsertBulk) Exec(ctx context.Context) error
- func (u *SkillTagUpsertBulk) ExecX(ctx context.Context)
- func (u *SkillTagUpsertBulk) Ignore() *SkillTagUpsertBulk
- func (u *SkillTagUpsertBulk) SetCode(v string) *SkillTagUpsertBulk
- func (u *SkillTagUpsertBulk) SetName(v string) *SkillTagUpsertBulk
- func (u *SkillTagUpsertBulk) Update(set func(*SkillTagUpsert)) *SkillTagUpsertBulk
- func (u *SkillTagUpsertBulk) UpdateCode() *SkillTagUpsertBulk
- func (u *SkillTagUpsertBulk) UpdateName() *SkillTagUpsertBulk
- func (u *SkillTagUpsertBulk) UpdateNewValues() *SkillTagUpsertBulk
- type SkillTagUpsertOne
- func (u *SkillTagUpsertOne) DoNothing() *SkillTagUpsertOne
- func (u *SkillTagUpsertOne) Exec(ctx context.Context) error
- func (u *SkillTagUpsertOne) ExecX(ctx context.Context)
- func (u *SkillTagUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *SkillTagUpsertOne) IDX(ctx context.Context) int
- func (u *SkillTagUpsertOne) Ignore() *SkillTagUpsertOne
- func (u *SkillTagUpsertOne) SetCode(v string) *SkillTagUpsertOne
- func (u *SkillTagUpsertOne) SetName(v string) *SkillTagUpsertOne
- func (u *SkillTagUpsertOne) Update(set func(*SkillTagUpsert)) *SkillTagUpsertOne
- func (u *SkillTagUpsertOne) UpdateCode() *SkillTagUpsertOne
- func (u *SkillTagUpsertOne) UpdateName() *SkillTagUpsertOne
- func (u *SkillTagUpsertOne) UpdateNewValues() *SkillTagUpsertOne
- type SkillTags
- type SkillUpdate
- func (su *SkillUpdate) AddCareerSkillIDs(ids ...int) *SkillUpdate
- func (su *SkillUpdate) AddCareerSkills(c ...*CareerSkill) *SkillUpdate
- func (su *SkillUpdate) ClearCareerSkills() *SkillUpdate
- func (su *SkillUpdate) ClearSkillTag() *SkillUpdate
- func (su *SkillUpdate) ClearURL() *SkillUpdate
- func (su *SkillUpdate) Exec(ctx context.Context) error
- func (su *SkillUpdate) ExecX(ctx context.Context)
- func (su *SkillUpdate) Mutation() *SkillMutation
- func (su *SkillUpdate) RemoveCareerSkillIDs(ids ...int) *SkillUpdate
- func (su *SkillUpdate) RemoveCareerSkills(c ...*CareerSkill) *SkillUpdate
- func (su *SkillUpdate) Save(ctx context.Context) (int, error)
- func (su *SkillUpdate) SaveX(ctx context.Context) int
- func (su *SkillUpdate) SetCode(s string) *SkillUpdate
- func (su *SkillUpdate) SetName(s string) *SkillUpdate
- func (su *SkillUpdate) SetNillableURL(s *string) *SkillUpdate
- func (su *SkillUpdate) SetSkillTag(s *SkillTag) *SkillUpdate
- func (su *SkillUpdate) SetSkillTagID(id int) *SkillUpdate
- func (su *SkillUpdate) SetURL(s string) *SkillUpdate
- func (su *SkillUpdate) SetUpdateTime(t time.Time) *SkillUpdate
- func (su *SkillUpdate) Where(ps ...predicate.Skill) *SkillUpdate
- type SkillUpdateOne
- func (suo *SkillUpdateOne) AddCareerSkillIDs(ids ...int) *SkillUpdateOne
- func (suo *SkillUpdateOne) AddCareerSkills(c ...*CareerSkill) *SkillUpdateOne
- func (suo *SkillUpdateOne) ClearCareerSkills() *SkillUpdateOne
- func (suo *SkillUpdateOne) ClearSkillTag() *SkillUpdateOne
- func (suo *SkillUpdateOne) ClearURL() *SkillUpdateOne
- func (suo *SkillUpdateOne) Exec(ctx context.Context) error
- func (suo *SkillUpdateOne) ExecX(ctx context.Context)
- func (suo *SkillUpdateOne) Mutation() *SkillMutation
- func (suo *SkillUpdateOne) RemoveCareerSkillIDs(ids ...int) *SkillUpdateOne
- func (suo *SkillUpdateOne) RemoveCareerSkills(c ...*CareerSkill) *SkillUpdateOne
- func (suo *SkillUpdateOne) Save(ctx context.Context) (*Skill, error)
- func (suo *SkillUpdateOne) SaveX(ctx context.Context) *Skill
- func (suo *SkillUpdateOne) Select(field string, fields ...string) *SkillUpdateOne
- func (suo *SkillUpdateOne) SetCode(s string) *SkillUpdateOne
- func (suo *SkillUpdateOne) SetName(s string) *SkillUpdateOne
- func (suo *SkillUpdateOne) SetNillableURL(s *string) *SkillUpdateOne
- func (suo *SkillUpdateOne) SetSkillTag(s *SkillTag) *SkillUpdateOne
- func (suo *SkillUpdateOne) SetSkillTagID(id int) *SkillUpdateOne
- func (suo *SkillUpdateOne) SetURL(s string) *SkillUpdateOne
- func (suo *SkillUpdateOne) SetUpdateTime(t time.Time) *SkillUpdateOne
- func (suo *SkillUpdateOne) Where(ps ...predicate.Skill) *SkillUpdateOne
- type SkillUpsert
- func (u *SkillUpsert) ClearURL() *SkillUpsert
- func (u *SkillUpsert) SetCode(v string) *SkillUpsert
- func (u *SkillUpsert) SetName(v string) *SkillUpsert
- func (u *SkillUpsert) SetURL(v string) *SkillUpsert
- func (u *SkillUpsert) SetUpdateTime(v time.Time) *SkillUpsert
- func (u *SkillUpsert) UpdateCode() *SkillUpsert
- func (u *SkillUpsert) UpdateName() *SkillUpsert
- func (u *SkillUpsert) UpdateURL() *SkillUpsert
- func (u *SkillUpsert) UpdateUpdateTime() *SkillUpsert
- type SkillUpsertBulk
- func (u *SkillUpsertBulk) ClearURL() *SkillUpsertBulk
- func (u *SkillUpsertBulk) DoNothing() *SkillUpsertBulk
- func (u *SkillUpsertBulk) Exec(ctx context.Context) error
- func (u *SkillUpsertBulk) ExecX(ctx context.Context)
- func (u *SkillUpsertBulk) Ignore() *SkillUpsertBulk
- func (u *SkillUpsertBulk) SetCode(v string) *SkillUpsertBulk
- func (u *SkillUpsertBulk) SetName(v string) *SkillUpsertBulk
- func (u *SkillUpsertBulk) SetURL(v string) *SkillUpsertBulk
- func (u *SkillUpsertBulk) SetUpdateTime(v time.Time) *SkillUpsertBulk
- func (u *SkillUpsertBulk) Update(set func(*SkillUpsert)) *SkillUpsertBulk
- func (u *SkillUpsertBulk) UpdateCode() *SkillUpsertBulk
- func (u *SkillUpsertBulk) UpdateName() *SkillUpsertBulk
- func (u *SkillUpsertBulk) UpdateNewValues() *SkillUpsertBulk
- func (u *SkillUpsertBulk) UpdateURL() *SkillUpsertBulk
- func (u *SkillUpsertBulk) UpdateUpdateTime() *SkillUpsertBulk
- type SkillUpsertOne
- func (u *SkillUpsertOne) ClearURL() *SkillUpsertOne
- func (u *SkillUpsertOne) DoNothing() *SkillUpsertOne
- func (u *SkillUpsertOne) Exec(ctx context.Context) error
- func (u *SkillUpsertOne) ExecX(ctx context.Context)
- func (u *SkillUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *SkillUpsertOne) IDX(ctx context.Context) int
- func (u *SkillUpsertOne) Ignore() *SkillUpsertOne
- func (u *SkillUpsertOne) SetCode(v string) *SkillUpsertOne
- func (u *SkillUpsertOne) SetName(v string) *SkillUpsertOne
- func (u *SkillUpsertOne) SetURL(v string) *SkillUpsertOne
- func (u *SkillUpsertOne) SetUpdateTime(v time.Time) *SkillUpsertOne
- func (u *SkillUpsertOne) Update(set func(*SkillUpsert)) *SkillUpsertOne
- func (u *SkillUpsertOne) UpdateCode() *SkillUpsertOne
- func (u *SkillUpsertOne) UpdateName() *SkillUpsertOne
- func (u *SkillUpsertOne) UpdateNewValues() *SkillUpsertOne
- func (u *SkillUpsertOne) UpdateURL() *SkillUpsertOne
- func (u *SkillUpsertOne) UpdateUpdateTime() *SkillUpsertOne
- type Skills
- type TraverseFunc
- type Traverser
- type Tx
- type User
- func (u *User) QueryActivities() *UserActivityQuery
- func (u *User) QueryCareerGroups() *UserCareerGroupQuery
- func (u *User) QueryNotes() *UserNoteQuery
- func (u *User) QueryQualifications() *UserQualificationQuery
- func (u *User) String() string
- func (u *User) Unwrap() *User
- func (u *User) Update() *UserUpdateOne
- func (u *User) Value(name string) (ent.Value, error)
- type UserActivities
- type UserActivity
- type UserActivityClient
- func (c *UserActivityClient) Create() *UserActivityCreate
- func (c *UserActivityClient) CreateBulk(builders ...*UserActivityCreate) *UserActivityCreateBulk
- func (c *UserActivityClient) Delete() *UserActivityDelete
- func (c *UserActivityClient) DeleteOne(ua *UserActivity) *UserActivityDeleteOne
- func (c *UserActivityClient) DeleteOneID(id int) *UserActivityDeleteOne
- func (c *UserActivityClient) Get(ctx context.Context, id int) (*UserActivity, error)
- func (c *UserActivityClient) GetX(ctx context.Context, id int) *UserActivity
- func (c *UserActivityClient) Hooks() []Hook
- func (c *UserActivityClient) Intercept(interceptors ...Interceptor)
- func (c *UserActivityClient) Interceptors() []Interceptor
- func (c *UserActivityClient) Query() *UserActivityQuery
- func (c *UserActivityClient) QueryUser(ua *UserActivity) *UserQuery
- func (c *UserActivityClient) Update() *UserActivityUpdate
- func (c *UserActivityClient) UpdateOne(ua *UserActivity) *UserActivityUpdateOne
- func (c *UserActivityClient) UpdateOneID(id int) *UserActivityUpdateOne
- func (c *UserActivityClient) Use(hooks ...Hook)
- type UserActivityCreate
- func (uac *UserActivityCreate) Exec(ctx context.Context) error
- func (uac *UserActivityCreate) ExecX(ctx context.Context)
- func (uac *UserActivityCreate) Mutation() *UserActivityMutation
- func (uac *UserActivityCreate) OnConflict(opts ...sql.ConflictOption) *UserActivityUpsertOne
- func (uac *UserActivityCreate) OnConflictColumns(columns ...string) *UserActivityUpsertOne
- func (uac *UserActivityCreate) Save(ctx context.Context) (*UserActivity, error)
- func (uac *UserActivityCreate) SaveX(ctx context.Context) *UserActivity
- func (uac *UserActivityCreate) SetCreateTime(t time.Time) *UserActivityCreate
- func (uac *UserActivityCreate) SetIcon(s string) *UserActivityCreate
- func (uac *UserActivityCreate) SetName(s string) *UserActivityCreate
- func (uac *UserActivityCreate) SetNillableCreateTime(t *time.Time) *UserActivityCreate
- func (uac *UserActivityCreate) SetNillableIcon(s *string) *UserActivityCreate
- func (uac *UserActivityCreate) SetNillableURL(s *string) *UserActivityCreate
- func (uac *UserActivityCreate) SetNillableUpdateTime(t *time.Time) *UserActivityCreate
- func (uac *UserActivityCreate) SetURL(s string) *UserActivityCreate
- func (uac *UserActivityCreate) SetUpdateTime(t time.Time) *UserActivityCreate
- func (uac *UserActivityCreate) SetUser(u *User) *UserActivityCreate
- func (uac *UserActivityCreate) SetUserID(id int) *UserActivityCreate
- type UserActivityCreateBulk
- func (uacb *UserActivityCreateBulk) Exec(ctx context.Context) error
- func (uacb *UserActivityCreateBulk) ExecX(ctx context.Context)
- func (uacb *UserActivityCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserActivityUpsertBulk
- func (uacb *UserActivityCreateBulk) OnConflictColumns(columns ...string) *UserActivityUpsertBulk
- func (uacb *UserActivityCreateBulk) Save(ctx context.Context) ([]*UserActivity, error)
- func (uacb *UserActivityCreateBulk) SaveX(ctx context.Context) []*UserActivity
- type UserActivityDelete
- type UserActivityDeleteOne
- type UserActivityEdges
- type UserActivityGroupBy
- func (uagb *UserActivityGroupBy) Aggregate(fns ...AggregateFunc) *UserActivityGroupBy
- func (s *UserActivityGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserActivityGroupBy) BoolX(ctx context.Context) bool
- func (s *UserActivityGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserActivityGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserActivityGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserActivityGroupBy) Float64X(ctx context.Context) float64
- func (s *UserActivityGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserActivityGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserActivityGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserActivityGroupBy) IntX(ctx context.Context) int
- func (s *UserActivityGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserActivityGroupBy) IntsX(ctx context.Context) []int
- func (uagb *UserActivityGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserActivityGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserActivityGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserActivityGroupBy) StringX(ctx context.Context) string
- func (s *UserActivityGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserActivityGroupBy) StringsX(ctx context.Context) []string
- type UserActivityMutation
- func (m *UserActivityMutation) AddField(name string, value ent.Value) error
- func (m *UserActivityMutation) AddedEdges() []string
- func (m *UserActivityMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserActivityMutation) AddedFields() []string
- func (m *UserActivityMutation) AddedIDs(name string) []ent.Value
- func (m *UserActivityMutation) ClearEdge(name string) error
- func (m *UserActivityMutation) ClearField(name string) error
- func (m *UserActivityMutation) ClearIcon()
- func (m *UserActivityMutation) ClearURL()
- func (m *UserActivityMutation) ClearUser()
- func (m *UserActivityMutation) ClearedEdges() []string
- func (m *UserActivityMutation) ClearedFields() []string
- func (m UserActivityMutation) Client() *Client
- func (m *UserActivityMutation) CreateTime() (r time.Time, exists bool)
- func (m *UserActivityMutation) EdgeCleared(name string) bool
- func (m *UserActivityMutation) Field(name string) (ent.Value, bool)
- func (m *UserActivityMutation) FieldCleared(name string) bool
- func (m *UserActivityMutation) Fields() []string
- func (m *UserActivityMutation) ID() (id int, exists bool)
- func (m *UserActivityMutation) IDs(ctx context.Context) ([]int, error)
- func (m *UserActivityMutation) Icon() (r string, exists bool)
- func (m *UserActivityMutation) IconCleared() bool
- func (m *UserActivityMutation) Name() (r string, exists bool)
- func (m *UserActivityMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserActivityMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserActivityMutation) OldIcon(ctx context.Context) (v *string, err error)
- func (m *UserActivityMutation) OldName(ctx context.Context) (v string, err error)
- func (m *UserActivityMutation) OldURL(ctx context.Context) (v *string, err error)
- func (m *UserActivityMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserActivityMutation) Op() Op
- func (m *UserActivityMutation) RemovedEdges() []string
- func (m *UserActivityMutation) RemovedIDs(name string) []ent.Value
- func (m *UserActivityMutation) ResetCreateTime()
- func (m *UserActivityMutation) ResetEdge(name string) error
- func (m *UserActivityMutation) ResetField(name string) error
- func (m *UserActivityMutation) ResetIcon()
- func (m *UserActivityMutation) ResetName()
- func (m *UserActivityMutation) ResetURL()
- func (m *UserActivityMutation) ResetUpdateTime()
- func (m *UserActivityMutation) ResetUser()
- func (m *UserActivityMutation) SetCreateTime(t time.Time)
- func (m *UserActivityMutation) SetField(name string, value ent.Value) error
- func (m *UserActivityMutation) SetIcon(s string)
- func (m *UserActivityMutation) SetName(s string)
- func (m *UserActivityMutation) SetOp(op Op)
- func (m *UserActivityMutation) SetURL(s string)
- func (m *UserActivityMutation) SetUpdateTime(t time.Time)
- func (m *UserActivityMutation) SetUserID(id int)
- func (m UserActivityMutation) Tx() (*Tx, error)
- func (m *UserActivityMutation) Type() string
- func (m *UserActivityMutation) URL() (r string, exists bool)
- func (m *UserActivityMutation) URLCleared() bool
- func (m *UserActivityMutation) UpdateTime() (r time.Time, exists bool)
- func (m *UserActivityMutation) UserCleared() bool
- func (m *UserActivityMutation) UserID() (id int, exists bool)
- func (m *UserActivityMutation) UserIDs() (ids []int)
- func (m *UserActivityMutation) Where(ps ...predicate.UserActivity)
- func (m *UserActivityMutation) WhereP(ps ...func(*sql.Selector))
- type UserActivityQuery
- func (uaq *UserActivityQuery) Aggregate(fns ...AggregateFunc) *UserActivitySelect
- func (uaq *UserActivityQuery) All(ctx context.Context) ([]*UserActivity, error)
- func (uaq *UserActivityQuery) AllX(ctx context.Context) []*UserActivity
- func (uaq *UserActivityQuery) Clone() *UserActivityQuery
- func (uaq *UserActivityQuery) Count(ctx context.Context) (int, error)
- func (uaq *UserActivityQuery) CountX(ctx context.Context) int
- func (uaq *UserActivityQuery) Exist(ctx context.Context) (bool, error)
- func (uaq *UserActivityQuery) ExistX(ctx context.Context) bool
- func (uaq *UserActivityQuery) First(ctx context.Context) (*UserActivity, error)
- func (uaq *UserActivityQuery) FirstID(ctx context.Context) (id int, err error)
- func (uaq *UserActivityQuery) FirstIDX(ctx context.Context) int
- func (uaq *UserActivityQuery) FirstX(ctx context.Context) *UserActivity
- func (uaq *UserActivityQuery) GroupBy(field string, fields ...string) *UserActivityGroupBy
- func (uaq *UserActivityQuery) IDs(ctx context.Context) (ids []int, err error)
- func (uaq *UserActivityQuery) IDsX(ctx context.Context) []int
- func (uaq *UserActivityQuery) Limit(limit int) *UserActivityQuery
- func (uaq *UserActivityQuery) Offset(offset int) *UserActivityQuery
- func (uaq *UserActivityQuery) Only(ctx context.Context) (*UserActivity, error)
- func (uaq *UserActivityQuery) OnlyID(ctx context.Context) (id int, err error)
- func (uaq *UserActivityQuery) OnlyIDX(ctx context.Context) int
- func (uaq *UserActivityQuery) OnlyX(ctx context.Context) *UserActivity
- func (uaq *UserActivityQuery) Order(o ...useractivity.OrderOption) *UserActivityQuery
- func (uaq *UserActivityQuery) QueryUser() *UserQuery
- func (uaq *UserActivityQuery) Select(fields ...string) *UserActivitySelect
- func (uaq *UserActivityQuery) Unique(unique bool) *UserActivityQuery
- func (uaq *UserActivityQuery) Where(ps ...predicate.UserActivity) *UserActivityQuery
- func (uaq *UserActivityQuery) WithUser(opts ...func(*UserQuery)) *UserActivityQuery
- type UserActivitySelect
- func (uas *UserActivitySelect) Aggregate(fns ...AggregateFunc) *UserActivitySelect
- func (s *UserActivitySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserActivitySelect) BoolX(ctx context.Context) bool
- func (s *UserActivitySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserActivitySelect) BoolsX(ctx context.Context) []bool
- func (s *UserActivitySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserActivitySelect) Float64X(ctx context.Context) float64
- func (s *UserActivitySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserActivitySelect) Float64sX(ctx context.Context) []float64
- func (s *UserActivitySelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserActivitySelect) IntX(ctx context.Context) int
- func (s *UserActivitySelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserActivitySelect) IntsX(ctx context.Context) []int
- func (uas *UserActivitySelect) Scan(ctx context.Context, v any) error
- func (s *UserActivitySelect) ScanX(ctx context.Context, v any)
- func (s *UserActivitySelect) String(ctx context.Context) (_ string, err error)
- func (s *UserActivitySelect) StringX(ctx context.Context) string
- func (s *UserActivitySelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserActivitySelect) StringsX(ctx context.Context) []string
- type UserActivityUpdate
- func (uau *UserActivityUpdate) ClearIcon() *UserActivityUpdate
- func (uau *UserActivityUpdate) ClearURL() *UserActivityUpdate
- func (uau *UserActivityUpdate) ClearUser() *UserActivityUpdate
- func (uau *UserActivityUpdate) Exec(ctx context.Context) error
- func (uau *UserActivityUpdate) ExecX(ctx context.Context)
- func (uau *UserActivityUpdate) Mutation() *UserActivityMutation
- func (uau *UserActivityUpdate) Save(ctx context.Context) (int, error)
- func (uau *UserActivityUpdate) SaveX(ctx context.Context) int
- func (uau *UserActivityUpdate) SetIcon(s string) *UserActivityUpdate
- func (uau *UserActivityUpdate) SetName(s string) *UserActivityUpdate
- func (uau *UserActivityUpdate) SetNillableIcon(s *string) *UserActivityUpdate
- func (uau *UserActivityUpdate) SetNillableURL(s *string) *UserActivityUpdate
- func (uau *UserActivityUpdate) SetURL(s string) *UserActivityUpdate
- func (uau *UserActivityUpdate) SetUpdateTime(t time.Time) *UserActivityUpdate
- func (uau *UserActivityUpdate) SetUser(u *User) *UserActivityUpdate
- func (uau *UserActivityUpdate) SetUserID(id int) *UserActivityUpdate
- func (uau *UserActivityUpdate) Where(ps ...predicate.UserActivity) *UserActivityUpdate
- type UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) ClearIcon() *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) ClearURL() *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) ClearUser() *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) Exec(ctx context.Context) error
- func (uauo *UserActivityUpdateOne) ExecX(ctx context.Context)
- func (uauo *UserActivityUpdateOne) Mutation() *UserActivityMutation
- func (uauo *UserActivityUpdateOne) Save(ctx context.Context) (*UserActivity, error)
- func (uauo *UserActivityUpdateOne) SaveX(ctx context.Context) *UserActivity
- func (uauo *UserActivityUpdateOne) Select(field string, fields ...string) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) SetIcon(s string) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) SetName(s string) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) SetNillableIcon(s *string) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) SetNillableURL(s *string) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) SetURL(s string) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) SetUpdateTime(t time.Time) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) SetUser(u *User) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) SetUserID(id int) *UserActivityUpdateOne
- func (uauo *UserActivityUpdateOne) Where(ps ...predicate.UserActivity) *UserActivityUpdateOne
- type UserActivityUpsert
- func (u *UserActivityUpsert) ClearIcon() *UserActivityUpsert
- func (u *UserActivityUpsert) ClearURL() *UserActivityUpsert
- func (u *UserActivityUpsert) SetIcon(v string) *UserActivityUpsert
- func (u *UserActivityUpsert) SetName(v string) *UserActivityUpsert
- func (u *UserActivityUpsert) SetURL(v string) *UserActivityUpsert
- func (u *UserActivityUpsert) SetUpdateTime(v time.Time) *UserActivityUpsert
- func (u *UserActivityUpsert) UpdateIcon() *UserActivityUpsert
- func (u *UserActivityUpsert) UpdateName() *UserActivityUpsert
- func (u *UserActivityUpsert) UpdateURL() *UserActivityUpsert
- func (u *UserActivityUpsert) UpdateUpdateTime() *UserActivityUpsert
- type UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) ClearIcon() *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) ClearURL() *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) DoNothing() *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) Exec(ctx context.Context) error
- func (u *UserActivityUpsertBulk) ExecX(ctx context.Context)
- func (u *UserActivityUpsertBulk) Ignore() *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) SetIcon(v string) *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) SetName(v string) *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) SetURL(v string) *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) SetUpdateTime(v time.Time) *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) Update(set func(*UserActivityUpsert)) *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) UpdateIcon() *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) UpdateName() *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) UpdateNewValues() *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) UpdateURL() *UserActivityUpsertBulk
- func (u *UserActivityUpsertBulk) UpdateUpdateTime() *UserActivityUpsertBulk
- type UserActivityUpsertOne
- func (u *UserActivityUpsertOne) ClearIcon() *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) ClearURL() *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) DoNothing() *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) Exec(ctx context.Context) error
- func (u *UserActivityUpsertOne) ExecX(ctx context.Context)
- func (u *UserActivityUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *UserActivityUpsertOne) IDX(ctx context.Context) int
- func (u *UserActivityUpsertOne) Ignore() *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) SetIcon(v string) *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) SetName(v string) *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) SetURL(v string) *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) SetUpdateTime(v time.Time) *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) Update(set func(*UserActivityUpsert)) *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) UpdateIcon() *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) UpdateName() *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) UpdateNewValues() *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) UpdateURL() *UserActivityUpsertOne
- func (u *UserActivityUpsertOne) UpdateUpdateTime() *UserActivityUpsertOne
- type UserCareer
- func (uc *UserCareer) QueryCareerDescriptions() *UserCareerDescriptionQuery
- func (uc *UserCareer) QueryCareerGroup() *UserCareerGroupQuery
- func (uc *UserCareer) QueryCareerSkillGroups() *CareerSkillGroupQuery
- func (uc *UserCareer) QueryCareerTasks() *CareerTaskQuery
- func (uc *UserCareer) String() string
- func (uc *UserCareer) Unwrap() *UserCareer
- func (uc *UserCareer) Update() *UserCareerUpdateOne
- func (uc *UserCareer) Value(name string) (ent.Value, error)
- type UserCareerClient
- func (c *UserCareerClient) Create() *UserCareerCreate
- func (c *UserCareerClient) CreateBulk(builders ...*UserCareerCreate) *UserCareerCreateBulk
- func (c *UserCareerClient) Delete() *UserCareerDelete
- func (c *UserCareerClient) DeleteOne(uc *UserCareer) *UserCareerDeleteOne
- func (c *UserCareerClient) DeleteOneID(id int) *UserCareerDeleteOne
- func (c *UserCareerClient) Get(ctx context.Context, id int) (*UserCareer, error)
- func (c *UserCareerClient) GetX(ctx context.Context, id int) *UserCareer
- func (c *UserCareerClient) Hooks() []Hook
- func (c *UserCareerClient) Intercept(interceptors ...Interceptor)
- func (c *UserCareerClient) Interceptors() []Interceptor
- func (c *UserCareerClient) Query() *UserCareerQuery
- func (c *UserCareerClient) QueryCareerDescriptions(uc *UserCareer) *UserCareerDescriptionQuery
- func (c *UserCareerClient) QueryCareerGroup(uc *UserCareer) *UserCareerGroupQuery
- func (c *UserCareerClient) QueryCareerSkillGroups(uc *UserCareer) *CareerSkillGroupQuery
- func (c *UserCareerClient) QueryCareerTasks(uc *UserCareer) *CareerTaskQuery
- func (c *UserCareerClient) Update() *UserCareerUpdate
- func (c *UserCareerClient) UpdateOne(uc *UserCareer) *UserCareerUpdateOne
- func (c *UserCareerClient) UpdateOneID(id int) *UserCareerUpdateOne
- func (c *UserCareerClient) Use(hooks ...Hook)
- type UserCareerCreate
- func (ucc *UserCareerCreate) AddCareerDescriptionIDs(ids ...int) *UserCareerCreate
- func (ucc *UserCareerCreate) AddCareerDescriptions(u ...*UserCareerDescription) *UserCareerCreate
- func (ucc *UserCareerCreate) AddCareerSkillGroupIDs(ids ...int) *UserCareerCreate
- func (ucc *UserCareerCreate) AddCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerCreate
- func (ucc *UserCareerCreate) AddCareerTaskIDs(ids ...int) *UserCareerCreate
- func (ucc *UserCareerCreate) AddCareerTasks(c ...*CareerTask) *UserCareerCreate
- func (ucc *UserCareerCreate) Exec(ctx context.Context) error
- func (ucc *UserCareerCreate) ExecX(ctx context.Context)
- func (ucc *UserCareerCreate) Mutation() *UserCareerMutation
- func (ucc *UserCareerCreate) OnConflict(opts ...sql.ConflictOption) *UserCareerUpsertOne
- func (ucc *UserCareerCreate) OnConflictColumns(columns ...string) *UserCareerUpsertOne
- func (ucc *UserCareerCreate) Save(ctx context.Context) (*UserCareer, error)
- func (ucc *UserCareerCreate) SaveX(ctx context.Context) *UserCareer
- func (ucc *UserCareerCreate) SetCareerGroup(u *UserCareerGroup) *UserCareerCreate
- func (ucc *UserCareerCreate) SetCareerGroupID(id int) *UserCareerCreate
- func (ucc *UserCareerCreate) SetCreateTime(t time.Time) *UserCareerCreate
- func (ucc *UserCareerCreate) SetFrom(s string) *UserCareerCreate
- func (ucc *UserCareerCreate) SetName(s string) *UserCareerCreate
- func (ucc *UserCareerCreate) SetNillableCreateTime(t *time.Time) *UserCareerCreate
- func (ucc *UserCareerCreate) SetNillableTo(s *string) *UserCareerCreate
- func (ucc *UserCareerCreate) SetNillableUpdateTime(t *time.Time) *UserCareerCreate
- func (ucc *UserCareerCreate) SetTo(s string) *UserCareerCreate
- func (ucc *UserCareerCreate) SetUpdateTime(t time.Time) *UserCareerCreate
- type UserCareerCreateBulk
- func (uccb *UserCareerCreateBulk) Exec(ctx context.Context) error
- func (uccb *UserCareerCreateBulk) ExecX(ctx context.Context)
- func (uccb *UserCareerCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserCareerUpsertBulk
- func (uccb *UserCareerCreateBulk) OnConflictColumns(columns ...string) *UserCareerUpsertBulk
- func (uccb *UserCareerCreateBulk) Save(ctx context.Context) ([]*UserCareer, error)
- func (uccb *UserCareerCreateBulk) SaveX(ctx context.Context) []*UserCareer
- type UserCareerDelete
- type UserCareerDeleteOne
- type UserCareerDescription
- func (ucd *UserCareerDescription) QueryCareer() *UserCareerQuery
- func (ucd *UserCareerDescription) String() string
- func (ucd *UserCareerDescription) Unwrap() *UserCareerDescription
- func (ucd *UserCareerDescription) Update() *UserCareerDescriptionUpdateOne
- func (ucd *UserCareerDescription) Value(name string) (ent.Value, error)
- type UserCareerDescriptionClient
- func (c *UserCareerDescriptionClient) Create() *UserCareerDescriptionCreate
- func (c *UserCareerDescriptionClient) CreateBulk(builders ...*UserCareerDescriptionCreate) *UserCareerDescriptionCreateBulk
- func (c *UserCareerDescriptionClient) Delete() *UserCareerDescriptionDelete
- func (c *UserCareerDescriptionClient) DeleteOne(ucd *UserCareerDescription) *UserCareerDescriptionDeleteOne
- func (c *UserCareerDescriptionClient) DeleteOneID(id int) *UserCareerDescriptionDeleteOne
- func (c *UserCareerDescriptionClient) Get(ctx context.Context, id int) (*UserCareerDescription, error)
- func (c *UserCareerDescriptionClient) GetX(ctx context.Context, id int) *UserCareerDescription
- func (c *UserCareerDescriptionClient) Hooks() []Hook
- func (c *UserCareerDescriptionClient) Intercept(interceptors ...Interceptor)
- func (c *UserCareerDescriptionClient) Interceptors() []Interceptor
- func (c *UserCareerDescriptionClient) Query() *UserCareerDescriptionQuery
- func (c *UserCareerDescriptionClient) QueryCareer(ucd *UserCareerDescription) *UserCareerQuery
- func (c *UserCareerDescriptionClient) Update() *UserCareerDescriptionUpdate
- func (c *UserCareerDescriptionClient) UpdateOne(ucd *UserCareerDescription) *UserCareerDescriptionUpdateOne
- func (c *UserCareerDescriptionClient) UpdateOneID(id int) *UserCareerDescriptionUpdateOne
- func (c *UserCareerDescriptionClient) Use(hooks ...Hook)
- type UserCareerDescriptionCreate
- func (ucdc *UserCareerDescriptionCreate) Exec(ctx context.Context) error
- func (ucdc *UserCareerDescriptionCreate) ExecX(ctx context.Context)
- func (ucdc *UserCareerDescriptionCreate) Mutation() *UserCareerDescriptionMutation
- func (ucdc *UserCareerDescriptionCreate) OnConflict(opts ...sql.ConflictOption) *UserCareerDescriptionUpsertOne
- func (ucdc *UserCareerDescriptionCreate) OnConflictColumns(columns ...string) *UserCareerDescriptionUpsertOne
- func (ucdc *UserCareerDescriptionCreate) Save(ctx context.Context) (*UserCareerDescription, error)
- func (ucdc *UserCareerDescriptionCreate) SaveX(ctx context.Context) *UserCareerDescription
- func (ucdc *UserCareerDescriptionCreate) SetCareer(u *UserCareer) *UserCareerDescriptionCreate
- func (ucdc *UserCareerDescriptionCreate) SetCareerID(id int) *UserCareerDescriptionCreate
- func (ucdc *UserCareerDescriptionCreate) SetDescription(s string) *UserCareerDescriptionCreate
- type UserCareerDescriptionCreateBulk
- func (ucdcb *UserCareerDescriptionCreateBulk) Exec(ctx context.Context) error
- func (ucdcb *UserCareerDescriptionCreateBulk) ExecX(ctx context.Context)
- func (ucdcb *UserCareerDescriptionCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserCareerDescriptionUpsertBulk
- func (ucdcb *UserCareerDescriptionCreateBulk) OnConflictColumns(columns ...string) *UserCareerDescriptionUpsertBulk
- func (ucdcb *UserCareerDescriptionCreateBulk) Save(ctx context.Context) ([]*UserCareerDescription, error)
- func (ucdcb *UserCareerDescriptionCreateBulk) SaveX(ctx context.Context) []*UserCareerDescription
- type UserCareerDescriptionDelete
- type UserCareerDescriptionDeleteOne
- type UserCareerDescriptionEdges
- type UserCareerDescriptionGroupBy
- func (ucdgb *UserCareerDescriptionGroupBy) Aggregate(fns ...AggregateFunc) *UserCareerDescriptionGroupBy
- func (s *UserCareerDescriptionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserCareerDescriptionGroupBy) BoolX(ctx context.Context) bool
- func (s *UserCareerDescriptionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserCareerDescriptionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserCareerDescriptionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserCareerDescriptionGroupBy) Float64X(ctx context.Context) float64
- func (s *UserCareerDescriptionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserCareerDescriptionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserCareerDescriptionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserCareerDescriptionGroupBy) IntX(ctx context.Context) int
- func (s *UserCareerDescriptionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserCareerDescriptionGroupBy) IntsX(ctx context.Context) []int
- func (ucdgb *UserCareerDescriptionGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserCareerDescriptionGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserCareerDescriptionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserCareerDescriptionGroupBy) StringX(ctx context.Context) string
- func (s *UserCareerDescriptionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserCareerDescriptionGroupBy) StringsX(ctx context.Context) []string
- type UserCareerDescriptionMutation
- func (m *UserCareerDescriptionMutation) AddField(name string, value ent.Value) error
- func (m *UserCareerDescriptionMutation) AddedEdges() []string
- func (m *UserCareerDescriptionMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserCareerDescriptionMutation) AddedFields() []string
- func (m *UserCareerDescriptionMutation) AddedIDs(name string) []ent.Value
- func (m *UserCareerDescriptionMutation) CareerCleared() bool
- func (m *UserCareerDescriptionMutation) CareerID() (id int, exists bool)
- func (m *UserCareerDescriptionMutation) CareerIDs() (ids []int)
- func (m *UserCareerDescriptionMutation) ClearCareer()
- func (m *UserCareerDescriptionMutation) ClearEdge(name string) error
- func (m *UserCareerDescriptionMutation) ClearField(name string) error
- func (m *UserCareerDescriptionMutation) ClearedEdges() []string
- func (m *UserCareerDescriptionMutation) ClearedFields() []string
- func (m UserCareerDescriptionMutation) Client() *Client
- func (m *UserCareerDescriptionMutation) Description() (r string, exists bool)
- func (m *UserCareerDescriptionMutation) EdgeCleared(name string) bool
- func (m *UserCareerDescriptionMutation) Field(name string) (ent.Value, bool)
- func (m *UserCareerDescriptionMutation) FieldCleared(name string) bool
- func (m *UserCareerDescriptionMutation) Fields() []string
- func (m *UserCareerDescriptionMutation) ID() (id int, exists bool)
- func (m *UserCareerDescriptionMutation) IDs(ctx context.Context) ([]int, error)
- func (m *UserCareerDescriptionMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *UserCareerDescriptionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserCareerDescriptionMutation) Op() Op
- func (m *UserCareerDescriptionMutation) RemovedEdges() []string
- func (m *UserCareerDescriptionMutation) RemovedIDs(name string) []ent.Value
- func (m *UserCareerDescriptionMutation) ResetCareer()
- func (m *UserCareerDescriptionMutation) ResetDescription()
- func (m *UserCareerDescriptionMutation) ResetEdge(name string) error
- func (m *UserCareerDescriptionMutation) ResetField(name string) error
- func (m *UserCareerDescriptionMutation) SetCareerID(id int)
- func (m *UserCareerDescriptionMutation) SetDescription(s string)
- func (m *UserCareerDescriptionMutation) SetField(name string, value ent.Value) error
- func (m *UserCareerDescriptionMutation) SetOp(op Op)
- func (m UserCareerDescriptionMutation) Tx() (*Tx, error)
- func (m *UserCareerDescriptionMutation) Type() string
- func (m *UserCareerDescriptionMutation) Where(ps ...predicate.UserCareerDescription)
- func (m *UserCareerDescriptionMutation) WhereP(ps ...func(*sql.Selector))
- type UserCareerDescriptionQuery
- func (ucdq *UserCareerDescriptionQuery) Aggregate(fns ...AggregateFunc) *UserCareerDescriptionSelect
- func (ucdq *UserCareerDescriptionQuery) All(ctx context.Context) ([]*UserCareerDescription, error)
- func (ucdq *UserCareerDescriptionQuery) AllX(ctx context.Context) []*UserCareerDescription
- func (ucdq *UserCareerDescriptionQuery) Clone() *UserCareerDescriptionQuery
- func (ucdq *UserCareerDescriptionQuery) Count(ctx context.Context) (int, error)
- func (ucdq *UserCareerDescriptionQuery) CountX(ctx context.Context) int
- func (ucdq *UserCareerDescriptionQuery) Exist(ctx context.Context) (bool, error)
- func (ucdq *UserCareerDescriptionQuery) ExistX(ctx context.Context) bool
- func (ucdq *UserCareerDescriptionQuery) First(ctx context.Context) (*UserCareerDescription, error)
- func (ucdq *UserCareerDescriptionQuery) FirstID(ctx context.Context) (id int, err error)
- func (ucdq *UserCareerDescriptionQuery) FirstIDX(ctx context.Context) int
- func (ucdq *UserCareerDescriptionQuery) FirstX(ctx context.Context) *UserCareerDescription
- func (ucdq *UserCareerDescriptionQuery) GroupBy(field string, fields ...string) *UserCareerDescriptionGroupBy
- func (ucdq *UserCareerDescriptionQuery) IDs(ctx context.Context) (ids []int, err error)
- func (ucdq *UserCareerDescriptionQuery) IDsX(ctx context.Context) []int
- func (ucdq *UserCareerDescriptionQuery) Limit(limit int) *UserCareerDescriptionQuery
- func (ucdq *UserCareerDescriptionQuery) Offset(offset int) *UserCareerDescriptionQuery
- func (ucdq *UserCareerDescriptionQuery) Only(ctx context.Context) (*UserCareerDescription, error)
- func (ucdq *UserCareerDescriptionQuery) OnlyID(ctx context.Context) (id int, err error)
- func (ucdq *UserCareerDescriptionQuery) OnlyIDX(ctx context.Context) int
- func (ucdq *UserCareerDescriptionQuery) OnlyX(ctx context.Context) *UserCareerDescription
- func (ucdq *UserCareerDescriptionQuery) Order(o ...usercareerdescription.OrderOption) *UserCareerDescriptionQuery
- func (ucdq *UserCareerDescriptionQuery) QueryCareer() *UserCareerQuery
- func (ucdq *UserCareerDescriptionQuery) Select(fields ...string) *UserCareerDescriptionSelect
- func (ucdq *UserCareerDescriptionQuery) Unique(unique bool) *UserCareerDescriptionQuery
- func (ucdq *UserCareerDescriptionQuery) Where(ps ...predicate.UserCareerDescription) *UserCareerDescriptionQuery
- func (ucdq *UserCareerDescriptionQuery) WithCareer(opts ...func(*UserCareerQuery)) *UserCareerDescriptionQuery
- type UserCareerDescriptionSelect
- func (ucds *UserCareerDescriptionSelect) Aggregate(fns ...AggregateFunc) *UserCareerDescriptionSelect
- func (s *UserCareerDescriptionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserCareerDescriptionSelect) BoolX(ctx context.Context) bool
- func (s *UserCareerDescriptionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserCareerDescriptionSelect) BoolsX(ctx context.Context) []bool
- func (s *UserCareerDescriptionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserCareerDescriptionSelect) Float64X(ctx context.Context) float64
- func (s *UserCareerDescriptionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserCareerDescriptionSelect) Float64sX(ctx context.Context) []float64
- func (s *UserCareerDescriptionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserCareerDescriptionSelect) IntX(ctx context.Context) int
- func (s *UserCareerDescriptionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserCareerDescriptionSelect) IntsX(ctx context.Context) []int
- func (ucds *UserCareerDescriptionSelect) Scan(ctx context.Context, v any) error
- func (s *UserCareerDescriptionSelect) ScanX(ctx context.Context, v any)
- func (s *UserCareerDescriptionSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserCareerDescriptionSelect) StringX(ctx context.Context) string
- func (s *UserCareerDescriptionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserCareerDescriptionSelect) StringsX(ctx context.Context) []string
- type UserCareerDescriptionUpdate
- func (ucdu *UserCareerDescriptionUpdate) ClearCareer() *UserCareerDescriptionUpdate
- func (ucdu *UserCareerDescriptionUpdate) Exec(ctx context.Context) error
- func (ucdu *UserCareerDescriptionUpdate) ExecX(ctx context.Context)
- func (ucdu *UserCareerDescriptionUpdate) Mutation() *UserCareerDescriptionMutation
- func (ucdu *UserCareerDescriptionUpdate) Save(ctx context.Context) (int, error)
- func (ucdu *UserCareerDescriptionUpdate) SaveX(ctx context.Context) int
- func (ucdu *UserCareerDescriptionUpdate) SetCareer(u *UserCareer) *UserCareerDescriptionUpdate
- func (ucdu *UserCareerDescriptionUpdate) SetCareerID(id int) *UserCareerDescriptionUpdate
- func (ucdu *UserCareerDescriptionUpdate) SetDescription(s string) *UserCareerDescriptionUpdate
- func (ucdu *UserCareerDescriptionUpdate) Where(ps ...predicate.UserCareerDescription) *UserCareerDescriptionUpdate
- type UserCareerDescriptionUpdateOne
- func (ucduo *UserCareerDescriptionUpdateOne) ClearCareer() *UserCareerDescriptionUpdateOne
- func (ucduo *UserCareerDescriptionUpdateOne) Exec(ctx context.Context) error
- func (ucduo *UserCareerDescriptionUpdateOne) ExecX(ctx context.Context)
- func (ucduo *UserCareerDescriptionUpdateOne) Mutation() *UserCareerDescriptionMutation
- func (ucduo *UserCareerDescriptionUpdateOne) Save(ctx context.Context) (*UserCareerDescription, error)
- func (ucduo *UserCareerDescriptionUpdateOne) SaveX(ctx context.Context) *UserCareerDescription
- func (ucduo *UserCareerDescriptionUpdateOne) Select(field string, fields ...string) *UserCareerDescriptionUpdateOne
- func (ucduo *UserCareerDescriptionUpdateOne) SetCareer(u *UserCareer) *UserCareerDescriptionUpdateOne
- func (ucduo *UserCareerDescriptionUpdateOne) SetCareerID(id int) *UserCareerDescriptionUpdateOne
- func (ucduo *UserCareerDescriptionUpdateOne) SetDescription(s string) *UserCareerDescriptionUpdateOne
- func (ucduo *UserCareerDescriptionUpdateOne) Where(ps ...predicate.UserCareerDescription) *UserCareerDescriptionUpdateOne
- type UserCareerDescriptionUpsert
- type UserCareerDescriptionUpsertBulk
- func (u *UserCareerDescriptionUpsertBulk) DoNothing() *UserCareerDescriptionUpsertBulk
- func (u *UserCareerDescriptionUpsertBulk) Exec(ctx context.Context) error
- func (u *UserCareerDescriptionUpsertBulk) ExecX(ctx context.Context)
- func (u *UserCareerDescriptionUpsertBulk) Ignore() *UserCareerDescriptionUpsertBulk
- func (u *UserCareerDescriptionUpsertBulk) SetDescription(v string) *UserCareerDescriptionUpsertBulk
- func (u *UserCareerDescriptionUpsertBulk) Update(set func(*UserCareerDescriptionUpsert)) *UserCareerDescriptionUpsertBulk
- func (u *UserCareerDescriptionUpsertBulk) UpdateDescription() *UserCareerDescriptionUpsertBulk
- func (u *UserCareerDescriptionUpsertBulk) UpdateNewValues() *UserCareerDescriptionUpsertBulk
- type UserCareerDescriptionUpsertOne
- func (u *UserCareerDescriptionUpsertOne) DoNothing() *UserCareerDescriptionUpsertOne
- func (u *UserCareerDescriptionUpsertOne) Exec(ctx context.Context) error
- func (u *UserCareerDescriptionUpsertOne) ExecX(ctx context.Context)
- func (u *UserCareerDescriptionUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *UserCareerDescriptionUpsertOne) IDX(ctx context.Context) int
- func (u *UserCareerDescriptionUpsertOne) Ignore() *UserCareerDescriptionUpsertOne
- func (u *UserCareerDescriptionUpsertOne) SetDescription(v string) *UserCareerDescriptionUpsertOne
- func (u *UserCareerDescriptionUpsertOne) Update(set func(*UserCareerDescriptionUpsert)) *UserCareerDescriptionUpsertOne
- func (u *UserCareerDescriptionUpsertOne) UpdateDescription() *UserCareerDescriptionUpsertOne
- func (u *UserCareerDescriptionUpsertOne) UpdateNewValues() *UserCareerDescriptionUpsertOne
- type UserCareerDescriptions
- type UserCareerEdges
- func (e UserCareerEdges) CareerDescriptionsOrErr() ([]*UserCareerDescription, error)
- func (e UserCareerEdges) CareerGroupOrErr() (*UserCareerGroup, error)
- func (e UserCareerEdges) CareerSkillGroupsOrErr() ([]*CareerSkillGroup, error)
- func (e UserCareerEdges) CareerTasksOrErr() ([]*CareerTask, error)
- type UserCareerGroup
- func (ucg *UserCareerGroup) QueryCareers() *UserCareerQuery
- func (ucg *UserCareerGroup) QueryUser() *UserQuery
- func (ucg *UserCareerGroup) String() string
- func (ucg *UserCareerGroup) Unwrap() *UserCareerGroup
- func (ucg *UserCareerGroup) Update() *UserCareerGroupUpdateOne
- func (ucg *UserCareerGroup) Value(name string) (ent.Value, error)
- type UserCareerGroupBy
- func (ucgb *UserCareerGroupBy) Aggregate(fns ...AggregateFunc) *UserCareerGroupBy
- func (s *UserCareerGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserCareerGroupBy) BoolX(ctx context.Context) bool
- func (s *UserCareerGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserCareerGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserCareerGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserCareerGroupBy) Float64X(ctx context.Context) float64
- func (s *UserCareerGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserCareerGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserCareerGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserCareerGroupBy) IntX(ctx context.Context) int
- func (s *UserCareerGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserCareerGroupBy) IntsX(ctx context.Context) []int
- func (ucgb *UserCareerGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserCareerGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserCareerGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserCareerGroupBy) StringX(ctx context.Context) string
- func (s *UserCareerGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserCareerGroupBy) StringsX(ctx context.Context) []string
- type UserCareerGroupClient
- func (c *UserCareerGroupClient) Create() *UserCareerGroupCreate
- func (c *UserCareerGroupClient) CreateBulk(builders ...*UserCareerGroupCreate) *UserCareerGroupCreateBulk
- func (c *UserCareerGroupClient) Delete() *UserCareerGroupDelete
- func (c *UserCareerGroupClient) DeleteOne(ucg *UserCareerGroup) *UserCareerGroupDeleteOne
- func (c *UserCareerGroupClient) DeleteOneID(id int) *UserCareerGroupDeleteOne
- func (c *UserCareerGroupClient) Get(ctx context.Context, id int) (*UserCareerGroup, error)
- func (c *UserCareerGroupClient) GetX(ctx context.Context, id int) *UserCareerGroup
- func (c *UserCareerGroupClient) Hooks() []Hook
- func (c *UserCareerGroupClient) Intercept(interceptors ...Interceptor)
- func (c *UserCareerGroupClient) Interceptors() []Interceptor
- func (c *UserCareerGroupClient) Query() *UserCareerGroupQuery
- func (c *UserCareerGroupClient) QueryCareers(ucg *UserCareerGroup) *UserCareerQuery
- func (c *UserCareerGroupClient) QueryUser(ucg *UserCareerGroup) *UserQuery
- func (c *UserCareerGroupClient) Update() *UserCareerGroupUpdate
- func (c *UserCareerGroupClient) UpdateOne(ucg *UserCareerGroup) *UserCareerGroupUpdateOne
- func (c *UserCareerGroupClient) UpdateOneID(id int) *UserCareerGroupUpdateOne
- func (c *UserCareerGroupClient) Use(hooks ...Hook)
- type UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) AddCareerIDs(ids ...int) *UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) AddCareers(u ...*UserCareer) *UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) Exec(ctx context.Context) error
- func (ucgc *UserCareerGroupCreate) ExecX(ctx context.Context)
- func (ucgc *UserCareerGroupCreate) Mutation() *UserCareerGroupMutation
- func (ucgc *UserCareerGroupCreate) OnConflict(opts ...sql.ConflictOption) *UserCareerGroupUpsertOne
- func (ucgc *UserCareerGroupCreate) OnConflictColumns(columns ...string) *UserCareerGroupUpsertOne
- func (ucgc *UserCareerGroupCreate) Save(ctx context.Context) (*UserCareerGroup, error)
- func (ucgc *UserCareerGroupCreate) SaveX(ctx context.Context) *UserCareerGroup
- func (ucgc *UserCareerGroupCreate) SetCreateTime(t time.Time) *UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) SetLabel(s string) *UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) SetNillableCreateTime(t *time.Time) *UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) SetNillableUpdateTime(t *time.Time) *UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) SetUpdateTime(t time.Time) *UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) SetUser(u *User) *UserCareerGroupCreate
- func (ucgc *UserCareerGroupCreate) SetUserID(id int) *UserCareerGroupCreate
- type UserCareerGroupCreateBulk
- func (ucgcb *UserCareerGroupCreateBulk) Exec(ctx context.Context) error
- func (ucgcb *UserCareerGroupCreateBulk) ExecX(ctx context.Context)
- func (ucgcb *UserCareerGroupCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserCareerGroupUpsertBulk
- func (ucgcb *UserCareerGroupCreateBulk) OnConflictColumns(columns ...string) *UserCareerGroupUpsertBulk
- func (ucgcb *UserCareerGroupCreateBulk) Save(ctx context.Context) ([]*UserCareerGroup, error)
- func (ucgcb *UserCareerGroupCreateBulk) SaveX(ctx context.Context) []*UserCareerGroup
- type UserCareerGroupDelete
- type UserCareerGroupDeleteOne
- type UserCareerGroupEdges
- type UserCareerGroupGroupBy
- func (ucggb *UserCareerGroupGroupBy) Aggregate(fns ...AggregateFunc) *UserCareerGroupGroupBy
- func (s *UserCareerGroupGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserCareerGroupGroupBy) BoolX(ctx context.Context) bool
- func (s *UserCareerGroupGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserCareerGroupGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserCareerGroupGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserCareerGroupGroupBy) Float64X(ctx context.Context) float64
- func (s *UserCareerGroupGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserCareerGroupGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserCareerGroupGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserCareerGroupGroupBy) IntX(ctx context.Context) int
- func (s *UserCareerGroupGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserCareerGroupGroupBy) IntsX(ctx context.Context) []int
- func (ucggb *UserCareerGroupGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserCareerGroupGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserCareerGroupGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserCareerGroupGroupBy) StringX(ctx context.Context) string
- func (s *UserCareerGroupGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserCareerGroupGroupBy) StringsX(ctx context.Context) []string
- type UserCareerGroupMutation
- func (m *UserCareerGroupMutation) AddCareerIDs(ids ...int)
- func (m *UserCareerGroupMutation) AddField(name string, value ent.Value) error
- func (m *UserCareerGroupMutation) AddedEdges() []string
- func (m *UserCareerGroupMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserCareerGroupMutation) AddedFields() []string
- func (m *UserCareerGroupMutation) AddedIDs(name string) []ent.Value
- func (m *UserCareerGroupMutation) CareersCleared() bool
- func (m *UserCareerGroupMutation) CareersIDs() (ids []int)
- func (m *UserCareerGroupMutation) ClearCareers()
- func (m *UserCareerGroupMutation) ClearEdge(name string) error
- func (m *UserCareerGroupMutation) ClearField(name string) error
- func (m *UserCareerGroupMutation) ClearUser()
- func (m *UserCareerGroupMutation) ClearedEdges() []string
- func (m *UserCareerGroupMutation) ClearedFields() []string
- func (m UserCareerGroupMutation) Client() *Client
- func (m *UserCareerGroupMutation) CreateTime() (r time.Time, exists bool)
- func (m *UserCareerGroupMutation) EdgeCleared(name string) bool
- func (m *UserCareerGroupMutation) Field(name string) (ent.Value, bool)
- func (m *UserCareerGroupMutation) FieldCleared(name string) bool
- func (m *UserCareerGroupMutation) Fields() []string
- func (m *UserCareerGroupMutation) ID() (id int, exists bool)
- func (m *UserCareerGroupMutation) IDs(ctx context.Context) ([]int, error)
- func (m *UserCareerGroupMutation) Label() (r string, exists bool)
- func (m *UserCareerGroupMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserCareerGroupMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserCareerGroupMutation) OldLabel(ctx context.Context) (v string, err error)
- func (m *UserCareerGroupMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserCareerGroupMutation) Op() Op
- func (m *UserCareerGroupMutation) RemoveCareerIDs(ids ...int)
- func (m *UserCareerGroupMutation) RemovedCareersIDs() (ids []int)
- func (m *UserCareerGroupMutation) RemovedEdges() []string
- func (m *UserCareerGroupMutation) RemovedIDs(name string) []ent.Value
- func (m *UserCareerGroupMutation) ResetCareers()
- func (m *UserCareerGroupMutation) ResetCreateTime()
- func (m *UserCareerGroupMutation) ResetEdge(name string) error
- func (m *UserCareerGroupMutation) ResetField(name string) error
- func (m *UserCareerGroupMutation) ResetLabel()
- func (m *UserCareerGroupMutation) ResetUpdateTime()
- func (m *UserCareerGroupMutation) ResetUser()
- func (m *UserCareerGroupMutation) SetCreateTime(t time.Time)
- func (m *UserCareerGroupMutation) SetField(name string, value ent.Value) error
- func (m *UserCareerGroupMutation) SetLabel(s string)
- func (m *UserCareerGroupMutation) SetOp(op Op)
- func (m *UserCareerGroupMutation) SetUpdateTime(t time.Time)
- func (m *UserCareerGroupMutation) SetUserID(id int)
- func (m UserCareerGroupMutation) Tx() (*Tx, error)
- func (m *UserCareerGroupMutation) Type() string
- func (m *UserCareerGroupMutation) UpdateTime() (r time.Time, exists bool)
- func (m *UserCareerGroupMutation) UserCleared() bool
- func (m *UserCareerGroupMutation) UserID() (id int, exists bool)
- func (m *UserCareerGroupMutation) UserIDs() (ids []int)
- func (m *UserCareerGroupMutation) Where(ps ...predicate.UserCareerGroup)
- func (m *UserCareerGroupMutation) WhereP(ps ...func(*sql.Selector))
- type UserCareerGroupQuery
- func (ucgq *UserCareerGroupQuery) Aggregate(fns ...AggregateFunc) *UserCareerGroupSelect
- func (ucgq *UserCareerGroupQuery) All(ctx context.Context) ([]*UserCareerGroup, error)
- func (ucgq *UserCareerGroupQuery) AllX(ctx context.Context) []*UserCareerGroup
- func (ucgq *UserCareerGroupQuery) Clone() *UserCareerGroupQuery
- func (ucgq *UserCareerGroupQuery) Count(ctx context.Context) (int, error)
- func (ucgq *UserCareerGroupQuery) CountX(ctx context.Context) int
- func (ucgq *UserCareerGroupQuery) Exist(ctx context.Context) (bool, error)
- func (ucgq *UserCareerGroupQuery) ExistX(ctx context.Context) bool
- func (ucgq *UserCareerGroupQuery) First(ctx context.Context) (*UserCareerGroup, error)
- func (ucgq *UserCareerGroupQuery) FirstID(ctx context.Context) (id int, err error)
- func (ucgq *UserCareerGroupQuery) FirstIDX(ctx context.Context) int
- func (ucgq *UserCareerGroupQuery) FirstX(ctx context.Context) *UserCareerGroup
- func (ucgq *UserCareerGroupQuery) GroupBy(field string, fields ...string) *UserCareerGroupGroupBy
- func (ucgq *UserCareerGroupQuery) IDs(ctx context.Context) (ids []int, err error)
- func (ucgq *UserCareerGroupQuery) IDsX(ctx context.Context) []int
- func (ucgq *UserCareerGroupQuery) Limit(limit int) *UserCareerGroupQuery
- func (ucgq *UserCareerGroupQuery) Offset(offset int) *UserCareerGroupQuery
- func (ucgq *UserCareerGroupQuery) Only(ctx context.Context) (*UserCareerGroup, error)
- func (ucgq *UserCareerGroupQuery) OnlyID(ctx context.Context) (id int, err error)
- func (ucgq *UserCareerGroupQuery) OnlyIDX(ctx context.Context) int
- func (ucgq *UserCareerGroupQuery) OnlyX(ctx context.Context) *UserCareerGroup
- func (ucgq *UserCareerGroupQuery) Order(o ...usercareergroup.OrderOption) *UserCareerGroupQuery
- func (ucgq *UserCareerGroupQuery) QueryCareers() *UserCareerQuery
- func (ucgq *UserCareerGroupQuery) QueryUser() *UserQuery
- func (ucgq *UserCareerGroupQuery) Select(fields ...string) *UserCareerGroupSelect
- func (ucgq *UserCareerGroupQuery) Unique(unique bool) *UserCareerGroupQuery
- func (ucgq *UserCareerGroupQuery) Where(ps ...predicate.UserCareerGroup) *UserCareerGroupQuery
- func (ucgq *UserCareerGroupQuery) WithCareers(opts ...func(*UserCareerQuery)) *UserCareerGroupQuery
- func (ucgq *UserCareerGroupQuery) WithUser(opts ...func(*UserQuery)) *UserCareerGroupQuery
- type UserCareerGroupSelect
- func (ucgs *UserCareerGroupSelect) Aggregate(fns ...AggregateFunc) *UserCareerGroupSelect
- func (s *UserCareerGroupSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserCareerGroupSelect) BoolX(ctx context.Context) bool
- func (s *UserCareerGroupSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserCareerGroupSelect) BoolsX(ctx context.Context) []bool
- func (s *UserCareerGroupSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserCareerGroupSelect) Float64X(ctx context.Context) float64
- func (s *UserCareerGroupSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserCareerGroupSelect) Float64sX(ctx context.Context) []float64
- func (s *UserCareerGroupSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserCareerGroupSelect) IntX(ctx context.Context) int
- func (s *UserCareerGroupSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserCareerGroupSelect) IntsX(ctx context.Context) []int
- func (ucgs *UserCareerGroupSelect) Scan(ctx context.Context, v any) error
- func (s *UserCareerGroupSelect) ScanX(ctx context.Context, v any)
- func (s *UserCareerGroupSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserCareerGroupSelect) StringX(ctx context.Context) string
- func (s *UserCareerGroupSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserCareerGroupSelect) StringsX(ctx context.Context) []string
- type UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) AddCareerIDs(ids ...int) *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) AddCareers(u ...*UserCareer) *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) ClearCareers() *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) ClearUser() *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) Exec(ctx context.Context) error
- func (ucgu *UserCareerGroupUpdate) ExecX(ctx context.Context)
- func (ucgu *UserCareerGroupUpdate) Mutation() *UserCareerGroupMutation
- func (ucgu *UserCareerGroupUpdate) RemoveCareerIDs(ids ...int) *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) RemoveCareers(u ...*UserCareer) *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) Save(ctx context.Context) (int, error)
- func (ucgu *UserCareerGroupUpdate) SaveX(ctx context.Context) int
- func (ucgu *UserCareerGroupUpdate) SetLabel(s string) *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) SetUpdateTime(t time.Time) *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) SetUser(u *User) *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) SetUserID(id int) *UserCareerGroupUpdate
- func (ucgu *UserCareerGroupUpdate) Where(ps ...predicate.UserCareerGroup) *UserCareerGroupUpdate
- type UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) AddCareerIDs(ids ...int) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) AddCareers(u ...*UserCareer) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) ClearCareers() *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) ClearUser() *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) Exec(ctx context.Context) error
- func (ucguo *UserCareerGroupUpdateOne) ExecX(ctx context.Context)
- func (ucguo *UserCareerGroupUpdateOne) Mutation() *UserCareerGroupMutation
- func (ucguo *UserCareerGroupUpdateOne) RemoveCareerIDs(ids ...int) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) RemoveCareers(u ...*UserCareer) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) Save(ctx context.Context) (*UserCareerGroup, error)
- func (ucguo *UserCareerGroupUpdateOne) SaveX(ctx context.Context) *UserCareerGroup
- func (ucguo *UserCareerGroupUpdateOne) Select(field string, fields ...string) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) SetLabel(s string) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) SetUpdateTime(t time.Time) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) SetUser(u *User) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) SetUserID(id int) *UserCareerGroupUpdateOne
- func (ucguo *UserCareerGroupUpdateOne) Where(ps ...predicate.UserCareerGroup) *UserCareerGroupUpdateOne
- type UserCareerGroupUpsert
- type UserCareerGroupUpsertBulk
- func (u *UserCareerGroupUpsertBulk) DoNothing() *UserCareerGroupUpsertBulk
- func (u *UserCareerGroupUpsertBulk) Exec(ctx context.Context) error
- func (u *UserCareerGroupUpsertBulk) ExecX(ctx context.Context)
- func (u *UserCareerGroupUpsertBulk) Ignore() *UserCareerGroupUpsertBulk
- func (u *UserCareerGroupUpsertBulk) SetLabel(v string) *UserCareerGroupUpsertBulk
- func (u *UserCareerGroupUpsertBulk) SetUpdateTime(v time.Time) *UserCareerGroupUpsertBulk
- func (u *UserCareerGroupUpsertBulk) Update(set func(*UserCareerGroupUpsert)) *UserCareerGroupUpsertBulk
- func (u *UserCareerGroupUpsertBulk) UpdateLabel() *UserCareerGroupUpsertBulk
- func (u *UserCareerGroupUpsertBulk) UpdateNewValues() *UserCareerGroupUpsertBulk
- func (u *UserCareerGroupUpsertBulk) UpdateUpdateTime() *UserCareerGroupUpsertBulk
- type UserCareerGroupUpsertOne
- func (u *UserCareerGroupUpsertOne) DoNothing() *UserCareerGroupUpsertOne
- func (u *UserCareerGroupUpsertOne) Exec(ctx context.Context) error
- func (u *UserCareerGroupUpsertOne) ExecX(ctx context.Context)
- func (u *UserCareerGroupUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *UserCareerGroupUpsertOne) IDX(ctx context.Context) int
- func (u *UserCareerGroupUpsertOne) Ignore() *UserCareerGroupUpsertOne
- func (u *UserCareerGroupUpsertOne) SetLabel(v string) *UserCareerGroupUpsertOne
- func (u *UserCareerGroupUpsertOne) SetUpdateTime(v time.Time) *UserCareerGroupUpsertOne
- func (u *UserCareerGroupUpsertOne) Update(set func(*UserCareerGroupUpsert)) *UserCareerGroupUpsertOne
- func (u *UserCareerGroupUpsertOne) UpdateLabel() *UserCareerGroupUpsertOne
- func (u *UserCareerGroupUpsertOne) UpdateNewValues() *UserCareerGroupUpsertOne
- func (u *UserCareerGroupUpsertOne) UpdateUpdateTime() *UserCareerGroupUpsertOne
- type UserCareerGroups
- type UserCareerMutation
- func (m *UserCareerMutation) AddCareerDescriptionIDs(ids ...int)
- func (m *UserCareerMutation) AddCareerSkillGroupIDs(ids ...int)
- func (m *UserCareerMutation) AddCareerTaskIDs(ids ...int)
- func (m *UserCareerMutation) AddField(name string, value ent.Value) error
- func (m *UserCareerMutation) AddedEdges() []string
- func (m *UserCareerMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserCareerMutation) AddedFields() []string
- func (m *UserCareerMutation) AddedIDs(name string) []ent.Value
- func (m *UserCareerMutation) CareerDescriptionsCleared() bool
- func (m *UserCareerMutation) CareerDescriptionsIDs() (ids []int)
- func (m *UserCareerMutation) CareerGroupCleared() bool
- func (m *UserCareerMutation) CareerGroupID() (id int, exists bool)
- func (m *UserCareerMutation) CareerGroupIDs() (ids []int)
- func (m *UserCareerMutation) CareerSkillGroupsCleared() bool
- func (m *UserCareerMutation) CareerSkillGroupsIDs() (ids []int)
- func (m *UserCareerMutation) CareerTasksCleared() bool
- func (m *UserCareerMutation) CareerTasksIDs() (ids []int)
- func (m *UserCareerMutation) ClearCareerDescriptions()
- func (m *UserCareerMutation) ClearCareerGroup()
- func (m *UserCareerMutation) ClearCareerSkillGroups()
- func (m *UserCareerMutation) ClearCareerTasks()
- func (m *UserCareerMutation) ClearEdge(name string) error
- func (m *UserCareerMutation) ClearField(name string) error
- func (m *UserCareerMutation) ClearTo()
- func (m *UserCareerMutation) ClearedEdges() []string
- func (m *UserCareerMutation) ClearedFields() []string
- func (m UserCareerMutation) Client() *Client
- func (m *UserCareerMutation) CreateTime() (r time.Time, exists bool)
- func (m *UserCareerMutation) EdgeCleared(name string) bool
- func (m *UserCareerMutation) Field(name string) (ent.Value, bool)
- func (m *UserCareerMutation) FieldCleared(name string) bool
- func (m *UserCareerMutation) Fields() []string
- func (m *UserCareerMutation) From() (r string, exists bool)
- func (m *UserCareerMutation) ID() (id int, exists bool)
- func (m *UserCareerMutation) IDs(ctx context.Context) ([]int, error)
- func (m *UserCareerMutation) Name() (r string, exists bool)
- func (m *UserCareerMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserCareerMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserCareerMutation) OldFrom(ctx context.Context) (v string, err error)
- func (m *UserCareerMutation) OldName(ctx context.Context) (v string, err error)
- func (m *UserCareerMutation) OldTo(ctx context.Context) (v *string, err error)
- func (m *UserCareerMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserCareerMutation) Op() Op
- func (m *UserCareerMutation) RemoveCareerDescriptionIDs(ids ...int)
- func (m *UserCareerMutation) RemoveCareerSkillGroupIDs(ids ...int)
- func (m *UserCareerMutation) RemoveCareerTaskIDs(ids ...int)
- func (m *UserCareerMutation) RemovedCareerDescriptionsIDs() (ids []int)
- func (m *UserCareerMutation) RemovedCareerSkillGroupsIDs() (ids []int)
- func (m *UserCareerMutation) RemovedCareerTasksIDs() (ids []int)
- func (m *UserCareerMutation) RemovedEdges() []string
- func (m *UserCareerMutation) RemovedIDs(name string) []ent.Value
- func (m *UserCareerMutation) ResetCareerDescriptions()
- func (m *UserCareerMutation) ResetCareerGroup()
- func (m *UserCareerMutation) ResetCareerSkillGroups()
- func (m *UserCareerMutation) ResetCareerTasks()
- func (m *UserCareerMutation) ResetCreateTime()
- func (m *UserCareerMutation) ResetEdge(name string) error
- func (m *UserCareerMutation) ResetField(name string) error
- func (m *UserCareerMutation) ResetFrom()
- func (m *UserCareerMutation) ResetName()
- func (m *UserCareerMutation) ResetTo()
- func (m *UserCareerMutation) ResetUpdateTime()
- func (m *UserCareerMutation) SetCareerGroupID(id int)
- func (m *UserCareerMutation) SetCreateTime(t time.Time)
- func (m *UserCareerMutation) SetField(name string, value ent.Value) error
- func (m *UserCareerMutation) SetFrom(s string)
- func (m *UserCareerMutation) SetName(s string)
- func (m *UserCareerMutation) SetOp(op Op)
- func (m *UserCareerMutation) SetTo(s string)
- func (m *UserCareerMutation) SetUpdateTime(t time.Time)
- func (m *UserCareerMutation) To() (r string, exists bool)
- func (m *UserCareerMutation) ToCleared() bool
- func (m UserCareerMutation) Tx() (*Tx, error)
- func (m *UserCareerMutation) Type() string
- func (m *UserCareerMutation) UpdateTime() (r time.Time, exists bool)
- func (m *UserCareerMutation) Where(ps ...predicate.UserCareer)
- func (m *UserCareerMutation) WhereP(ps ...func(*sql.Selector))
- type UserCareerQuery
- func (ucq *UserCareerQuery) Aggregate(fns ...AggregateFunc) *UserCareerSelect
- func (ucq *UserCareerQuery) All(ctx context.Context) ([]*UserCareer, error)
- func (ucq *UserCareerQuery) AllX(ctx context.Context) []*UserCareer
- func (ucq *UserCareerQuery) Clone() *UserCareerQuery
- func (ucq *UserCareerQuery) Count(ctx context.Context) (int, error)
- func (ucq *UserCareerQuery) CountX(ctx context.Context) int
- func (ucq *UserCareerQuery) Exist(ctx context.Context) (bool, error)
- func (ucq *UserCareerQuery) ExistX(ctx context.Context) bool
- func (ucq *UserCareerQuery) First(ctx context.Context) (*UserCareer, error)
- func (ucq *UserCareerQuery) FirstID(ctx context.Context) (id int, err error)
- func (ucq *UserCareerQuery) FirstIDX(ctx context.Context) int
- func (ucq *UserCareerQuery) FirstX(ctx context.Context) *UserCareer
- func (ucq *UserCareerQuery) GroupBy(field string, fields ...string) *UserCareerGroupBy
- func (ucq *UserCareerQuery) IDs(ctx context.Context) (ids []int, err error)
- func (ucq *UserCareerQuery) IDsX(ctx context.Context) []int
- func (ucq *UserCareerQuery) Limit(limit int) *UserCareerQuery
- func (ucq *UserCareerQuery) Offset(offset int) *UserCareerQuery
- func (ucq *UserCareerQuery) Only(ctx context.Context) (*UserCareer, error)
- func (ucq *UserCareerQuery) OnlyID(ctx context.Context) (id int, err error)
- func (ucq *UserCareerQuery) OnlyIDX(ctx context.Context) int
- func (ucq *UserCareerQuery) OnlyX(ctx context.Context) *UserCareer
- func (ucq *UserCareerQuery) Order(o ...usercareer.OrderOption) *UserCareerQuery
- func (ucq *UserCareerQuery) QueryCareerDescriptions() *UserCareerDescriptionQuery
- func (ucq *UserCareerQuery) QueryCareerGroup() *UserCareerGroupQuery
- func (ucq *UserCareerQuery) QueryCareerSkillGroups() *CareerSkillGroupQuery
- func (ucq *UserCareerQuery) QueryCareerTasks() *CareerTaskQuery
- func (ucq *UserCareerQuery) Select(fields ...string) *UserCareerSelect
- func (ucq *UserCareerQuery) Unique(unique bool) *UserCareerQuery
- func (ucq *UserCareerQuery) Where(ps ...predicate.UserCareer) *UserCareerQuery
- func (ucq *UserCareerQuery) WithCareerDescriptions(opts ...func(*UserCareerDescriptionQuery)) *UserCareerQuery
- func (ucq *UserCareerQuery) WithCareerGroup(opts ...func(*UserCareerGroupQuery)) *UserCareerQuery
- func (ucq *UserCareerQuery) WithCareerSkillGroups(opts ...func(*CareerSkillGroupQuery)) *UserCareerQuery
- func (ucq *UserCareerQuery) WithCareerTasks(opts ...func(*CareerTaskQuery)) *UserCareerQuery
- type UserCareerSelect
- func (ucs *UserCareerSelect) Aggregate(fns ...AggregateFunc) *UserCareerSelect
- func (s *UserCareerSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserCareerSelect) BoolX(ctx context.Context) bool
- func (s *UserCareerSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserCareerSelect) BoolsX(ctx context.Context) []bool
- func (s *UserCareerSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserCareerSelect) Float64X(ctx context.Context) float64
- func (s *UserCareerSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserCareerSelect) Float64sX(ctx context.Context) []float64
- func (s *UserCareerSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserCareerSelect) IntX(ctx context.Context) int
- func (s *UserCareerSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserCareerSelect) IntsX(ctx context.Context) []int
- func (ucs *UserCareerSelect) Scan(ctx context.Context, v any) error
- func (s *UserCareerSelect) ScanX(ctx context.Context, v any)
- func (s *UserCareerSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserCareerSelect) StringX(ctx context.Context) string
- func (s *UserCareerSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserCareerSelect) StringsX(ctx context.Context) []string
- type UserCareerUpdate
- func (ucu *UserCareerUpdate) AddCareerDescriptionIDs(ids ...int) *UserCareerUpdate
- func (ucu *UserCareerUpdate) AddCareerDescriptions(u ...*UserCareerDescription) *UserCareerUpdate
- func (ucu *UserCareerUpdate) AddCareerSkillGroupIDs(ids ...int) *UserCareerUpdate
- func (ucu *UserCareerUpdate) AddCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerUpdate
- func (ucu *UserCareerUpdate) AddCareerTaskIDs(ids ...int) *UserCareerUpdate
- func (ucu *UserCareerUpdate) AddCareerTasks(c ...*CareerTask) *UserCareerUpdate
- func (ucu *UserCareerUpdate) ClearCareerDescriptions() *UserCareerUpdate
- func (ucu *UserCareerUpdate) ClearCareerGroup() *UserCareerUpdate
- func (ucu *UserCareerUpdate) ClearCareerSkillGroups() *UserCareerUpdate
- func (ucu *UserCareerUpdate) ClearCareerTasks() *UserCareerUpdate
- func (ucu *UserCareerUpdate) ClearTo() *UserCareerUpdate
- func (ucu *UserCareerUpdate) Exec(ctx context.Context) error
- func (ucu *UserCareerUpdate) ExecX(ctx context.Context)
- func (ucu *UserCareerUpdate) Mutation() *UserCareerMutation
- func (ucu *UserCareerUpdate) RemoveCareerDescriptionIDs(ids ...int) *UserCareerUpdate
- func (ucu *UserCareerUpdate) RemoveCareerDescriptions(u ...*UserCareerDescription) *UserCareerUpdate
- func (ucu *UserCareerUpdate) RemoveCareerSkillGroupIDs(ids ...int) *UserCareerUpdate
- func (ucu *UserCareerUpdate) RemoveCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerUpdate
- func (ucu *UserCareerUpdate) RemoveCareerTaskIDs(ids ...int) *UserCareerUpdate
- func (ucu *UserCareerUpdate) RemoveCareerTasks(c ...*CareerTask) *UserCareerUpdate
- func (ucu *UserCareerUpdate) Save(ctx context.Context) (int, error)
- func (ucu *UserCareerUpdate) SaveX(ctx context.Context) int
- func (ucu *UserCareerUpdate) SetCareerGroup(u *UserCareerGroup) *UserCareerUpdate
- func (ucu *UserCareerUpdate) SetCareerGroupID(id int) *UserCareerUpdate
- func (ucu *UserCareerUpdate) SetFrom(s string) *UserCareerUpdate
- func (ucu *UserCareerUpdate) SetName(s string) *UserCareerUpdate
- func (ucu *UserCareerUpdate) SetNillableTo(s *string) *UserCareerUpdate
- func (ucu *UserCareerUpdate) SetTo(s string) *UserCareerUpdate
- func (ucu *UserCareerUpdate) SetUpdateTime(t time.Time) *UserCareerUpdate
- func (ucu *UserCareerUpdate) Where(ps ...predicate.UserCareer) *UserCareerUpdate
- type UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) AddCareerDescriptionIDs(ids ...int) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) AddCareerDescriptions(u ...*UserCareerDescription) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) AddCareerSkillGroupIDs(ids ...int) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) AddCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) AddCareerTaskIDs(ids ...int) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) AddCareerTasks(c ...*CareerTask) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) ClearCareerDescriptions() *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) ClearCareerGroup() *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) ClearCareerSkillGroups() *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) ClearCareerTasks() *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) ClearTo() *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) Exec(ctx context.Context) error
- func (ucuo *UserCareerUpdateOne) ExecX(ctx context.Context)
- func (ucuo *UserCareerUpdateOne) Mutation() *UserCareerMutation
- func (ucuo *UserCareerUpdateOne) RemoveCareerDescriptionIDs(ids ...int) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) RemoveCareerDescriptions(u ...*UserCareerDescription) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) RemoveCareerSkillGroupIDs(ids ...int) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) RemoveCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) RemoveCareerTaskIDs(ids ...int) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) RemoveCareerTasks(c ...*CareerTask) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) Save(ctx context.Context) (*UserCareer, error)
- func (ucuo *UserCareerUpdateOne) SaveX(ctx context.Context) *UserCareer
- func (ucuo *UserCareerUpdateOne) Select(field string, fields ...string) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) SetCareerGroup(u *UserCareerGroup) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) SetCareerGroupID(id int) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) SetFrom(s string) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) SetName(s string) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) SetNillableTo(s *string) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) SetTo(s string) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) SetUpdateTime(t time.Time) *UserCareerUpdateOne
- func (ucuo *UserCareerUpdateOne) Where(ps ...predicate.UserCareer) *UserCareerUpdateOne
- type UserCareerUpsert
- func (u *UserCareerUpsert) ClearTo() *UserCareerUpsert
- func (u *UserCareerUpsert) SetFrom(v string) *UserCareerUpsert
- func (u *UserCareerUpsert) SetName(v string) *UserCareerUpsert
- func (u *UserCareerUpsert) SetTo(v string) *UserCareerUpsert
- func (u *UserCareerUpsert) SetUpdateTime(v time.Time) *UserCareerUpsert
- func (u *UserCareerUpsert) UpdateFrom() *UserCareerUpsert
- func (u *UserCareerUpsert) UpdateName() *UserCareerUpsert
- func (u *UserCareerUpsert) UpdateTo() *UserCareerUpsert
- func (u *UserCareerUpsert) UpdateUpdateTime() *UserCareerUpsert
- type UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) ClearTo() *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) DoNothing() *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) Exec(ctx context.Context) error
- func (u *UserCareerUpsertBulk) ExecX(ctx context.Context)
- func (u *UserCareerUpsertBulk) Ignore() *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) SetFrom(v string) *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) SetName(v string) *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) SetTo(v string) *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) SetUpdateTime(v time.Time) *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) Update(set func(*UserCareerUpsert)) *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) UpdateFrom() *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) UpdateName() *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) UpdateNewValues() *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) UpdateTo() *UserCareerUpsertBulk
- func (u *UserCareerUpsertBulk) UpdateUpdateTime() *UserCareerUpsertBulk
- type UserCareerUpsertOne
- func (u *UserCareerUpsertOne) ClearTo() *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) DoNothing() *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) Exec(ctx context.Context) error
- func (u *UserCareerUpsertOne) ExecX(ctx context.Context)
- func (u *UserCareerUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *UserCareerUpsertOne) IDX(ctx context.Context) int
- func (u *UserCareerUpsertOne) Ignore() *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) SetFrom(v string) *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) SetName(v string) *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) SetTo(v string) *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) SetUpdateTime(v time.Time) *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) Update(set func(*UserCareerUpsert)) *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) UpdateFrom() *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) UpdateName() *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) UpdateNewValues() *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) UpdateTo() *UserCareerUpsertOne
- func (u *UserCareerUpsertOne) UpdateUpdateTime() *UserCareerUpsertOne
- type UserCareers
- type UserClient
- func (c *UserClient) Create() *UserCreate
- func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
- func (c *UserClient) Delete() *UserDelete
- func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
- func (c *UserClient) DeleteOneID(id int) *UserDeleteOne
- func (c *UserClient) Get(ctx context.Context, id int) (*User, error)
- func (c *UserClient) GetX(ctx context.Context, id int) *User
- func (c *UserClient) Hooks() []Hook
- func (c *UserClient) Intercept(interceptors ...Interceptor)
- func (c *UserClient) Interceptors() []Interceptor
- func (c *UserClient) Query() *UserQuery
- func (c *UserClient) QueryActivities(u *User) *UserActivityQuery
- func (c *UserClient) QueryCareerGroups(u *User) *UserCareerGroupQuery
- func (c *UserClient) QueryNotes(u *User) *UserNoteQuery
- func (c *UserClient) QueryQualifications(u *User) *UserQualificationQuery
- func (c *UserClient) Update() *UserUpdate
- func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
- func (c *UserClient) UpdateOneID(id int) *UserUpdateOne
- func (c *UserClient) Use(hooks ...Hook)
- type UserCreate
- func (uc *UserCreate) AddActivities(u ...*UserActivity) *UserCreate
- func (uc *UserCreate) AddActivityIDs(ids ...int) *UserCreate
- func (uc *UserCreate) AddCareerGroupIDs(ids ...int) *UserCreate
- func (uc *UserCreate) AddCareerGroups(u ...*UserCareerGroup) *UserCreate
- func (uc *UserCreate) AddNoteIDs(ids ...int) *UserCreate
- func (uc *UserCreate) AddNotes(u ...*UserNote) *UserCreate
- func (uc *UserCreate) AddQualificationIDs(ids ...int) *UserCreate
- func (uc *UserCreate) AddQualifications(u ...*UserQualification) *UserCreate
- func (uc *UserCreate) Exec(ctx context.Context) error
- func (uc *UserCreate) ExecX(ctx context.Context)
- func (uc *UserCreate) Mutation() *UserMutation
- func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne
- func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne
- func (uc *UserCreate) Save(ctx context.Context) (*User, error)
- func (uc *UserCreate) SaveX(ctx context.Context) *User
- func (uc *UserCreate) SetAvatarURL(s string) *UserCreate
- func (uc *UserCreate) SetBelongTo(s string) *UserCreate
- func (uc *UserCreate) SetBirthdayDay(i int) *UserCreate
- func (uc *UserCreate) SetBirthdayMonth(i int) *UserCreate
- func (uc *UserCreate) SetBirthdayYear(i int) *UserCreate
- func (uc *UserCreate) SetCreateTime(t time.Time) *UserCreate
- func (uc *UserCreate) SetJob(s string) *UserCreate
- func (uc *UserCreate) SetName(s string) *UserCreate
- func (uc *UserCreate) SetNickname(s string) *UserCreate
- func (uc *UserCreate) SetNillableAvatarURL(s *string) *UserCreate
- func (uc *UserCreate) SetNillableBelongTo(s *string) *UserCreate
- func (uc *UserCreate) SetNillableCreateTime(t *time.Time) *UserCreate
- func (uc *UserCreate) SetNillableJob(s *string) *UserCreate
- func (uc *UserCreate) SetNillableNickname(s *string) *UserCreate
- func (uc *UserCreate) SetNillablePr(s *string) *UserCreate
- func (uc *UserCreate) SetNillableUpdateTime(t *time.Time) *UserCreate
- func (uc *UserCreate) SetPr(s string) *UserCreate
- func (uc *UserCreate) SetUpdateTime(t time.Time) *UserCreate
- type UserCreateBulk
- func (ucb *UserCreateBulk) Exec(ctx context.Context) error
- func (ucb *UserCreateBulk) ExecX(ctx context.Context)
- func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk
- func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk
- func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)
- func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User
- type UserDelete
- type UserDeleteOne
- type UserEdges
- type UserGroupBy
- func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
- func (s *UserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserGroupBy) BoolX(ctx context.Context) bool
- func (s *UserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserGroupBy) Float64X(ctx context.Context) float64
- func (s *UserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserGroupBy) IntX(ctx context.Context) int
- func (s *UserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserGroupBy) IntsX(ctx context.Context) []int
- func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserGroupBy) StringX(ctx context.Context) string
- func (s *UserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserGroupBy) StringsX(ctx context.Context) []string
- type UserMutation
- func (m *UserMutation) ActivitiesCleared() bool
- func (m *UserMutation) ActivitiesIDs() (ids []int)
- func (m *UserMutation) AddActivityIDs(ids ...int)
- func (m *UserMutation) AddBirthdayDay(i int)
- func (m *UserMutation) AddBirthdayMonth(i int)
- func (m *UserMutation) AddBirthdayYear(i int)
- func (m *UserMutation) AddCareerGroupIDs(ids ...int)
- func (m *UserMutation) AddField(name string, value ent.Value) error
- func (m *UserMutation) AddNoteIDs(ids ...int)
- func (m *UserMutation) AddQualificationIDs(ids ...int)
- func (m *UserMutation) AddedBirthdayDay() (r int, exists bool)
- func (m *UserMutation) AddedBirthdayMonth() (r int, exists bool)
- func (m *UserMutation) AddedBirthdayYear() (r int, exists bool)
- func (m *UserMutation) AddedEdges() []string
- func (m *UserMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserMutation) AddedFields() []string
- func (m *UserMutation) AddedIDs(name string) []ent.Value
- func (m *UserMutation) AvatarURL() (r string, exists bool)
- func (m *UserMutation) AvatarURLCleared() bool
- func (m *UserMutation) BelongTo() (r string, exists bool)
- func (m *UserMutation) BelongToCleared() bool
- func (m *UserMutation) BirthdayDay() (r int, exists bool)
- func (m *UserMutation) BirthdayMonth() (r int, exists bool)
- func (m *UserMutation) BirthdayYear() (r int, exists bool)
- func (m *UserMutation) CareerGroupsCleared() bool
- func (m *UserMutation) CareerGroupsIDs() (ids []int)
- func (m *UserMutation) ClearActivities()
- func (m *UserMutation) ClearAvatarURL()
- func (m *UserMutation) ClearBelongTo()
- func (m *UserMutation) ClearCareerGroups()
- func (m *UserMutation) ClearEdge(name string) error
- func (m *UserMutation) ClearField(name string) error
- func (m *UserMutation) ClearJob()
- func (m *UserMutation) ClearNickname()
- func (m *UserMutation) ClearNotes()
- func (m *UserMutation) ClearPr()
- func (m *UserMutation) ClearQualifications()
- func (m *UserMutation) ClearedEdges() []string
- func (m *UserMutation) ClearedFields() []string
- func (m UserMutation) Client() *Client
- func (m *UserMutation) CreateTime() (r time.Time, exists bool)
- func (m *UserMutation) EdgeCleared(name string) bool
- func (m *UserMutation) Field(name string) (ent.Value, bool)
- func (m *UserMutation) FieldCleared(name string) bool
- func (m *UserMutation) Fields() []string
- func (m *UserMutation) ID() (id int, exists bool)
- func (m *UserMutation) IDs(ctx context.Context) ([]int, error)
- func (m *UserMutation) Job() (r string, exists bool)
- func (m *UserMutation) JobCleared() bool
- func (m *UserMutation) Name() (r string, exists bool)
- func (m *UserMutation) Nickname() (r string, exists bool)
- func (m *UserMutation) NicknameCleared() bool
- func (m *UserMutation) NotesCleared() bool
- func (m *UserMutation) NotesIDs() (ids []int)
- func (m *UserMutation) OldAvatarURL(ctx context.Context) (v *string, err error)
- func (m *UserMutation) OldBelongTo(ctx context.Context) (v *string, err error)
- func (m *UserMutation) OldBirthdayDay(ctx context.Context) (v int, err error)
- func (m *UserMutation) OldBirthdayMonth(ctx context.Context) (v int, err error)
- func (m *UserMutation) OldBirthdayYear(ctx context.Context) (v int, err error)
- func (m *UserMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserMutation) OldJob(ctx context.Context) (v *string, err error)
- func (m *UserMutation) OldName(ctx context.Context) (v string, err error)
- func (m *UserMutation) OldNickname(ctx context.Context) (v *string, err error)
- func (m *UserMutation) OldPr(ctx context.Context) (v *string, err error)
- func (m *UserMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserMutation) Op() Op
- func (m *UserMutation) Pr() (r string, exists bool)
- func (m *UserMutation) PrCleared() bool
- func (m *UserMutation) QualificationsCleared() bool
- func (m *UserMutation) QualificationsIDs() (ids []int)
- func (m *UserMutation) RemoveActivityIDs(ids ...int)
- func (m *UserMutation) RemoveCareerGroupIDs(ids ...int)
- func (m *UserMutation) RemoveNoteIDs(ids ...int)
- func (m *UserMutation) RemoveQualificationIDs(ids ...int)
- func (m *UserMutation) RemovedActivitiesIDs() (ids []int)
- func (m *UserMutation) RemovedCareerGroupsIDs() (ids []int)
- func (m *UserMutation) RemovedEdges() []string
- func (m *UserMutation) RemovedIDs(name string) []ent.Value
- func (m *UserMutation) RemovedNotesIDs() (ids []int)
- func (m *UserMutation) RemovedQualificationsIDs() (ids []int)
- func (m *UserMutation) ResetActivities()
- func (m *UserMutation) ResetAvatarURL()
- func (m *UserMutation) ResetBelongTo()
- func (m *UserMutation) ResetBirthdayDay()
- func (m *UserMutation) ResetBirthdayMonth()
- func (m *UserMutation) ResetBirthdayYear()
- func (m *UserMutation) ResetCareerGroups()
- func (m *UserMutation) ResetCreateTime()
- func (m *UserMutation) ResetEdge(name string) error
- func (m *UserMutation) ResetField(name string) error
- func (m *UserMutation) ResetJob()
- func (m *UserMutation) ResetName()
- func (m *UserMutation) ResetNickname()
- func (m *UserMutation) ResetNotes()
- func (m *UserMutation) ResetPr()
- func (m *UserMutation) ResetQualifications()
- func (m *UserMutation) ResetUpdateTime()
- func (m *UserMutation) SetAvatarURL(s string)
- func (m *UserMutation) SetBelongTo(s string)
- func (m *UserMutation) SetBirthdayDay(i int)
- func (m *UserMutation) SetBirthdayMonth(i int)
- func (m *UserMutation) SetBirthdayYear(i int)
- func (m *UserMutation) SetCreateTime(t time.Time)
- func (m *UserMutation) SetField(name string, value ent.Value) error
- func (m *UserMutation) SetJob(s string)
- func (m *UserMutation) SetName(s string)
- func (m *UserMutation) SetNickname(s string)
- func (m *UserMutation) SetOp(op Op)
- func (m *UserMutation) SetPr(s string)
- func (m *UserMutation) SetUpdateTime(t time.Time)
- func (m UserMutation) Tx() (*Tx, error)
- func (m *UserMutation) Type() string
- func (m *UserMutation) UpdateTime() (r time.Time, exists bool)
- func (m *UserMutation) Where(ps ...predicate.User)
- func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
- type UserNote
- type UserNoteClient
- func (c *UserNoteClient) Create() *UserNoteCreate
- func (c *UserNoteClient) CreateBulk(builders ...*UserNoteCreate) *UserNoteCreateBulk
- func (c *UserNoteClient) Delete() *UserNoteDelete
- func (c *UserNoteClient) DeleteOne(un *UserNote) *UserNoteDeleteOne
- func (c *UserNoteClient) DeleteOneID(id int) *UserNoteDeleteOne
- func (c *UserNoteClient) Get(ctx context.Context, id int) (*UserNote, error)
- func (c *UserNoteClient) GetX(ctx context.Context, id int) *UserNote
- func (c *UserNoteClient) Hooks() []Hook
- func (c *UserNoteClient) Intercept(interceptors ...Interceptor)
- func (c *UserNoteClient) Interceptors() []Interceptor
- func (c *UserNoteClient) Query() *UserNoteQuery
- func (c *UserNoteClient) QueryNoteItems(un *UserNote) *UserNoteItemQuery
- func (c *UserNoteClient) QueryUser(un *UserNote) *UserQuery
- func (c *UserNoteClient) Update() *UserNoteUpdate
- func (c *UserNoteClient) UpdateOne(un *UserNote) *UserNoteUpdateOne
- func (c *UserNoteClient) UpdateOneID(id int) *UserNoteUpdateOne
- func (c *UserNoteClient) Use(hooks ...Hook)
- type UserNoteCreate
- func (unc *UserNoteCreate) AddNoteItemIDs(ids ...int) *UserNoteCreate
- func (unc *UserNoteCreate) AddNoteItems(u ...*UserNoteItem) *UserNoteCreate
- func (unc *UserNoteCreate) Exec(ctx context.Context) error
- func (unc *UserNoteCreate) ExecX(ctx context.Context)
- func (unc *UserNoteCreate) Mutation() *UserNoteMutation
- func (unc *UserNoteCreate) OnConflict(opts ...sql.ConflictOption) *UserNoteUpsertOne
- func (unc *UserNoteCreate) OnConflictColumns(columns ...string) *UserNoteUpsertOne
- func (unc *UserNoteCreate) Save(ctx context.Context) (*UserNote, error)
- func (unc *UserNoteCreate) SaveX(ctx context.Context) *UserNote
- func (unc *UserNoteCreate) SetCreateTime(t time.Time) *UserNoteCreate
- func (unc *UserNoteCreate) SetLabel(s string) *UserNoteCreate
- func (unc *UserNoteCreate) SetMemo(s string) *UserNoteCreate
- func (unc *UserNoteCreate) SetNillableCreateTime(t *time.Time) *UserNoteCreate
- func (unc *UserNoteCreate) SetNillableMemo(s *string) *UserNoteCreate
- func (unc *UserNoteCreate) SetNillableUpdateTime(t *time.Time) *UserNoteCreate
- func (unc *UserNoteCreate) SetUpdateTime(t time.Time) *UserNoteCreate
- func (unc *UserNoteCreate) SetUser(u *User) *UserNoteCreate
- func (unc *UserNoteCreate) SetUserID(id int) *UserNoteCreate
- type UserNoteCreateBulk
- func (uncb *UserNoteCreateBulk) Exec(ctx context.Context) error
- func (uncb *UserNoteCreateBulk) ExecX(ctx context.Context)
- func (uncb *UserNoteCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserNoteUpsertBulk
- func (uncb *UserNoteCreateBulk) OnConflictColumns(columns ...string) *UserNoteUpsertBulk
- func (uncb *UserNoteCreateBulk) Save(ctx context.Context) ([]*UserNote, error)
- func (uncb *UserNoteCreateBulk) SaveX(ctx context.Context) []*UserNote
- type UserNoteDelete
- type UserNoteDeleteOne
- type UserNoteEdges
- type UserNoteGroupBy
- func (ungb *UserNoteGroupBy) Aggregate(fns ...AggregateFunc) *UserNoteGroupBy
- func (s *UserNoteGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserNoteGroupBy) BoolX(ctx context.Context) bool
- func (s *UserNoteGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserNoteGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserNoteGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserNoteGroupBy) Float64X(ctx context.Context) float64
- func (s *UserNoteGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserNoteGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserNoteGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserNoteGroupBy) IntX(ctx context.Context) int
- func (s *UserNoteGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserNoteGroupBy) IntsX(ctx context.Context) []int
- func (ungb *UserNoteGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserNoteGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserNoteGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserNoteGroupBy) StringX(ctx context.Context) string
- func (s *UserNoteGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserNoteGroupBy) StringsX(ctx context.Context) []string
- type UserNoteItem
- type UserNoteItemClient
- func (c *UserNoteItemClient) Create() *UserNoteItemCreate
- func (c *UserNoteItemClient) CreateBulk(builders ...*UserNoteItemCreate) *UserNoteItemCreateBulk
- func (c *UserNoteItemClient) Delete() *UserNoteItemDelete
- func (c *UserNoteItemClient) DeleteOne(uni *UserNoteItem) *UserNoteItemDeleteOne
- func (c *UserNoteItemClient) DeleteOneID(id int) *UserNoteItemDeleteOne
- func (c *UserNoteItemClient) Get(ctx context.Context, id int) (*UserNoteItem, error)
- func (c *UserNoteItemClient) GetX(ctx context.Context, id int) *UserNoteItem
- func (c *UserNoteItemClient) Hooks() []Hook
- func (c *UserNoteItemClient) Intercept(interceptors ...Interceptor)
- func (c *UserNoteItemClient) Interceptors() []Interceptor
- func (c *UserNoteItemClient) Query() *UserNoteItemQuery
- func (c *UserNoteItemClient) QueryNote(uni *UserNoteItem) *UserNoteQuery
- func (c *UserNoteItemClient) Update() *UserNoteItemUpdate
- func (c *UserNoteItemClient) UpdateOne(uni *UserNoteItem) *UserNoteItemUpdateOne
- func (c *UserNoteItemClient) UpdateOneID(id int) *UserNoteItemUpdateOne
- func (c *UserNoteItemClient) Use(hooks ...Hook)
- type UserNoteItemCreate
- func (unic *UserNoteItemCreate) Exec(ctx context.Context) error
- func (unic *UserNoteItemCreate) ExecX(ctx context.Context)
- func (unic *UserNoteItemCreate) Mutation() *UserNoteItemMutation
- func (unic *UserNoteItemCreate) OnConflict(opts ...sql.ConflictOption) *UserNoteItemUpsertOne
- func (unic *UserNoteItemCreate) OnConflictColumns(columns ...string) *UserNoteItemUpsertOne
- func (unic *UserNoteItemCreate) Save(ctx context.Context) (*UserNoteItem, error)
- func (unic *UserNoteItemCreate) SaveX(ctx context.Context) *UserNoteItem
- func (unic *UserNoteItemCreate) SetCreateTime(t time.Time) *UserNoteItemCreate
- func (unic *UserNoteItemCreate) SetNillableCreateTime(t *time.Time) *UserNoteItemCreate
- func (unic *UserNoteItemCreate) SetNillableUpdateTime(t *time.Time) *UserNoteItemCreate
- func (unic *UserNoteItemCreate) SetNote(u *UserNote) *UserNoteItemCreate
- func (unic *UserNoteItemCreate) SetNoteID(id int) *UserNoteItemCreate
- func (unic *UserNoteItemCreate) SetText(s string) *UserNoteItemCreate
- func (unic *UserNoteItemCreate) SetUpdateTime(t time.Time) *UserNoteItemCreate
- type UserNoteItemCreateBulk
- func (unicb *UserNoteItemCreateBulk) Exec(ctx context.Context) error
- func (unicb *UserNoteItemCreateBulk) ExecX(ctx context.Context)
- func (unicb *UserNoteItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserNoteItemUpsertBulk
- func (unicb *UserNoteItemCreateBulk) OnConflictColumns(columns ...string) *UserNoteItemUpsertBulk
- func (unicb *UserNoteItemCreateBulk) Save(ctx context.Context) ([]*UserNoteItem, error)
- func (unicb *UserNoteItemCreateBulk) SaveX(ctx context.Context) []*UserNoteItem
- type UserNoteItemDelete
- type UserNoteItemDeleteOne
- type UserNoteItemEdges
- type UserNoteItemGroupBy
- func (unigb *UserNoteItemGroupBy) Aggregate(fns ...AggregateFunc) *UserNoteItemGroupBy
- func (s *UserNoteItemGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserNoteItemGroupBy) BoolX(ctx context.Context) bool
- func (s *UserNoteItemGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserNoteItemGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserNoteItemGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserNoteItemGroupBy) Float64X(ctx context.Context) float64
- func (s *UserNoteItemGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserNoteItemGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserNoteItemGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserNoteItemGroupBy) IntX(ctx context.Context) int
- func (s *UserNoteItemGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserNoteItemGroupBy) IntsX(ctx context.Context) []int
- func (unigb *UserNoteItemGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserNoteItemGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserNoteItemGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserNoteItemGroupBy) StringX(ctx context.Context) string
- func (s *UserNoteItemGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserNoteItemGroupBy) StringsX(ctx context.Context) []string
- type UserNoteItemMutation
- func (m *UserNoteItemMutation) AddField(name string, value ent.Value) error
- func (m *UserNoteItemMutation) AddedEdges() []string
- func (m *UserNoteItemMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserNoteItemMutation) AddedFields() []string
- func (m *UserNoteItemMutation) AddedIDs(name string) []ent.Value
- func (m *UserNoteItemMutation) ClearEdge(name string) error
- func (m *UserNoteItemMutation) ClearField(name string) error
- func (m *UserNoteItemMutation) ClearNote()
- func (m *UserNoteItemMutation) ClearedEdges() []string
- func (m *UserNoteItemMutation) ClearedFields() []string
- func (m UserNoteItemMutation) Client() *Client
- func (m *UserNoteItemMutation) CreateTime() (r time.Time, exists bool)
- func (m *UserNoteItemMutation) EdgeCleared(name string) bool
- func (m *UserNoteItemMutation) Field(name string) (ent.Value, bool)
- func (m *UserNoteItemMutation) FieldCleared(name string) bool
- func (m *UserNoteItemMutation) Fields() []string
- func (m *UserNoteItemMutation) ID() (id int, exists bool)
- func (m *UserNoteItemMutation) IDs(ctx context.Context) ([]int, error)
- func (m *UserNoteItemMutation) NoteCleared() bool
- func (m *UserNoteItemMutation) NoteID() (id int, exists bool)
- func (m *UserNoteItemMutation) NoteIDs() (ids []int)
- func (m *UserNoteItemMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserNoteItemMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserNoteItemMutation) OldText(ctx context.Context) (v string, err error)
- func (m *UserNoteItemMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserNoteItemMutation) Op() Op
- func (m *UserNoteItemMutation) RemovedEdges() []string
- func (m *UserNoteItemMutation) RemovedIDs(name string) []ent.Value
- func (m *UserNoteItemMutation) ResetCreateTime()
- func (m *UserNoteItemMutation) ResetEdge(name string) error
- func (m *UserNoteItemMutation) ResetField(name string) error
- func (m *UserNoteItemMutation) ResetNote()
- func (m *UserNoteItemMutation) ResetText()
- func (m *UserNoteItemMutation) ResetUpdateTime()
- func (m *UserNoteItemMutation) SetCreateTime(t time.Time)
- func (m *UserNoteItemMutation) SetField(name string, value ent.Value) error
- func (m *UserNoteItemMutation) SetNoteID(id int)
- func (m *UserNoteItemMutation) SetOp(op Op)
- func (m *UserNoteItemMutation) SetText(s string)
- func (m *UserNoteItemMutation) SetUpdateTime(t time.Time)
- func (m *UserNoteItemMutation) Text() (r string, exists bool)
- func (m UserNoteItemMutation) Tx() (*Tx, error)
- func (m *UserNoteItemMutation) Type() string
- func (m *UserNoteItemMutation) UpdateTime() (r time.Time, exists bool)
- func (m *UserNoteItemMutation) Where(ps ...predicate.UserNoteItem)
- func (m *UserNoteItemMutation) WhereP(ps ...func(*sql.Selector))
- type UserNoteItemQuery
- func (uniq *UserNoteItemQuery) Aggregate(fns ...AggregateFunc) *UserNoteItemSelect
- func (uniq *UserNoteItemQuery) All(ctx context.Context) ([]*UserNoteItem, error)
- func (uniq *UserNoteItemQuery) AllX(ctx context.Context) []*UserNoteItem
- func (uniq *UserNoteItemQuery) Clone() *UserNoteItemQuery
- func (uniq *UserNoteItemQuery) Count(ctx context.Context) (int, error)
- func (uniq *UserNoteItemQuery) CountX(ctx context.Context) int
- func (uniq *UserNoteItemQuery) Exist(ctx context.Context) (bool, error)
- func (uniq *UserNoteItemQuery) ExistX(ctx context.Context) bool
- func (uniq *UserNoteItemQuery) First(ctx context.Context) (*UserNoteItem, error)
- func (uniq *UserNoteItemQuery) FirstID(ctx context.Context) (id int, err error)
- func (uniq *UserNoteItemQuery) FirstIDX(ctx context.Context) int
- func (uniq *UserNoteItemQuery) FirstX(ctx context.Context) *UserNoteItem
- func (uniq *UserNoteItemQuery) GroupBy(field string, fields ...string) *UserNoteItemGroupBy
- func (uniq *UserNoteItemQuery) IDs(ctx context.Context) (ids []int, err error)
- func (uniq *UserNoteItemQuery) IDsX(ctx context.Context) []int
- func (uniq *UserNoteItemQuery) Limit(limit int) *UserNoteItemQuery
- func (uniq *UserNoteItemQuery) Offset(offset int) *UserNoteItemQuery
- func (uniq *UserNoteItemQuery) Only(ctx context.Context) (*UserNoteItem, error)
- func (uniq *UserNoteItemQuery) OnlyID(ctx context.Context) (id int, err error)
- func (uniq *UserNoteItemQuery) OnlyIDX(ctx context.Context) int
- func (uniq *UserNoteItemQuery) OnlyX(ctx context.Context) *UserNoteItem
- func (uniq *UserNoteItemQuery) Order(o ...usernoteitem.OrderOption) *UserNoteItemQuery
- func (uniq *UserNoteItemQuery) QueryNote() *UserNoteQuery
- func (uniq *UserNoteItemQuery) Select(fields ...string) *UserNoteItemSelect
- func (uniq *UserNoteItemQuery) Unique(unique bool) *UserNoteItemQuery
- func (uniq *UserNoteItemQuery) Where(ps ...predicate.UserNoteItem) *UserNoteItemQuery
- func (uniq *UserNoteItemQuery) WithNote(opts ...func(*UserNoteQuery)) *UserNoteItemQuery
- type UserNoteItemSelect
- func (unis *UserNoteItemSelect) Aggregate(fns ...AggregateFunc) *UserNoteItemSelect
- func (s *UserNoteItemSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserNoteItemSelect) BoolX(ctx context.Context) bool
- func (s *UserNoteItemSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserNoteItemSelect) BoolsX(ctx context.Context) []bool
- func (s *UserNoteItemSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserNoteItemSelect) Float64X(ctx context.Context) float64
- func (s *UserNoteItemSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserNoteItemSelect) Float64sX(ctx context.Context) []float64
- func (s *UserNoteItemSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserNoteItemSelect) IntX(ctx context.Context) int
- func (s *UserNoteItemSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserNoteItemSelect) IntsX(ctx context.Context) []int
- func (unis *UserNoteItemSelect) Scan(ctx context.Context, v any) error
- func (s *UserNoteItemSelect) ScanX(ctx context.Context, v any)
- func (s *UserNoteItemSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserNoteItemSelect) StringX(ctx context.Context) string
- func (s *UserNoteItemSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserNoteItemSelect) StringsX(ctx context.Context) []string
- type UserNoteItemUpdate
- func (uniu *UserNoteItemUpdate) ClearNote() *UserNoteItemUpdate
- func (uniu *UserNoteItemUpdate) Exec(ctx context.Context) error
- func (uniu *UserNoteItemUpdate) ExecX(ctx context.Context)
- func (uniu *UserNoteItemUpdate) Mutation() *UserNoteItemMutation
- func (uniu *UserNoteItemUpdate) Save(ctx context.Context) (int, error)
- func (uniu *UserNoteItemUpdate) SaveX(ctx context.Context) int
- func (uniu *UserNoteItemUpdate) SetNote(u *UserNote) *UserNoteItemUpdate
- func (uniu *UserNoteItemUpdate) SetNoteID(id int) *UserNoteItemUpdate
- func (uniu *UserNoteItemUpdate) SetText(s string) *UserNoteItemUpdate
- func (uniu *UserNoteItemUpdate) SetUpdateTime(t time.Time) *UserNoteItemUpdate
- func (uniu *UserNoteItemUpdate) Where(ps ...predicate.UserNoteItem) *UserNoteItemUpdate
- type UserNoteItemUpdateOne
- func (uniuo *UserNoteItemUpdateOne) ClearNote() *UserNoteItemUpdateOne
- func (uniuo *UserNoteItemUpdateOne) Exec(ctx context.Context) error
- func (uniuo *UserNoteItemUpdateOne) ExecX(ctx context.Context)
- func (uniuo *UserNoteItemUpdateOne) Mutation() *UserNoteItemMutation
- func (uniuo *UserNoteItemUpdateOne) Save(ctx context.Context) (*UserNoteItem, error)
- func (uniuo *UserNoteItemUpdateOne) SaveX(ctx context.Context) *UserNoteItem
- func (uniuo *UserNoteItemUpdateOne) Select(field string, fields ...string) *UserNoteItemUpdateOne
- func (uniuo *UserNoteItemUpdateOne) SetNote(u *UserNote) *UserNoteItemUpdateOne
- func (uniuo *UserNoteItemUpdateOne) SetNoteID(id int) *UserNoteItemUpdateOne
- func (uniuo *UserNoteItemUpdateOne) SetText(s string) *UserNoteItemUpdateOne
- func (uniuo *UserNoteItemUpdateOne) SetUpdateTime(t time.Time) *UserNoteItemUpdateOne
- func (uniuo *UserNoteItemUpdateOne) Where(ps ...predicate.UserNoteItem) *UserNoteItemUpdateOne
- type UserNoteItemUpsert
- type UserNoteItemUpsertBulk
- func (u *UserNoteItemUpsertBulk) DoNothing() *UserNoteItemUpsertBulk
- func (u *UserNoteItemUpsertBulk) Exec(ctx context.Context) error
- func (u *UserNoteItemUpsertBulk) ExecX(ctx context.Context)
- func (u *UserNoteItemUpsertBulk) Ignore() *UserNoteItemUpsertBulk
- func (u *UserNoteItemUpsertBulk) SetText(v string) *UserNoteItemUpsertBulk
- func (u *UserNoteItemUpsertBulk) SetUpdateTime(v time.Time) *UserNoteItemUpsertBulk
- func (u *UserNoteItemUpsertBulk) Update(set func(*UserNoteItemUpsert)) *UserNoteItemUpsertBulk
- func (u *UserNoteItemUpsertBulk) UpdateNewValues() *UserNoteItemUpsertBulk
- func (u *UserNoteItemUpsertBulk) UpdateText() *UserNoteItemUpsertBulk
- func (u *UserNoteItemUpsertBulk) UpdateUpdateTime() *UserNoteItemUpsertBulk
- type UserNoteItemUpsertOne
- func (u *UserNoteItemUpsertOne) DoNothing() *UserNoteItemUpsertOne
- func (u *UserNoteItemUpsertOne) Exec(ctx context.Context) error
- func (u *UserNoteItemUpsertOne) ExecX(ctx context.Context)
- func (u *UserNoteItemUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *UserNoteItemUpsertOne) IDX(ctx context.Context) int
- func (u *UserNoteItemUpsertOne) Ignore() *UserNoteItemUpsertOne
- func (u *UserNoteItemUpsertOne) SetText(v string) *UserNoteItemUpsertOne
- func (u *UserNoteItemUpsertOne) SetUpdateTime(v time.Time) *UserNoteItemUpsertOne
- func (u *UserNoteItemUpsertOne) Update(set func(*UserNoteItemUpsert)) *UserNoteItemUpsertOne
- func (u *UserNoteItemUpsertOne) UpdateNewValues() *UserNoteItemUpsertOne
- func (u *UserNoteItemUpsertOne) UpdateText() *UserNoteItemUpsertOne
- func (u *UserNoteItemUpsertOne) UpdateUpdateTime() *UserNoteItemUpsertOne
- type UserNoteItems
- type UserNoteMutation
- func (m *UserNoteMutation) AddField(name string, value ent.Value) error
- func (m *UserNoteMutation) AddNoteItemIDs(ids ...int)
- func (m *UserNoteMutation) AddedEdges() []string
- func (m *UserNoteMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserNoteMutation) AddedFields() []string
- func (m *UserNoteMutation) AddedIDs(name string) []ent.Value
- func (m *UserNoteMutation) ClearEdge(name string) error
- func (m *UserNoteMutation) ClearField(name string) error
- func (m *UserNoteMutation) ClearMemo()
- func (m *UserNoteMutation) ClearNoteItems()
- func (m *UserNoteMutation) ClearUser()
- func (m *UserNoteMutation) ClearedEdges() []string
- func (m *UserNoteMutation) ClearedFields() []string
- func (m UserNoteMutation) Client() *Client
- func (m *UserNoteMutation) CreateTime() (r time.Time, exists bool)
- func (m *UserNoteMutation) EdgeCleared(name string) bool
- func (m *UserNoteMutation) Field(name string) (ent.Value, bool)
- func (m *UserNoteMutation) FieldCleared(name string) bool
- func (m *UserNoteMutation) Fields() []string
- func (m *UserNoteMutation) ID() (id int, exists bool)
- func (m *UserNoteMutation) IDs(ctx context.Context) ([]int, error)
- func (m *UserNoteMutation) Label() (r string, exists bool)
- func (m *UserNoteMutation) Memo() (r string, exists bool)
- func (m *UserNoteMutation) MemoCleared() bool
- func (m *UserNoteMutation) NoteItemsCleared() bool
- func (m *UserNoteMutation) NoteItemsIDs() (ids []int)
- func (m *UserNoteMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserNoteMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserNoteMutation) OldLabel(ctx context.Context) (v string, err error)
- func (m *UserNoteMutation) OldMemo(ctx context.Context) (v *string, err error)
- func (m *UserNoteMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserNoteMutation) Op() Op
- func (m *UserNoteMutation) RemoveNoteItemIDs(ids ...int)
- func (m *UserNoteMutation) RemovedEdges() []string
- func (m *UserNoteMutation) RemovedIDs(name string) []ent.Value
- func (m *UserNoteMutation) RemovedNoteItemsIDs() (ids []int)
- func (m *UserNoteMutation) ResetCreateTime()
- func (m *UserNoteMutation) ResetEdge(name string) error
- func (m *UserNoteMutation) ResetField(name string) error
- func (m *UserNoteMutation) ResetLabel()
- func (m *UserNoteMutation) ResetMemo()
- func (m *UserNoteMutation) ResetNoteItems()
- func (m *UserNoteMutation) ResetUpdateTime()
- func (m *UserNoteMutation) ResetUser()
- func (m *UserNoteMutation) SetCreateTime(t time.Time)
- func (m *UserNoteMutation) SetField(name string, value ent.Value) error
- func (m *UserNoteMutation) SetLabel(s string)
- func (m *UserNoteMutation) SetMemo(s string)
- func (m *UserNoteMutation) SetOp(op Op)
- func (m *UserNoteMutation) SetUpdateTime(t time.Time)
- func (m *UserNoteMutation) SetUserID(id int)
- func (m UserNoteMutation) Tx() (*Tx, error)
- func (m *UserNoteMutation) Type() string
- func (m *UserNoteMutation) UpdateTime() (r time.Time, exists bool)
- func (m *UserNoteMutation) UserCleared() bool
- func (m *UserNoteMutation) UserID() (id int, exists bool)
- func (m *UserNoteMutation) UserIDs() (ids []int)
- func (m *UserNoteMutation) Where(ps ...predicate.UserNote)
- func (m *UserNoteMutation) WhereP(ps ...func(*sql.Selector))
- type UserNoteQuery
- func (unq *UserNoteQuery) Aggregate(fns ...AggregateFunc) *UserNoteSelect
- func (unq *UserNoteQuery) All(ctx context.Context) ([]*UserNote, error)
- func (unq *UserNoteQuery) AllX(ctx context.Context) []*UserNote
- func (unq *UserNoteQuery) Clone() *UserNoteQuery
- func (unq *UserNoteQuery) Count(ctx context.Context) (int, error)
- func (unq *UserNoteQuery) CountX(ctx context.Context) int
- func (unq *UserNoteQuery) Exist(ctx context.Context) (bool, error)
- func (unq *UserNoteQuery) ExistX(ctx context.Context) bool
- func (unq *UserNoteQuery) First(ctx context.Context) (*UserNote, error)
- func (unq *UserNoteQuery) FirstID(ctx context.Context) (id int, err error)
- func (unq *UserNoteQuery) FirstIDX(ctx context.Context) int
- func (unq *UserNoteQuery) FirstX(ctx context.Context) *UserNote
- func (unq *UserNoteQuery) GroupBy(field string, fields ...string) *UserNoteGroupBy
- func (unq *UserNoteQuery) IDs(ctx context.Context) (ids []int, err error)
- func (unq *UserNoteQuery) IDsX(ctx context.Context) []int
- func (unq *UserNoteQuery) Limit(limit int) *UserNoteQuery
- func (unq *UserNoteQuery) Offset(offset int) *UserNoteQuery
- func (unq *UserNoteQuery) Only(ctx context.Context) (*UserNote, error)
- func (unq *UserNoteQuery) OnlyID(ctx context.Context) (id int, err error)
- func (unq *UserNoteQuery) OnlyIDX(ctx context.Context) int
- func (unq *UserNoteQuery) OnlyX(ctx context.Context) *UserNote
- func (unq *UserNoteQuery) Order(o ...usernote.OrderOption) *UserNoteQuery
- func (unq *UserNoteQuery) QueryNoteItems() *UserNoteItemQuery
- func (unq *UserNoteQuery) QueryUser() *UserQuery
- func (unq *UserNoteQuery) Select(fields ...string) *UserNoteSelect
- func (unq *UserNoteQuery) Unique(unique bool) *UserNoteQuery
- func (unq *UserNoteQuery) Where(ps ...predicate.UserNote) *UserNoteQuery
- func (unq *UserNoteQuery) WithNoteItems(opts ...func(*UserNoteItemQuery)) *UserNoteQuery
- func (unq *UserNoteQuery) WithUser(opts ...func(*UserQuery)) *UserNoteQuery
- type UserNoteSelect
- func (uns *UserNoteSelect) Aggregate(fns ...AggregateFunc) *UserNoteSelect
- func (s *UserNoteSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserNoteSelect) BoolX(ctx context.Context) bool
- func (s *UserNoteSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserNoteSelect) BoolsX(ctx context.Context) []bool
- func (s *UserNoteSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserNoteSelect) Float64X(ctx context.Context) float64
- func (s *UserNoteSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserNoteSelect) Float64sX(ctx context.Context) []float64
- func (s *UserNoteSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserNoteSelect) IntX(ctx context.Context) int
- func (s *UserNoteSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserNoteSelect) IntsX(ctx context.Context) []int
- func (uns *UserNoteSelect) Scan(ctx context.Context, v any) error
- func (s *UserNoteSelect) ScanX(ctx context.Context, v any)
- func (s *UserNoteSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserNoteSelect) StringX(ctx context.Context) string
- func (s *UserNoteSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserNoteSelect) StringsX(ctx context.Context) []string
- type UserNoteUpdate
- func (unu *UserNoteUpdate) AddNoteItemIDs(ids ...int) *UserNoteUpdate
- func (unu *UserNoteUpdate) AddNoteItems(u ...*UserNoteItem) *UserNoteUpdate
- func (unu *UserNoteUpdate) ClearMemo() *UserNoteUpdate
- func (unu *UserNoteUpdate) ClearNoteItems() *UserNoteUpdate
- func (unu *UserNoteUpdate) ClearUser() *UserNoteUpdate
- func (unu *UserNoteUpdate) Exec(ctx context.Context) error
- func (unu *UserNoteUpdate) ExecX(ctx context.Context)
- func (unu *UserNoteUpdate) Mutation() *UserNoteMutation
- func (unu *UserNoteUpdate) RemoveNoteItemIDs(ids ...int) *UserNoteUpdate
- func (unu *UserNoteUpdate) RemoveNoteItems(u ...*UserNoteItem) *UserNoteUpdate
- func (unu *UserNoteUpdate) Save(ctx context.Context) (int, error)
- func (unu *UserNoteUpdate) SaveX(ctx context.Context) int
- func (unu *UserNoteUpdate) SetLabel(s string) *UserNoteUpdate
- func (unu *UserNoteUpdate) SetMemo(s string) *UserNoteUpdate
- func (unu *UserNoteUpdate) SetNillableMemo(s *string) *UserNoteUpdate
- func (unu *UserNoteUpdate) SetUpdateTime(t time.Time) *UserNoteUpdate
- func (unu *UserNoteUpdate) SetUser(u *User) *UserNoteUpdate
- func (unu *UserNoteUpdate) SetUserID(id int) *UserNoteUpdate
- func (unu *UserNoteUpdate) Where(ps ...predicate.UserNote) *UserNoteUpdate
- type UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) AddNoteItemIDs(ids ...int) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) AddNoteItems(u ...*UserNoteItem) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) ClearMemo() *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) ClearNoteItems() *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) ClearUser() *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) Exec(ctx context.Context) error
- func (unuo *UserNoteUpdateOne) ExecX(ctx context.Context)
- func (unuo *UserNoteUpdateOne) Mutation() *UserNoteMutation
- func (unuo *UserNoteUpdateOne) RemoveNoteItemIDs(ids ...int) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) RemoveNoteItems(u ...*UserNoteItem) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) Save(ctx context.Context) (*UserNote, error)
- func (unuo *UserNoteUpdateOne) SaveX(ctx context.Context) *UserNote
- func (unuo *UserNoteUpdateOne) Select(field string, fields ...string) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) SetLabel(s string) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) SetMemo(s string) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) SetNillableMemo(s *string) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) SetUpdateTime(t time.Time) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) SetUser(u *User) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) SetUserID(id int) *UserNoteUpdateOne
- func (unuo *UserNoteUpdateOne) Where(ps ...predicate.UserNote) *UserNoteUpdateOne
- type UserNoteUpsert
- func (u *UserNoteUpsert) ClearMemo() *UserNoteUpsert
- func (u *UserNoteUpsert) SetLabel(v string) *UserNoteUpsert
- func (u *UserNoteUpsert) SetMemo(v string) *UserNoteUpsert
- func (u *UserNoteUpsert) SetUpdateTime(v time.Time) *UserNoteUpsert
- func (u *UserNoteUpsert) UpdateLabel() *UserNoteUpsert
- func (u *UserNoteUpsert) UpdateMemo() *UserNoteUpsert
- func (u *UserNoteUpsert) UpdateUpdateTime() *UserNoteUpsert
- type UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) ClearMemo() *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) DoNothing() *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) Exec(ctx context.Context) error
- func (u *UserNoteUpsertBulk) ExecX(ctx context.Context)
- func (u *UserNoteUpsertBulk) Ignore() *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) SetLabel(v string) *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) SetMemo(v string) *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) SetUpdateTime(v time.Time) *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) Update(set func(*UserNoteUpsert)) *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) UpdateLabel() *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) UpdateMemo() *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) UpdateNewValues() *UserNoteUpsertBulk
- func (u *UserNoteUpsertBulk) UpdateUpdateTime() *UserNoteUpsertBulk
- type UserNoteUpsertOne
- func (u *UserNoteUpsertOne) ClearMemo() *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) DoNothing() *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) Exec(ctx context.Context) error
- func (u *UserNoteUpsertOne) ExecX(ctx context.Context)
- func (u *UserNoteUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *UserNoteUpsertOne) IDX(ctx context.Context) int
- func (u *UserNoteUpsertOne) Ignore() *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) SetLabel(v string) *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) SetMemo(v string) *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) SetUpdateTime(v time.Time) *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) Update(set func(*UserNoteUpsert)) *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) UpdateLabel() *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) UpdateMemo() *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) UpdateNewValues() *UserNoteUpsertOne
- func (u *UserNoteUpsertOne) UpdateUpdateTime() *UserNoteUpsertOne
- type UserNotes
- type UserQualification
- type UserQualificationClient
- func (c *UserQualificationClient) Create() *UserQualificationCreate
- func (c *UserQualificationClient) CreateBulk(builders ...*UserQualificationCreate) *UserQualificationCreateBulk
- func (c *UserQualificationClient) Delete() *UserQualificationDelete
- func (c *UserQualificationClient) DeleteOne(uq *UserQualification) *UserQualificationDeleteOne
- func (c *UserQualificationClient) DeleteOneID(id int) *UserQualificationDeleteOne
- func (c *UserQualificationClient) Get(ctx context.Context, id int) (*UserQualification, error)
- func (c *UserQualificationClient) GetX(ctx context.Context, id int) *UserQualification
- func (c *UserQualificationClient) Hooks() []Hook
- func (c *UserQualificationClient) Intercept(interceptors ...Interceptor)
- func (c *UserQualificationClient) Interceptors() []Interceptor
- func (c *UserQualificationClient) Query() *UserQualificationQuery
- func (c *UserQualificationClient) QueryUser(uq *UserQualification) *UserQuery
- func (c *UserQualificationClient) Update() *UserQualificationUpdate
- func (c *UserQualificationClient) UpdateOne(uq *UserQualification) *UserQualificationUpdateOne
- func (c *UserQualificationClient) UpdateOneID(id int) *UserQualificationUpdateOne
- func (c *UserQualificationClient) Use(hooks ...Hook)
- type UserQualificationCreate
- func (uqc *UserQualificationCreate) Exec(ctx context.Context) error
- func (uqc *UserQualificationCreate) ExecX(ctx context.Context)
- func (uqc *UserQualificationCreate) Mutation() *UserQualificationMutation
- func (uqc *UserQualificationCreate) OnConflict(opts ...sql.ConflictOption) *UserQualificationUpsertOne
- func (uqc *UserQualificationCreate) OnConflictColumns(columns ...string) *UserQualificationUpsertOne
- func (uqc *UserQualificationCreate) Save(ctx context.Context) (*UserQualification, error)
- func (uqc *UserQualificationCreate) SaveX(ctx context.Context) *UserQualification
- func (uqc *UserQualificationCreate) SetCreateTime(t time.Time) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetGotDate(s string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetMemo(s string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetName(s string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetNillableCreateTime(t *time.Time) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetNillableGotDate(s *string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetNillableMemo(s *string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetNillableOrganization(s *string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetNillableURL(s *string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetNillableUpdateTime(t *time.Time) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetOrganization(s string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetURL(s string) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetUpdateTime(t time.Time) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetUser(u *User) *UserQualificationCreate
- func (uqc *UserQualificationCreate) SetUserID(id int) *UserQualificationCreate
- type UserQualificationCreateBulk
- func (uqcb *UserQualificationCreateBulk) Exec(ctx context.Context) error
- func (uqcb *UserQualificationCreateBulk) ExecX(ctx context.Context)
- func (uqcb *UserQualificationCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserQualificationUpsertBulk
- func (uqcb *UserQualificationCreateBulk) OnConflictColumns(columns ...string) *UserQualificationUpsertBulk
- func (uqcb *UserQualificationCreateBulk) Save(ctx context.Context) ([]*UserQualification, error)
- func (uqcb *UserQualificationCreateBulk) SaveX(ctx context.Context) []*UserQualification
- type UserQualificationDelete
- type UserQualificationDeleteOne
- type UserQualificationEdges
- type UserQualificationGroupBy
- func (uqgb *UserQualificationGroupBy) Aggregate(fns ...AggregateFunc) *UserQualificationGroupBy
- func (s *UserQualificationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserQualificationGroupBy) BoolX(ctx context.Context) bool
- func (s *UserQualificationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *UserQualificationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *UserQualificationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserQualificationGroupBy) Float64X(ctx context.Context) float64
- func (s *UserQualificationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserQualificationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *UserQualificationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *UserQualificationGroupBy) IntX(ctx context.Context) int
- func (s *UserQualificationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *UserQualificationGroupBy) IntsX(ctx context.Context) []int
- func (uqgb *UserQualificationGroupBy) Scan(ctx context.Context, v any) error
- func (s *UserQualificationGroupBy) ScanX(ctx context.Context, v any)
- func (s *UserQualificationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *UserQualificationGroupBy) StringX(ctx context.Context) string
- func (s *UserQualificationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *UserQualificationGroupBy) StringsX(ctx context.Context) []string
- type UserQualificationMutation
- func (m *UserQualificationMutation) AddField(name string, value ent.Value) error
- func (m *UserQualificationMutation) AddedEdges() []string
- func (m *UserQualificationMutation) AddedField(name string) (ent.Value, bool)
- func (m *UserQualificationMutation) AddedFields() []string
- func (m *UserQualificationMutation) AddedIDs(name string) []ent.Value
- func (m *UserQualificationMutation) ClearEdge(name string) error
- func (m *UserQualificationMutation) ClearField(name string) error
- func (m *UserQualificationMutation) ClearGotDate()
- func (m *UserQualificationMutation) ClearMemo()
- func (m *UserQualificationMutation) ClearOrganization()
- func (m *UserQualificationMutation) ClearURL()
- func (m *UserQualificationMutation) ClearUser()
- func (m *UserQualificationMutation) ClearedEdges() []string
- func (m *UserQualificationMutation) ClearedFields() []string
- func (m UserQualificationMutation) Client() *Client
- func (m *UserQualificationMutation) CreateTime() (r time.Time, exists bool)
- func (m *UserQualificationMutation) EdgeCleared(name string) bool
- func (m *UserQualificationMutation) Field(name string) (ent.Value, bool)
- func (m *UserQualificationMutation) FieldCleared(name string) bool
- func (m *UserQualificationMutation) Fields() []string
- func (m *UserQualificationMutation) GotDate() (r string, exists bool)
- func (m *UserQualificationMutation) GotDateCleared() bool
- func (m *UserQualificationMutation) ID() (id int, exists bool)
- func (m *UserQualificationMutation) IDs(ctx context.Context) ([]int, error)
- func (m *UserQualificationMutation) Memo() (r string, exists bool)
- func (m *UserQualificationMutation) MemoCleared() bool
- func (m *UserQualificationMutation) Name() (r string, exists bool)
- func (m *UserQualificationMutation) OldCreateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserQualificationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *UserQualificationMutation) OldGotDate(ctx context.Context) (v *string, err error)
- func (m *UserQualificationMutation) OldMemo(ctx context.Context) (v *string, err error)
- func (m *UserQualificationMutation) OldName(ctx context.Context) (v string, err error)
- func (m *UserQualificationMutation) OldOrganization(ctx context.Context) (v *string, err error)
- func (m *UserQualificationMutation) OldURL(ctx context.Context) (v *string, err error)
- func (m *UserQualificationMutation) OldUpdateTime(ctx context.Context) (v time.Time, err error)
- func (m *UserQualificationMutation) Op() Op
- func (m *UserQualificationMutation) Organization() (r string, exists bool)
- func (m *UserQualificationMutation) OrganizationCleared() bool
- func (m *UserQualificationMutation) RemovedEdges() []string
- func (m *UserQualificationMutation) RemovedIDs(name string) []ent.Value
- func (m *UserQualificationMutation) ResetCreateTime()
- func (m *UserQualificationMutation) ResetEdge(name string) error
- func (m *UserQualificationMutation) ResetField(name string) error
- func (m *UserQualificationMutation) ResetGotDate()
- func (m *UserQualificationMutation) ResetMemo()
- func (m *UserQualificationMutation) ResetName()
- func (m *UserQualificationMutation) ResetOrganization()
- func (m *UserQualificationMutation) ResetURL()
- func (m *UserQualificationMutation) ResetUpdateTime()
- func (m *UserQualificationMutation) ResetUser()
- func (m *UserQualificationMutation) SetCreateTime(t time.Time)
- func (m *UserQualificationMutation) SetField(name string, value ent.Value) error
- func (m *UserQualificationMutation) SetGotDate(s string)
- func (m *UserQualificationMutation) SetMemo(s string)
- func (m *UserQualificationMutation) SetName(s string)
- func (m *UserQualificationMutation) SetOp(op Op)
- func (m *UserQualificationMutation) SetOrganization(s string)
- func (m *UserQualificationMutation) SetURL(s string)
- func (m *UserQualificationMutation) SetUpdateTime(t time.Time)
- func (m *UserQualificationMutation) SetUserID(id int)
- func (m UserQualificationMutation) Tx() (*Tx, error)
- func (m *UserQualificationMutation) Type() string
- func (m *UserQualificationMutation) URL() (r string, exists bool)
- func (m *UserQualificationMutation) URLCleared() bool
- func (m *UserQualificationMutation) UpdateTime() (r time.Time, exists bool)
- func (m *UserQualificationMutation) UserCleared() bool
- func (m *UserQualificationMutation) UserID() (id int, exists bool)
- func (m *UserQualificationMutation) UserIDs() (ids []int)
- func (m *UserQualificationMutation) Where(ps ...predicate.UserQualification)
- func (m *UserQualificationMutation) WhereP(ps ...func(*sql.Selector))
- type UserQualificationQuery
- func (uqq *UserQualificationQuery) Aggregate(fns ...AggregateFunc) *UserQualificationSelect
- func (uqq *UserQualificationQuery) All(ctx context.Context) ([]*UserQualification, error)
- func (uqq *UserQualificationQuery) AllX(ctx context.Context) []*UserQualification
- func (uqq *UserQualificationQuery) Clone() *UserQualificationQuery
- func (uqq *UserQualificationQuery) Count(ctx context.Context) (int, error)
- func (uqq *UserQualificationQuery) CountX(ctx context.Context) int
- func (uqq *UserQualificationQuery) Exist(ctx context.Context) (bool, error)
- func (uqq *UserQualificationQuery) ExistX(ctx context.Context) bool
- func (uqq *UserQualificationQuery) First(ctx context.Context) (*UserQualification, error)
- func (uqq *UserQualificationQuery) FirstID(ctx context.Context) (id int, err error)
- func (uqq *UserQualificationQuery) FirstIDX(ctx context.Context) int
- func (uqq *UserQualificationQuery) FirstX(ctx context.Context) *UserQualification
- func (uqq *UserQualificationQuery) GroupBy(field string, fields ...string) *UserQualificationGroupBy
- func (uqq *UserQualificationQuery) IDs(ctx context.Context) (ids []int, err error)
- func (uqq *UserQualificationQuery) IDsX(ctx context.Context) []int
- func (uqq *UserQualificationQuery) Limit(limit int) *UserQualificationQuery
- func (uqq *UserQualificationQuery) Offset(offset int) *UserQualificationQuery
- func (uqq *UserQualificationQuery) Only(ctx context.Context) (*UserQualification, error)
- func (uqq *UserQualificationQuery) OnlyID(ctx context.Context) (id int, err error)
- func (uqq *UserQualificationQuery) OnlyIDX(ctx context.Context) int
- func (uqq *UserQualificationQuery) OnlyX(ctx context.Context) *UserQualification
- func (uqq *UserQualificationQuery) Order(o ...userqualification.OrderOption) *UserQualificationQuery
- func (uqq *UserQualificationQuery) QueryUser() *UserQuery
- func (uqq *UserQualificationQuery) Select(fields ...string) *UserQualificationSelect
- func (uqq *UserQualificationQuery) Unique(unique bool) *UserQualificationQuery
- func (uqq *UserQualificationQuery) Where(ps ...predicate.UserQualification) *UserQualificationQuery
- func (uqq *UserQualificationQuery) WithUser(opts ...func(*UserQuery)) *UserQualificationQuery
- type UserQualificationSelect
- func (uqs *UserQualificationSelect) Aggregate(fns ...AggregateFunc) *UserQualificationSelect
- func (s *UserQualificationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserQualificationSelect) BoolX(ctx context.Context) bool
- func (s *UserQualificationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserQualificationSelect) BoolsX(ctx context.Context) []bool
- func (s *UserQualificationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserQualificationSelect) Float64X(ctx context.Context) float64
- func (s *UserQualificationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserQualificationSelect) Float64sX(ctx context.Context) []float64
- func (s *UserQualificationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserQualificationSelect) IntX(ctx context.Context) int
- func (s *UserQualificationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserQualificationSelect) IntsX(ctx context.Context) []int
- func (uqs *UserQualificationSelect) Scan(ctx context.Context, v any) error
- func (s *UserQualificationSelect) ScanX(ctx context.Context, v any)
- func (s *UserQualificationSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserQualificationSelect) StringX(ctx context.Context) string
- func (s *UserQualificationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserQualificationSelect) StringsX(ctx context.Context) []string
- type UserQualificationUpdate
- func (uqu *UserQualificationUpdate) ClearGotDate() *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) ClearMemo() *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) ClearOrganization() *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) ClearURL() *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) ClearUser() *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) Exec(ctx context.Context) error
- func (uqu *UserQualificationUpdate) ExecX(ctx context.Context)
- func (uqu *UserQualificationUpdate) Mutation() *UserQualificationMutation
- func (uqu *UserQualificationUpdate) Save(ctx context.Context) (int, error)
- func (uqu *UserQualificationUpdate) SaveX(ctx context.Context) int
- func (uqu *UserQualificationUpdate) SetGotDate(s string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetMemo(s string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetName(s string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetNillableGotDate(s *string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetNillableMemo(s *string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetNillableOrganization(s *string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetNillableURL(s *string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetOrganization(s string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetURL(s string) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetUpdateTime(t time.Time) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetUser(u *User) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) SetUserID(id int) *UserQualificationUpdate
- func (uqu *UserQualificationUpdate) Where(ps ...predicate.UserQualification) *UserQualificationUpdate
- type UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) ClearGotDate() *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) ClearMemo() *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) ClearOrganization() *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) ClearURL() *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) ClearUser() *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) Exec(ctx context.Context) error
- func (uquo *UserQualificationUpdateOne) ExecX(ctx context.Context)
- func (uquo *UserQualificationUpdateOne) Mutation() *UserQualificationMutation
- func (uquo *UserQualificationUpdateOne) Save(ctx context.Context) (*UserQualification, error)
- func (uquo *UserQualificationUpdateOne) SaveX(ctx context.Context) *UserQualification
- func (uquo *UserQualificationUpdateOne) Select(field string, fields ...string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetGotDate(s string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetMemo(s string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetName(s string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetNillableGotDate(s *string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetNillableMemo(s *string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetNillableOrganization(s *string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetNillableURL(s *string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetOrganization(s string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetURL(s string) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetUpdateTime(t time.Time) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetUser(u *User) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) SetUserID(id int) *UserQualificationUpdateOne
- func (uquo *UserQualificationUpdateOne) Where(ps ...predicate.UserQualification) *UserQualificationUpdateOne
- type UserQualificationUpsert
- func (u *UserQualificationUpsert) ClearGotDate() *UserQualificationUpsert
- func (u *UserQualificationUpsert) ClearMemo() *UserQualificationUpsert
- func (u *UserQualificationUpsert) ClearOrganization() *UserQualificationUpsert
- func (u *UserQualificationUpsert) ClearURL() *UserQualificationUpsert
- func (u *UserQualificationUpsert) SetGotDate(v string) *UserQualificationUpsert
- func (u *UserQualificationUpsert) SetMemo(v string) *UserQualificationUpsert
- func (u *UserQualificationUpsert) SetName(v string) *UserQualificationUpsert
- func (u *UserQualificationUpsert) SetOrganization(v string) *UserQualificationUpsert
- func (u *UserQualificationUpsert) SetURL(v string) *UserQualificationUpsert
- func (u *UserQualificationUpsert) SetUpdateTime(v time.Time) *UserQualificationUpsert
- func (u *UserQualificationUpsert) UpdateGotDate() *UserQualificationUpsert
- func (u *UserQualificationUpsert) UpdateMemo() *UserQualificationUpsert
- func (u *UserQualificationUpsert) UpdateName() *UserQualificationUpsert
- func (u *UserQualificationUpsert) UpdateOrganization() *UserQualificationUpsert
- func (u *UserQualificationUpsert) UpdateURL() *UserQualificationUpsert
- func (u *UserQualificationUpsert) UpdateUpdateTime() *UserQualificationUpsert
- type UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) ClearGotDate() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) ClearMemo() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) ClearOrganization() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) ClearURL() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) DoNothing() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) Exec(ctx context.Context) error
- func (u *UserQualificationUpsertBulk) ExecX(ctx context.Context)
- func (u *UserQualificationUpsertBulk) Ignore() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) SetGotDate(v string) *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) SetMemo(v string) *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) SetName(v string) *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) SetOrganization(v string) *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) SetURL(v string) *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) SetUpdateTime(v time.Time) *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) Update(set func(*UserQualificationUpsert)) *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) UpdateGotDate() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) UpdateMemo() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) UpdateName() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) UpdateNewValues() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) UpdateOrganization() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) UpdateURL() *UserQualificationUpsertBulk
- func (u *UserQualificationUpsertBulk) UpdateUpdateTime() *UserQualificationUpsertBulk
- type UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) ClearGotDate() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) ClearMemo() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) ClearOrganization() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) ClearURL() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) DoNothing() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) Exec(ctx context.Context) error
- func (u *UserQualificationUpsertOne) ExecX(ctx context.Context)
- func (u *UserQualificationUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *UserQualificationUpsertOne) IDX(ctx context.Context) int
- func (u *UserQualificationUpsertOne) Ignore() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) SetGotDate(v string) *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) SetMemo(v string) *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) SetName(v string) *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) SetOrganization(v string) *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) SetURL(v string) *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) SetUpdateTime(v time.Time) *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) Update(set func(*UserQualificationUpsert)) *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) UpdateGotDate() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) UpdateMemo() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) UpdateName() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) UpdateNewValues() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) UpdateOrganization() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) UpdateURL() *UserQualificationUpsertOne
- func (u *UserQualificationUpsertOne) UpdateUpdateTime() *UserQualificationUpsertOne
- type UserQualifications
- type UserQuery
- func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
- func (uq *UserQuery) All(ctx context.Context) ([]*User, error)
- func (uq *UserQuery) AllX(ctx context.Context) []*User
- func (uq *UserQuery) Clone() *UserQuery
- func (uq *UserQuery) Count(ctx context.Context) (int, error)
- func (uq *UserQuery) CountX(ctx context.Context) int
- func (uq *UserQuery) Exist(ctx context.Context) (bool, error)
- func (uq *UserQuery) ExistX(ctx context.Context) bool
- func (uq *UserQuery) First(ctx context.Context) (*User, error)
- func (uq *UserQuery) FirstID(ctx context.Context) (id int, err error)
- func (uq *UserQuery) FirstIDX(ctx context.Context) int
- func (uq *UserQuery) FirstX(ctx context.Context) *User
- func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
- func (uq *UserQuery) IDs(ctx context.Context) (ids []int, err error)
- func (uq *UserQuery) IDsX(ctx context.Context) []int
- func (uq *UserQuery) Limit(limit int) *UserQuery
- func (uq *UserQuery) Offset(offset int) *UserQuery
- func (uq *UserQuery) Only(ctx context.Context) (*User, error)
- func (uq *UserQuery) OnlyID(ctx context.Context) (id int, err error)
- func (uq *UserQuery) OnlyIDX(ctx context.Context) int
- func (uq *UserQuery) OnlyX(ctx context.Context) *User
- func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery
- func (uq *UserQuery) QueryActivities() *UserActivityQuery
- func (uq *UserQuery) QueryCareerGroups() *UserCareerGroupQuery
- func (uq *UserQuery) QueryNotes() *UserNoteQuery
- func (uq *UserQuery) QueryQualifications() *UserQualificationQuery
- func (uq *UserQuery) Select(fields ...string) *UserSelect
- func (uq *UserQuery) Unique(unique bool) *UserQuery
- func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery
- func (uq *UserQuery) WithActivities(opts ...func(*UserActivityQuery)) *UserQuery
- func (uq *UserQuery) WithCareerGroups(opts ...func(*UserCareerGroupQuery)) *UserQuery
- func (uq *UserQuery) WithNotes(opts ...func(*UserNoteQuery)) *UserQuery
- func (uq *UserQuery) WithQualifications(opts ...func(*UserQualificationQuery)) *UserQuery
- type UserSelect
- func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
- func (s *UserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *UserSelect) BoolX(ctx context.Context) bool
- func (s *UserSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *UserSelect) BoolsX(ctx context.Context) []bool
- func (s *UserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *UserSelect) Float64X(ctx context.Context) float64
- func (s *UserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *UserSelect) Float64sX(ctx context.Context) []float64
- func (s *UserSelect) Int(ctx context.Context) (_ int, err error)
- func (s *UserSelect) IntX(ctx context.Context) int
- func (s *UserSelect) Ints(ctx context.Context) ([]int, error)
- func (s *UserSelect) IntsX(ctx context.Context) []int
- func (us *UserSelect) Scan(ctx context.Context, v any) error
- func (s *UserSelect) ScanX(ctx context.Context, v any)
- func (s *UserSelect) String(ctx context.Context) (_ string, err error)
- func (s *UserSelect) StringX(ctx context.Context) string
- func (s *UserSelect) Strings(ctx context.Context) ([]string, error)
- func (s *UserSelect) StringsX(ctx context.Context) []string
- type UserUpdate
- func (uu *UserUpdate) AddActivities(u ...*UserActivity) *UserUpdate
- func (uu *UserUpdate) AddActivityIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) AddBirthdayDay(i int) *UserUpdate
- func (uu *UserUpdate) AddBirthdayMonth(i int) *UserUpdate
- func (uu *UserUpdate) AddBirthdayYear(i int) *UserUpdate
- func (uu *UserUpdate) AddCareerGroupIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) AddCareerGroups(u ...*UserCareerGroup) *UserUpdate
- func (uu *UserUpdate) AddNoteIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) AddNotes(u ...*UserNote) *UserUpdate
- func (uu *UserUpdate) AddQualificationIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) AddQualifications(u ...*UserQualification) *UserUpdate
- func (uu *UserUpdate) ClearActivities() *UserUpdate
- func (uu *UserUpdate) ClearAvatarURL() *UserUpdate
- func (uu *UserUpdate) ClearBelongTo() *UserUpdate
- func (uu *UserUpdate) ClearCareerGroups() *UserUpdate
- func (uu *UserUpdate) ClearJob() *UserUpdate
- func (uu *UserUpdate) ClearNickname() *UserUpdate
- func (uu *UserUpdate) ClearNotes() *UserUpdate
- func (uu *UserUpdate) ClearPr() *UserUpdate
- func (uu *UserUpdate) ClearQualifications() *UserUpdate
- func (uu *UserUpdate) Exec(ctx context.Context) error
- func (uu *UserUpdate) ExecX(ctx context.Context)
- func (uu *UserUpdate) Mutation() *UserMutation
- func (uu *UserUpdate) RemoveActivities(u ...*UserActivity) *UserUpdate
- func (uu *UserUpdate) RemoveActivityIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) RemoveCareerGroupIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) RemoveCareerGroups(u ...*UserCareerGroup) *UserUpdate
- func (uu *UserUpdate) RemoveNoteIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) RemoveNotes(u ...*UserNote) *UserUpdate
- func (uu *UserUpdate) RemoveQualificationIDs(ids ...int) *UserUpdate
- func (uu *UserUpdate) RemoveQualifications(u ...*UserQualification) *UserUpdate
- func (uu *UserUpdate) Save(ctx context.Context) (int, error)
- func (uu *UserUpdate) SaveX(ctx context.Context) int
- func (uu *UserUpdate) SetAvatarURL(s string) *UserUpdate
- func (uu *UserUpdate) SetBelongTo(s string) *UserUpdate
- func (uu *UserUpdate) SetBirthdayDay(i int) *UserUpdate
- func (uu *UserUpdate) SetBirthdayMonth(i int) *UserUpdate
- func (uu *UserUpdate) SetBirthdayYear(i int) *UserUpdate
- func (uu *UserUpdate) SetJob(s string) *UserUpdate
- func (uu *UserUpdate) SetName(s string) *UserUpdate
- func (uu *UserUpdate) SetNickname(s string) *UserUpdate
- func (uu *UserUpdate) SetNillableAvatarURL(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableBelongTo(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableJob(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillableNickname(s *string) *UserUpdate
- func (uu *UserUpdate) SetNillablePr(s *string) *UserUpdate
- func (uu *UserUpdate) SetPr(s string) *UserUpdate
- func (uu *UserUpdate) SetUpdateTime(t time.Time) *UserUpdate
- func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
- type UserUpdateOne
- func (uuo *UserUpdateOne) AddActivities(u ...*UserActivity) *UserUpdateOne
- func (uuo *UserUpdateOne) AddActivityIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddBirthdayDay(i int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddBirthdayMonth(i int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddBirthdayYear(i int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddCareerGroupIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddCareerGroups(u ...*UserCareerGroup) *UserUpdateOne
- func (uuo *UserUpdateOne) AddNoteIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddNotes(u ...*UserNote) *UserUpdateOne
- func (uuo *UserUpdateOne) AddQualificationIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) AddQualifications(u ...*UserQualification) *UserUpdateOne
- func (uuo *UserUpdateOne) ClearActivities() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearAvatarURL() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearBelongTo() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearCareerGroups() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearJob() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearNickname() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearNotes() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearPr() *UserUpdateOne
- func (uuo *UserUpdateOne) ClearQualifications() *UserUpdateOne
- func (uuo *UserUpdateOne) Exec(ctx context.Context) error
- func (uuo *UserUpdateOne) ExecX(ctx context.Context)
- func (uuo *UserUpdateOne) Mutation() *UserMutation
- func (uuo *UserUpdateOne) RemoveActivities(u ...*UserActivity) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveActivityIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveCareerGroupIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveCareerGroups(u ...*UserCareerGroup) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveNoteIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveNotes(u ...*UserNote) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveQualificationIDs(ids ...int) *UserUpdateOne
- func (uuo *UserUpdateOne) RemoveQualifications(u ...*UserQualification) *UserUpdateOne
- func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
- func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
- func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetAvatarURL(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetBelongTo(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetBirthdayDay(i int) *UserUpdateOne
- func (uuo *UserUpdateOne) SetBirthdayMonth(i int) *UserUpdateOne
- func (uuo *UserUpdateOne) SetBirthdayYear(i int) *UserUpdateOne
- func (uuo *UserUpdateOne) SetJob(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNickname(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableAvatarURL(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableBelongTo(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableJob(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillableNickname(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetNillablePr(s *string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetPr(s string) *UserUpdateOne
- func (uuo *UserUpdateOne) SetUpdateTime(t time.Time) *UserUpdateOne
- func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
- type UserUpsert
- func (u *UserUpsert) AddBirthdayDay(v int) *UserUpsert
- func (u *UserUpsert) AddBirthdayMonth(v int) *UserUpsert
- func (u *UserUpsert) AddBirthdayYear(v int) *UserUpsert
- func (u *UserUpsert) ClearAvatarURL() *UserUpsert
- func (u *UserUpsert) ClearBelongTo() *UserUpsert
- func (u *UserUpsert) ClearJob() *UserUpsert
- func (u *UserUpsert) ClearNickname() *UserUpsert
- func (u *UserUpsert) ClearPr() *UserUpsert
- func (u *UserUpsert) SetAvatarURL(v string) *UserUpsert
- func (u *UserUpsert) SetBelongTo(v string) *UserUpsert
- func (u *UserUpsert) SetBirthdayDay(v int) *UserUpsert
- func (u *UserUpsert) SetBirthdayMonth(v int) *UserUpsert
- func (u *UserUpsert) SetBirthdayYear(v int) *UserUpsert
- func (u *UserUpsert) SetJob(v string) *UserUpsert
- func (u *UserUpsert) SetName(v string) *UserUpsert
- func (u *UserUpsert) SetNickname(v string) *UserUpsert
- func (u *UserUpsert) SetPr(v string) *UserUpsert
- func (u *UserUpsert) SetUpdateTime(v time.Time) *UserUpsert
- func (u *UserUpsert) UpdateAvatarURL() *UserUpsert
- func (u *UserUpsert) UpdateBelongTo() *UserUpsert
- func (u *UserUpsert) UpdateBirthdayDay() *UserUpsert
- func (u *UserUpsert) UpdateBirthdayMonth() *UserUpsert
- func (u *UserUpsert) UpdateBirthdayYear() *UserUpsert
- func (u *UserUpsert) UpdateJob() *UserUpsert
- func (u *UserUpsert) UpdateName() *UserUpsert
- func (u *UserUpsert) UpdateNickname() *UserUpsert
- func (u *UserUpsert) UpdatePr() *UserUpsert
- func (u *UserUpsert) UpdateUpdateTime() *UserUpsert
- type UserUpsertBulk
- func (u *UserUpsertBulk) AddBirthdayDay(v int) *UserUpsertBulk
- func (u *UserUpsertBulk) AddBirthdayMonth(v int) *UserUpsertBulk
- func (u *UserUpsertBulk) AddBirthdayYear(v int) *UserUpsertBulk
- func (u *UserUpsertBulk) ClearAvatarURL() *UserUpsertBulk
- func (u *UserUpsertBulk) ClearBelongTo() *UserUpsertBulk
- func (u *UserUpsertBulk) ClearJob() *UserUpsertBulk
- func (u *UserUpsertBulk) ClearNickname() *UserUpsertBulk
- func (u *UserUpsertBulk) ClearPr() *UserUpsertBulk
- func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk
- func (u *UserUpsertBulk) Exec(ctx context.Context) error
- func (u *UserUpsertBulk) ExecX(ctx context.Context)
- func (u *UserUpsertBulk) Ignore() *UserUpsertBulk
- func (u *UserUpsertBulk) SetAvatarURL(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetBelongTo(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetBirthdayDay(v int) *UserUpsertBulk
- func (u *UserUpsertBulk) SetBirthdayMonth(v int) *UserUpsertBulk
- func (u *UserUpsertBulk) SetBirthdayYear(v int) *UserUpsertBulk
- func (u *UserUpsertBulk) SetJob(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetName(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetNickname(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetPr(v string) *UserUpsertBulk
- func (u *UserUpsertBulk) SetUpdateTime(v time.Time) *UserUpsertBulk
- func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateAvatarURL() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateBelongTo() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateBirthdayDay() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateBirthdayMonth() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateBirthdayYear() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateJob() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateName() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateNickname() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdatePr() *UserUpsertBulk
- func (u *UserUpsertBulk) UpdateUpdateTime() *UserUpsertBulk
- type UserUpsertOne
- func (u *UserUpsertOne) AddBirthdayDay(v int) *UserUpsertOne
- func (u *UserUpsertOne) AddBirthdayMonth(v int) *UserUpsertOne
- func (u *UserUpsertOne) AddBirthdayYear(v int) *UserUpsertOne
- func (u *UserUpsertOne) ClearAvatarURL() *UserUpsertOne
- func (u *UserUpsertOne) ClearBelongTo() *UserUpsertOne
- func (u *UserUpsertOne) ClearJob() *UserUpsertOne
- func (u *UserUpsertOne) ClearNickname() *UserUpsertOne
- func (u *UserUpsertOne) ClearPr() *UserUpsertOne
- func (u *UserUpsertOne) DoNothing() *UserUpsertOne
- func (u *UserUpsertOne) Exec(ctx context.Context) error
- func (u *UserUpsertOne) ExecX(ctx context.Context)
- func (u *UserUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *UserUpsertOne) IDX(ctx context.Context) int
- func (u *UserUpsertOne) Ignore() *UserUpsertOne
- func (u *UserUpsertOne) SetAvatarURL(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetBelongTo(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetBirthdayDay(v int) *UserUpsertOne
- func (u *UserUpsertOne) SetBirthdayMonth(v int) *UserUpsertOne
- func (u *UserUpsertOne) SetBirthdayYear(v int) *UserUpsertOne
- func (u *UserUpsertOne) SetJob(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetName(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetNickname(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetPr(v string) *UserUpsertOne
- func (u *UserUpsertOne) SetUpdateTime(v time.Time) *UserUpsertOne
- func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne
- func (u *UserUpsertOne) UpdateAvatarURL() *UserUpsertOne
- func (u *UserUpsertOne) UpdateBelongTo() *UserUpsertOne
- func (u *UserUpsertOne) UpdateBirthdayDay() *UserUpsertOne
- func (u *UserUpsertOne) UpdateBirthdayMonth() *UserUpsertOne
- func (u *UserUpsertOne) UpdateBirthdayYear() *UserUpsertOne
- func (u *UserUpsertOne) UpdateJob() *UserUpsertOne
- func (u *UserUpsertOne) UpdateName() *UserUpsertOne
- func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne
- func (u *UserUpsertOne) UpdateNickname() *UserUpsertOne
- func (u *UserUpsertOne) UpdatePr() *UserUpsertOne
- func (u *UserUpsertOne) UpdateUpdateTime() *UserUpsertOne
- type Users
- 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. TypeCareerSkill = "CareerSkill" TypeCareerSkillGroup = "CareerSkillGroup" TypeCareerTask = "CareerTask" TypeCareerTaskDescription = "CareerTaskDescription" TypeSkill = "Skill" TypeSkillTag = "SkillTag" TypeUser = "User" TypeUserActivity = "UserActivity" TypeUserCareer = "UserCareer" TypeUserCareerDescription = "UserCareerDescription" TypeUserCareerGroup = "UserCareerGroup" TypeUserNote = "UserNote" TypeUserNoteItem = "UserNoteItem" TypeUserQualification = "UserQualification" )
Variables ¶
This section is empty.
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 CareerSkill ¶
type CareerSkill struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Version holds the value of the "version" field. Version *string `json:"version,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the CareerSkillQuery when eager-loading is set. Edges CareerSkillEdges `json:"edges"` // contains filtered or unexported fields }
CareerSkill is the model entity for the CareerSkill schema.
func (*CareerSkill) QueryCareerSkillGroup ¶
func (cs *CareerSkill) QueryCareerSkillGroup() *CareerSkillGroupQuery
QueryCareerSkillGroup queries the "careerSkillGroup" edge of the CareerSkill entity.
func (*CareerSkill) QuerySkill ¶
func (cs *CareerSkill) QuerySkill() *SkillQuery
QuerySkill queries the "skill" edge of the CareerSkill entity.
func (*CareerSkill) String ¶
func (cs *CareerSkill) String() string
String implements the fmt.Stringer.
func (*CareerSkill) Unwrap ¶
func (cs *CareerSkill) Unwrap() *CareerSkill
Unwrap unwraps the CareerSkill 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 (*CareerSkill) Update ¶
func (cs *CareerSkill) Update() *CareerSkillUpdateOne
Update returns a builder for updating this CareerSkill. Note that you need to call CareerSkill.Unwrap() before calling this method if this CareerSkill was returned from a transaction, and the transaction was committed or rolled back.
type CareerSkillClient ¶
type CareerSkillClient struct {
// contains filtered or unexported fields
}
CareerSkillClient is a client for the CareerSkill schema.
func NewCareerSkillClient ¶
func NewCareerSkillClient(c config) *CareerSkillClient
NewCareerSkillClient returns a client for the CareerSkill from the given config.
func (*CareerSkillClient) Create ¶
func (c *CareerSkillClient) Create() *CareerSkillCreate
Create returns a builder for creating a CareerSkill entity.
func (*CareerSkillClient) CreateBulk ¶
func (c *CareerSkillClient) CreateBulk(builders ...*CareerSkillCreate) *CareerSkillCreateBulk
CreateBulk returns a builder for creating a bulk of CareerSkill entities.
func (*CareerSkillClient) Delete ¶
func (c *CareerSkillClient) Delete() *CareerSkillDelete
Delete returns a delete builder for CareerSkill.
func (*CareerSkillClient) DeleteOne ¶
func (c *CareerSkillClient) DeleteOne(cs *CareerSkill) *CareerSkillDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CareerSkillClient) DeleteOneID ¶
func (c *CareerSkillClient) DeleteOneID(id int) *CareerSkillDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CareerSkillClient) Get ¶
func (c *CareerSkillClient) Get(ctx context.Context, id int) (*CareerSkill, error)
Get returns a CareerSkill entity by its id.
func (*CareerSkillClient) GetX ¶
func (c *CareerSkillClient) GetX(ctx context.Context, id int) *CareerSkill
GetX is like Get, but panics if an error occurs.
func (*CareerSkillClient) Hooks ¶
func (c *CareerSkillClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CareerSkillClient) Intercept ¶
func (c *CareerSkillClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `careerskill.Intercept(f(g(h())))`.
func (*CareerSkillClient) Interceptors ¶
func (c *CareerSkillClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CareerSkillClient) Query ¶
func (c *CareerSkillClient) Query() *CareerSkillQuery
Query returns a query builder for CareerSkill.
func (*CareerSkillClient) QueryCareerSkillGroup ¶
func (c *CareerSkillClient) QueryCareerSkillGroup(cs *CareerSkill) *CareerSkillGroupQuery
QueryCareerSkillGroup queries the careerSkillGroup edge of a CareerSkill.
func (*CareerSkillClient) QuerySkill ¶
func (c *CareerSkillClient) QuerySkill(cs *CareerSkill) *SkillQuery
QuerySkill queries the skill edge of a CareerSkill.
func (*CareerSkillClient) Update ¶
func (c *CareerSkillClient) Update() *CareerSkillUpdate
Update returns an update builder for CareerSkill.
func (*CareerSkillClient) UpdateOne ¶
func (c *CareerSkillClient) UpdateOne(cs *CareerSkill) *CareerSkillUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CareerSkillClient) UpdateOneID ¶
func (c *CareerSkillClient) UpdateOneID(id int) *CareerSkillUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CareerSkillClient) Use ¶
func (c *CareerSkillClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `careerskill.Hooks(f(g(h())))`.
type CareerSkillCreate ¶
type CareerSkillCreate struct {
// contains filtered or unexported fields
}
CareerSkillCreate is the builder for creating a CareerSkill entity.
func (*CareerSkillCreate) Exec ¶
func (csc *CareerSkillCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillCreate) ExecX ¶
func (csc *CareerSkillCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillCreate) Mutation ¶
func (csc *CareerSkillCreate) Mutation() *CareerSkillMutation
Mutation returns the CareerSkillMutation object of the builder.
func (*CareerSkillCreate) OnConflict ¶
func (csc *CareerSkillCreate) OnConflict(opts ...sql.ConflictOption) *CareerSkillUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CareerSkill.Create(). SetCreateTime(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.CareerSkillUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*CareerSkillCreate) OnConflictColumns ¶
func (csc *CareerSkillCreate) OnConflictColumns(columns ...string) *CareerSkillUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CareerSkill.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CareerSkillCreate) Save ¶
func (csc *CareerSkillCreate) Save(ctx context.Context) (*CareerSkill, error)
Save creates the CareerSkill in the database.
func (*CareerSkillCreate) SaveX ¶
func (csc *CareerSkillCreate) SaveX(ctx context.Context) *CareerSkill
SaveX calls Save and panics if Save returns an error.
func (*CareerSkillCreate) SetCareerSkillGroup ¶
func (csc *CareerSkillCreate) SetCareerSkillGroup(c *CareerSkillGroup) *CareerSkillCreate
SetCareerSkillGroup sets the "careerSkillGroup" edge to the CareerSkillGroup entity.
func (*CareerSkillCreate) SetCareerSkillGroupID ¶
func (csc *CareerSkillCreate) SetCareerSkillGroupID(id int) *CareerSkillCreate
SetCareerSkillGroupID sets the "careerSkillGroup" edge to the CareerSkillGroup entity by ID.
func (*CareerSkillCreate) SetCreateTime ¶
func (csc *CareerSkillCreate) SetCreateTime(t time.Time) *CareerSkillCreate
SetCreateTime sets the "create_time" field.
func (*CareerSkillCreate) SetNillableCreateTime ¶
func (csc *CareerSkillCreate) SetNillableCreateTime(t *time.Time) *CareerSkillCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*CareerSkillCreate) SetNillableUpdateTime ¶
func (csc *CareerSkillCreate) SetNillableUpdateTime(t *time.Time) *CareerSkillCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*CareerSkillCreate) SetNillableVersion ¶
func (csc *CareerSkillCreate) SetNillableVersion(s *string) *CareerSkillCreate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*CareerSkillCreate) SetSkill ¶
func (csc *CareerSkillCreate) SetSkill(s *Skill) *CareerSkillCreate
SetSkill sets the "skill" edge to the Skill entity.
func (*CareerSkillCreate) SetSkillID ¶
func (csc *CareerSkillCreate) SetSkillID(id int) *CareerSkillCreate
SetSkillID sets the "skill" edge to the Skill entity by ID.
func (*CareerSkillCreate) SetUpdateTime ¶
func (csc *CareerSkillCreate) SetUpdateTime(t time.Time) *CareerSkillCreate
SetUpdateTime sets the "update_time" field.
func (*CareerSkillCreate) SetVersion ¶
func (csc *CareerSkillCreate) SetVersion(s string) *CareerSkillCreate
SetVersion sets the "version" field.
type CareerSkillCreateBulk ¶
type CareerSkillCreateBulk struct {
// contains filtered or unexported fields
}
CareerSkillCreateBulk is the builder for creating many CareerSkill entities in bulk.
func (*CareerSkillCreateBulk) Exec ¶
func (cscb *CareerSkillCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillCreateBulk) ExecX ¶
func (cscb *CareerSkillCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillCreateBulk) OnConflict ¶
func (cscb *CareerSkillCreateBulk) OnConflict(opts ...sql.ConflictOption) *CareerSkillUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CareerSkill.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.CareerSkillUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*CareerSkillCreateBulk) OnConflictColumns ¶
func (cscb *CareerSkillCreateBulk) OnConflictColumns(columns ...string) *CareerSkillUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CareerSkill.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CareerSkillCreateBulk) Save ¶
func (cscb *CareerSkillCreateBulk) Save(ctx context.Context) ([]*CareerSkill, error)
Save creates the CareerSkill entities in the database.
func (*CareerSkillCreateBulk) SaveX ¶
func (cscb *CareerSkillCreateBulk) SaveX(ctx context.Context) []*CareerSkill
SaveX is like Save, but panics if an error occurs.
type CareerSkillDelete ¶
type CareerSkillDelete struct {
// contains filtered or unexported fields
}
CareerSkillDelete is the builder for deleting a CareerSkill entity.
func (*CareerSkillDelete) Exec ¶
func (csd *CareerSkillDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CareerSkillDelete) ExecX ¶
func (csd *CareerSkillDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillDelete) Where ¶
func (csd *CareerSkillDelete) Where(ps ...predicate.CareerSkill) *CareerSkillDelete
Where appends a list predicates to the CareerSkillDelete builder.
type CareerSkillDeleteOne ¶
type CareerSkillDeleteOne struct {
// contains filtered or unexported fields
}
CareerSkillDeleteOne is the builder for deleting a single CareerSkill entity.
func (*CareerSkillDeleteOne) Exec ¶
func (csdo *CareerSkillDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CareerSkillDeleteOne) ExecX ¶
func (csdo *CareerSkillDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillDeleteOne) Where ¶
func (csdo *CareerSkillDeleteOne) Where(ps ...predicate.CareerSkill) *CareerSkillDeleteOne
Where appends a list predicates to the CareerSkillDelete builder.
type CareerSkillEdges ¶
type CareerSkillEdges struct { // CareerSkillGroup holds the value of the careerSkillGroup edge. CareerSkillGroup *CareerSkillGroup `json:"careerSkillGroup,omitempty"` // Skill holds the value of the skill edge. Skill *Skill `json:"skill,omitempty"` // contains filtered or unexported fields }
CareerSkillEdges holds the relations/edges for other nodes in the graph.
func (CareerSkillEdges) CareerSkillGroupOrErr ¶
func (e CareerSkillEdges) CareerSkillGroupOrErr() (*CareerSkillGroup, error)
CareerSkillGroupOrErr returns the CareerSkillGroup value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (CareerSkillEdges) SkillOrErr ¶
func (e CareerSkillEdges) SkillOrErr() (*Skill, error)
SkillOrErr returns the Skill value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type CareerSkillGroup ¶
type CareerSkillGroup struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Label holds the value of the "label" field. Label string `json:"label,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the CareerSkillGroupQuery when eager-loading is set. Edges CareerSkillGroupEdges `json:"edges"` // contains filtered or unexported fields }
CareerSkillGroup is the model entity for the CareerSkillGroup schema.
func (*CareerSkillGroup) QueryCareer ¶
func (csg *CareerSkillGroup) QueryCareer() *UserCareerQuery
QueryCareer queries the "career" edge of the CareerSkillGroup entity.
func (*CareerSkillGroup) QueryCareerSkills ¶
func (csg *CareerSkillGroup) QueryCareerSkills() *CareerSkillQuery
QueryCareerSkills queries the "careerSkills" edge of the CareerSkillGroup entity.
func (*CareerSkillGroup) String ¶
func (csg *CareerSkillGroup) String() string
String implements the fmt.Stringer.
func (*CareerSkillGroup) Unwrap ¶
func (csg *CareerSkillGroup) Unwrap() *CareerSkillGroup
Unwrap unwraps the CareerSkillGroup 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 (*CareerSkillGroup) Update ¶
func (csg *CareerSkillGroup) Update() *CareerSkillGroupUpdateOne
Update returns a builder for updating this CareerSkillGroup. Note that you need to call CareerSkillGroup.Unwrap() before calling this method if this CareerSkillGroup was returned from a transaction, and the transaction was committed or rolled back.
type CareerSkillGroupBy ¶
type CareerSkillGroupBy struct {
// contains filtered or unexported fields
}
CareerSkillGroupBy is the group-by builder for CareerSkill entities.
func (*CareerSkillGroupBy) Aggregate ¶
func (csgb *CareerSkillGroupBy) Aggregate(fns ...AggregateFunc) *CareerSkillGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CareerSkillGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupBy) Scan ¶
func (csgb *CareerSkillGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CareerSkillGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CareerSkillGroupClient ¶
type CareerSkillGroupClient struct {
// contains filtered or unexported fields
}
CareerSkillGroupClient is a client for the CareerSkillGroup schema.
func NewCareerSkillGroupClient ¶
func NewCareerSkillGroupClient(c config) *CareerSkillGroupClient
NewCareerSkillGroupClient returns a client for the CareerSkillGroup from the given config.
func (*CareerSkillGroupClient) Create ¶
func (c *CareerSkillGroupClient) Create() *CareerSkillGroupCreate
Create returns a builder for creating a CareerSkillGroup entity.
func (*CareerSkillGroupClient) CreateBulk ¶
func (c *CareerSkillGroupClient) CreateBulk(builders ...*CareerSkillGroupCreate) *CareerSkillGroupCreateBulk
CreateBulk returns a builder for creating a bulk of CareerSkillGroup entities.
func (*CareerSkillGroupClient) Delete ¶
func (c *CareerSkillGroupClient) Delete() *CareerSkillGroupDelete
Delete returns a delete builder for CareerSkillGroup.
func (*CareerSkillGroupClient) DeleteOne ¶
func (c *CareerSkillGroupClient) DeleteOne(csg *CareerSkillGroup) *CareerSkillGroupDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CareerSkillGroupClient) DeleteOneID ¶
func (c *CareerSkillGroupClient) DeleteOneID(id int) *CareerSkillGroupDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CareerSkillGroupClient) Get ¶
func (c *CareerSkillGroupClient) Get(ctx context.Context, id int) (*CareerSkillGroup, error)
Get returns a CareerSkillGroup entity by its id.
func (*CareerSkillGroupClient) GetX ¶
func (c *CareerSkillGroupClient) GetX(ctx context.Context, id int) *CareerSkillGroup
GetX is like Get, but panics if an error occurs.
func (*CareerSkillGroupClient) Hooks ¶
func (c *CareerSkillGroupClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CareerSkillGroupClient) Intercept ¶
func (c *CareerSkillGroupClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `careerskillgroup.Intercept(f(g(h())))`.
func (*CareerSkillGroupClient) Interceptors ¶
func (c *CareerSkillGroupClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CareerSkillGroupClient) Query ¶
func (c *CareerSkillGroupClient) Query() *CareerSkillGroupQuery
Query returns a query builder for CareerSkillGroup.
func (*CareerSkillGroupClient) QueryCareer ¶
func (c *CareerSkillGroupClient) QueryCareer(csg *CareerSkillGroup) *UserCareerQuery
QueryCareer queries the career edge of a CareerSkillGroup.
func (*CareerSkillGroupClient) QueryCareerSkills ¶
func (c *CareerSkillGroupClient) QueryCareerSkills(csg *CareerSkillGroup) *CareerSkillQuery
QueryCareerSkills queries the careerSkills edge of a CareerSkillGroup.
func (*CareerSkillGroupClient) Update ¶
func (c *CareerSkillGroupClient) Update() *CareerSkillGroupUpdate
Update returns an update builder for CareerSkillGroup.
func (*CareerSkillGroupClient) UpdateOne ¶
func (c *CareerSkillGroupClient) UpdateOne(csg *CareerSkillGroup) *CareerSkillGroupUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CareerSkillGroupClient) UpdateOneID ¶
func (c *CareerSkillGroupClient) UpdateOneID(id int) *CareerSkillGroupUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CareerSkillGroupClient) Use ¶
func (c *CareerSkillGroupClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `careerskillgroup.Hooks(f(g(h())))`.
type CareerSkillGroupCreate ¶
type CareerSkillGroupCreate struct {
// contains filtered or unexported fields
}
CareerSkillGroupCreate is the builder for creating a CareerSkillGroup entity.
func (*CareerSkillGroupCreate) AddCareerSkillIDs ¶
func (csgc *CareerSkillGroupCreate) AddCareerSkillIDs(ids ...int) *CareerSkillGroupCreate
AddCareerSkillIDs adds the "careerSkills" edge to the CareerSkill entity by IDs.
func (*CareerSkillGroupCreate) AddCareerSkills ¶
func (csgc *CareerSkillGroupCreate) AddCareerSkills(c ...*CareerSkill) *CareerSkillGroupCreate
AddCareerSkills adds the "careerSkills" edges to the CareerSkill entity.
func (*CareerSkillGroupCreate) Exec ¶
func (csgc *CareerSkillGroupCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillGroupCreate) ExecX ¶
func (csgc *CareerSkillGroupCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillGroupCreate) Mutation ¶
func (csgc *CareerSkillGroupCreate) Mutation() *CareerSkillGroupMutation
Mutation returns the CareerSkillGroupMutation object of the builder.
func (*CareerSkillGroupCreate) OnConflict ¶
func (csgc *CareerSkillGroupCreate) OnConflict(opts ...sql.ConflictOption) *CareerSkillGroupUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CareerSkillGroup.Create(). SetCreateTime(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.CareerSkillGroupUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*CareerSkillGroupCreate) OnConflictColumns ¶
func (csgc *CareerSkillGroupCreate) OnConflictColumns(columns ...string) *CareerSkillGroupUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CareerSkillGroup.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CareerSkillGroupCreate) Save ¶
func (csgc *CareerSkillGroupCreate) Save(ctx context.Context) (*CareerSkillGroup, error)
Save creates the CareerSkillGroup in the database.
func (*CareerSkillGroupCreate) SaveX ¶
func (csgc *CareerSkillGroupCreate) SaveX(ctx context.Context) *CareerSkillGroup
SaveX calls Save and panics if Save returns an error.
func (*CareerSkillGroupCreate) SetCareer ¶
func (csgc *CareerSkillGroupCreate) SetCareer(u *UserCareer) *CareerSkillGroupCreate
SetCareer sets the "career" edge to the UserCareer entity.
func (*CareerSkillGroupCreate) SetCareerID ¶
func (csgc *CareerSkillGroupCreate) SetCareerID(id int) *CareerSkillGroupCreate
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*CareerSkillGroupCreate) SetCreateTime ¶
func (csgc *CareerSkillGroupCreate) SetCreateTime(t time.Time) *CareerSkillGroupCreate
SetCreateTime sets the "create_time" field.
func (*CareerSkillGroupCreate) SetLabel ¶
func (csgc *CareerSkillGroupCreate) SetLabel(s string) *CareerSkillGroupCreate
SetLabel sets the "label" field.
func (*CareerSkillGroupCreate) SetNillableCreateTime ¶
func (csgc *CareerSkillGroupCreate) SetNillableCreateTime(t *time.Time) *CareerSkillGroupCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*CareerSkillGroupCreate) SetNillableUpdateTime ¶
func (csgc *CareerSkillGroupCreate) SetNillableUpdateTime(t *time.Time) *CareerSkillGroupCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*CareerSkillGroupCreate) SetUpdateTime ¶
func (csgc *CareerSkillGroupCreate) SetUpdateTime(t time.Time) *CareerSkillGroupCreate
SetUpdateTime sets the "update_time" field.
type CareerSkillGroupCreateBulk ¶
type CareerSkillGroupCreateBulk struct {
// contains filtered or unexported fields
}
CareerSkillGroupCreateBulk is the builder for creating many CareerSkillGroup entities in bulk.
func (*CareerSkillGroupCreateBulk) Exec ¶
func (csgcb *CareerSkillGroupCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillGroupCreateBulk) ExecX ¶
func (csgcb *CareerSkillGroupCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillGroupCreateBulk) OnConflict ¶
func (csgcb *CareerSkillGroupCreateBulk) OnConflict(opts ...sql.ConflictOption) *CareerSkillGroupUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CareerSkillGroup.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.CareerSkillGroupUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*CareerSkillGroupCreateBulk) OnConflictColumns ¶
func (csgcb *CareerSkillGroupCreateBulk) OnConflictColumns(columns ...string) *CareerSkillGroupUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CareerSkillGroup.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CareerSkillGroupCreateBulk) Save ¶
func (csgcb *CareerSkillGroupCreateBulk) Save(ctx context.Context) ([]*CareerSkillGroup, error)
Save creates the CareerSkillGroup entities in the database.
func (*CareerSkillGroupCreateBulk) SaveX ¶
func (csgcb *CareerSkillGroupCreateBulk) SaveX(ctx context.Context) []*CareerSkillGroup
SaveX is like Save, but panics if an error occurs.
type CareerSkillGroupDelete ¶
type CareerSkillGroupDelete struct {
// contains filtered or unexported fields
}
CareerSkillGroupDelete is the builder for deleting a CareerSkillGroup entity.
func (*CareerSkillGroupDelete) Exec ¶
func (csgd *CareerSkillGroupDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CareerSkillGroupDelete) ExecX ¶
func (csgd *CareerSkillGroupDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillGroupDelete) Where ¶
func (csgd *CareerSkillGroupDelete) Where(ps ...predicate.CareerSkillGroup) *CareerSkillGroupDelete
Where appends a list predicates to the CareerSkillGroupDelete builder.
type CareerSkillGroupDeleteOne ¶
type CareerSkillGroupDeleteOne struct {
// contains filtered or unexported fields
}
CareerSkillGroupDeleteOne is the builder for deleting a single CareerSkillGroup entity.
func (*CareerSkillGroupDeleteOne) Exec ¶
func (csgdo *CareerSkillGroupDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CareerSkillGroupDeleteOne) ExecX ¶
func (csgdo *CareerSkillGroupDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillGroupDeleteOne) Where ¶
func (csgdo *CareerSkillGroupDeleteOne) Where(ps ...predicate.CareerSkillGroup) *CareerSkillGroupDeleteOne
Where appends a list predicates to the CareerSkillGroupDelete builder.
type CareerSkillGroupEdges ¶
type CareerSkillGroupEdges struct { // Career holds the value of the career edge. Career *UserCareer `json:"career,omitempty"` // CareerSkills holds the value of the careerSkills edge. CareerSkills []*CareerSkill `json:"careerSkills,omitempty"` // contains filtered or unexported fields }
CareerSkillGroupEdges holds the relations/edges for other nodes in the graph.
func (CareerSkillGroupEdges) CareerOrErr ¶
func (e CareerSkillGroupEdges) CareerOrErr() (*UserCareer, error)
CareerOrErr returns the Career value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (CareerSkillGroupEdges) CareerSkillsOrErr ¶
func (e CareerSkillGroupEdges) CareerSkillsOrErr() ([]*CareerSkill, error)
CareerSkillsOrErr returns the CareerSkills value or an error if the edge was not loaded in eager-loading.
type CareerSkillGroupGroupBy ¶
type CareerSkillGroupGroupBy struct {
// contains filtered or unexported fields
}
CareerSkillGroupGroupBy is the group-by builder for CareerSkillGroup entities.
func (*CareerSkillGroupGroupBy) Aggregate ¶
func (csggb *CareerSkillGroupGroupBy) Aggregate(fns ...AggregateFunc) *CareerSkillGroupGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CareerSkillGroupGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*CareerSkillGroupGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupGroupBy) Scan ¶
func (csggb *CareerSkillGroupGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CareerSkillGroupGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CareerSkillGroupMutation ¶
type CareerSkillGroupMutation struct {
// contains filtered or unexported fields
}
CareerSkillGroupMutation represents an operation that mutates the CareerSkillGroup nodes in the graph.
func (*CareerSkillGroupMutation) AddCareerSkillIDs ¶
func (m *CareerSkillGroupMutation) AddCareerSkillIDs(ids ...int)
AddCareerSkillIDs adds the "careerSkills" edge to the CareerSkill entity by ids.
func (*CareerSkillGroupMutation) AddField ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) AddedEdges ¶
func (m *CareerSkillGroupMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CareerSkillGroupMutation) AddedField ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) AddedFields ¶
func (m *CareerSkillGroupMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CareerSkillGroupMutation) AddedIDs ¶
func (m *CareerSkillGroupMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CareerSkillGroupMutation) CareerCleared ¶
func (m *CareerSkillGroupMutation) CareerCleared() bool
CareerCleared reports if the "career" edge to the UserCareer entity was cleared.
func (*CareerSkillGroupMutation) CareerID ¶
func (m *CareerSkillGroupMutation) CareerID() (id int, exists bool)
CareerID returns the "career" edge ID in the mutation.
func (*CareerSkillGroupMutation) CareerIDs ¶
func (m *CareerSkillGroupMutation) CareerIDs() (ids []int)
CareerIDs returns the "career" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CareerID instead. It exists only for internal usage by the builders.
func (*CareerSkillGroupMutation) CareerSkillsCleared ¶
func (m *CareerSkillGroupMutation) CareerSkillsCleared() bool
CareerSkillsCleared reports if the "careerSkills" edge to the CareerSkill entity was cleared.
func (*CareerSkillGroupMutation) CareerSkillsIDs ¶
func (m *CareerSkillGroupMutation) CareerSkillsIDs() (ids []int)
CareerSkillsIDs returns the "careerSkills" edge IDs in the mutation.
func (*CareerSkillGroupMutation) ClearCareer ¶
func (m *CareerSkillGroupMutation) ClearCareer()
ClearCareer clears the "career" edge to the UserCareer entity.
func (*CareerSkillGroupMutation) ClearCareerSkills ¶
func (m *CareerSkillGroupMutation) ClearCareerSkills()
ClearCareerSkills clears the "careerSkills" edge to the CareerSkill entity.
func (*CareerSkillGroupMutation) ClearEdge ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) ClearField ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) ClearedEdges ¶
func (m *CareerSkillGroupMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CareerSkillGroupMutation) ClearedFields ¶
func (m *CareerSkillGroupMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CareerSkillGroupMutation) Client ¶
func (m CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) CreateTime ¶
func (m *CareerSkillGroupMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*CareerSkillGroupMutation) EdgeCleared ¶
func (m *CareerSkillGroupMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CareerSkillGroupMutation) Field ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) FieldCleared ¶
func (m *CareerSkillGroupMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CareerSkillGroupMutation) Fields ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) ID ¶
func (m *CareerSkillGroupMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*CareerSkillGroupMutation) IDs ¶
func (m *CareerSkillGroupMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*CareerSkillGroupMutation) Label ¶
func (m *CareerSkillGroupMutation) Label() (r string, exists bool)
Label returns the value of the "label" field in the mutation.
func (*CareerSkillGroupMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the CareerSkillGroup entity. If the CareerSkillGroup object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) OldLabel ¶
func (m *CareerSkillGroupMutation) OldLabel(ctx context.Context) (v string, err error)
OldLabel returns the old "label" field's value of the CareerSkillGroup entity. If the CareerSkillGroup object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerSkillGroupMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the CareerSkillGroup entity. If the CareerSkillGroup object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerSkillGroupMutation) Op ¶
func (m *CareerSkillGroupMutation) Op() Op
Op returns the operation name.
func (*CareerSkillGroupMutation) RemoveCareerSkillIDs ¶
func (m *CareerSkillGroupMutation) RemoveCareerSkillIDs(ids ...int)
RemoveCareerSkillIDs removes the "careerSkills" edge to the CareerSkill entity by IDs.
func (*CareerSkillGroupMutation) RemovedCareerSkillsIDs ¶
func (m *CareerSkillGroupMutation) RemovedCareerSkillsIDs() (ids []int)
RemovedCareerSkills returns the removed IDs of the "careerSkills" edge to the CareerSkill entity.
func (*CareerSkillGroupMutation) RemovedEdges ¶
func (m *CareerSkillGroupMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CareerSkillGroupMutation) RemovedIDs ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) ResetCareer ¶
func (m *CareerSkillGroupMutation) ResetCareer()
ResetCareer resets all changes to the "career" edge.
func (*CareerSkillGroupMutation) ResetCareerSkills ¶
func (m *CareerSkillGroupMutation) ResetCareerSkills()
ResetCareerSkills resets all changes to the "careerSkills" edge.
func (*CareerSkillGroupMutation) ResetCreateTime ¶
func (m *CareerSkillGroupMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*CareerSkillGroupMutation) ResetEdge ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) ResetField ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) ResetLabel ¶
func (m *CareerSkillGroupMutation) ResetLabel()
ResetLabel resets all changes to the "label" field.
func (*CareerSkillGroupMutation) ResetUpdateTime ¶
func (m *CareerSkillGroupMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*CareerSkillGroupMutation) SetCareerID ¶
func (m *CareerSkillGroupMutation) SetCareerID(id int)
SetCareerID sets the "career" edge to the UserCareer entity by id.
func (*CareerSkillGroupMutation) SetCreateTime ¶
func (m *CareerSkillGroupMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*CareerSkillGroupMutation) SetField ¶
func (m *CareerSkillGroupMutation) 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 (*CareerSkillGroupMutation) SetLabel ¶
func (m *CareerSkillGroupMutation) SetLabel(s string)
SetLabel sets the "label" field.
func (*CareerSkillGroupMutation) SetOp ¶
func (m *CareerSkillGroupMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CareerSkillGroupMutation) SetUpdateTime ¶
func (m *CareerSkillGroupMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (CareerSkillGroupMutation) Tx ¶
func (m CareerSkillGroupMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CareerSkillGroupMutation) Type ¶
func (m *CareerSkillGroupMutation) Type() string
Type returns the node type of this mutation (CareerSkillGroup).
func (*CareerSkillGroupMutation) UpdateTime ¶
func (m *CareerSkillGroupMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*CareerSkillGroupMutation) Where ¶
func (m *CareerSkillGroupMutation) Where(ps ...predicate.CareerSkillGroup)
Where appends a list predicates to the CareerSkillGroupMutation builder.
func (*CareerSkillGroupMutation) WhereP ¶
func (m *CareerSkillGroupMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CareerSkillGroupMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CareerSkillGroupQuery ¶
type CareerSkillGroupQuery struct {
// contains filtered or unexported fields
}
CareerSkillGroupQuery is the builder for querying CareerSkillGroup entities.
func (*CareerSkillGroupQuery) Aggregate ¶
func (csgq *CareerSkillGroupQuery) Aggregate(fns ...AggregateFunc) *CareerSkillGroupSelect
Aggregate returns a CareerSkillGroupSelect configured with the given aggregations.
func (*CareerSkillGroupQuery) All ¶
func (csgq *CareerSkillGroupQuery) All(ctx context.Context) ([]*CareerSkillGroup, error)
All executes the query and returns a list of CareerSkillGroups.
func (*CareerSkillGroupQuery) AllX ¶
func (csgq *CareerSkillGroupQuery) AllX(ctx context.Context) []*CareerSkillGroup
AllX is like All, but panics if an error occurs.
func (*CareerSkillGroupQuery) Clone ¶
func (csgq *CareerSkillGroupQuery) Clone() *CareerSkillGroupQuery
Clone returns a duplicate of the CareerSkillGroupQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CareerSkillGroupQuery) Count ¶
func (csgq *CareerSkillGroupQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CareerSkillGroupQuery) CountX ¶
func (csgq *CareerSkillGroupQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CareerSkillGroupQuery) Exist ¶
func (csgq *CareerSkillGroupQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CareerSkillGroupQuery) ExistX ¶
func (csgq *CareerSkillGroupQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CareerSkillGroupQuery) First ¶
func (csgq *CareerSkillGroupQuery) First(ctx context.Context) (*CareerSkillGroup, error)
First returns the first CareerSkillGroup entity from the query. Returns a *NotFoundError when no CareerSkillGroup was found.
func (*CareerSkillGroupQuery) FirstID ¶
func (csgq *CareerSkillGroupQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first CareerSkillGroup ID from the query. Returns a *NotFoundError when no CareerSkillGroup ID was found.
func (*CareerSkillGroupQuery) FirstIDX ¶
func (csgq *CareerSkillGroupQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*CareerSkillGroupQuery) FirstX ¶
func (csgq *CareerSkillGroupQuery) FirstX(ctx context.Context) *CareerSkillGroup
FirstX is like First, but panics if an error occurs.
func (*CareerSkillGroupQuery) GroupBy ¶
func (csgq *CareerSkillGroupQuery) GroupBy(field string, fields ...string) *CareerSkillGroupGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.CareerSkillGroup.Query(). GroupBy(careerskillgroup.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CareerSkillGroupQuery) IDs ¶
func (csgq *CareerSkillGroupQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of CareerSkillGroup IDs.
func (*CareerSkillGroupQuery) IDsX ¶
func (csgq *CareerSkillGroupQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*CareerSkillGroupQuery) Limit ¶
func (csgq *CareerSkillGroupQuery) Limit(limit int) *CareerSkillGroupQuery
Limit the number of records to be returned by this query.
func (*CareerSkillGroupQuery) Offset ¶
func (csgq *CareerSkillGroupQuery) Offset(offset int) *CareerSkillGroupQuery
Offset to start from.
func (*CareerSkillGroupQuery) Only ¶
func (csgq *CareerSkillGroupQuery) Only(ctx context.Context) (*CareerSkillGroup, error)
Only returns a single CareerSkillGroup entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one CareerSkillGroup entity is found. Returns a *NotFoundError when no CareerSkillGroup entities are found.
func (*CareerSkillGroupQuery) OnlyID ¶
func (csgq *CareerSkillGroupQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only CareerSkillGroup ID in the query. Returns a *NotSingularError when more than one CareerSkillGroup ID is found. Returns a *NotFoundError when no entities are found.
func (*CareerSkillGroupQuery) OnlyIDX ¶
func (csgq *CareerSkillGroupQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CareerSkillGroupQuery) OnlyX ¶
func (csgq *CareerSkillGroupQuery) OnlyX(ctx context.Context) *CareerSkillGroup
OnlyX is like Only, but panics if an error occurs.
func (*CareerSkillGroupQuery) Order ¶
func (csgq *CareerSkillGroupQuery) Order(o ...careerskillgroup.OrderOption) *CareerSkillGroupQuery
Order specifies how the records should be ordered.
func (*CareerSkillGroupQuery) QueryCareer ¶
func (csgq *CareerSkillGroupQuery) QueryCareer() *UserCareerQuery
QueryCareer chains the current query on the "career" edge.
func (*CareerSkillGroupQuery) QueryCareerSkills ¶
func (csgq *CareerSkillGroupQuery) QueryCareerSkills() *CareerSkillQuery
QueryCareerSkills chains the current query on the "careerSkills" edge.
func (*CareerSkillGroupQuery) Select ¶
func (csgq *CareerSkillGroupQuery) Select(fields ...string) *CareerSkillGroupSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.CareerSkillGroup.Query(). Select(careerskillgroup.FieldCreateTime). Scan(ctx, &v)
func (*CareerSkillGroupQuery) Unique ¶
func (csgq *CareerSkillGroupQuery) Unique(unique bool) *CareerSkillGroupQuery
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 (*CareerSkillGroupQuery) Where ¶
func (csgq *CareerSkillGroupQuery) Where(ps ...predicate.CareerSkillGroup) *CareerSkillGroupQuery
Where adds a new predicate for the CareerSkillGroupQuery builder.
func (*CareerSkillGroupQuery) WithCareer ¶
func (csgq *CareerSkillGroupQuery) WithCareer(opts ...func(*UserCareerQuery)) *CareerSkillGroupQuery
WithCareer tells the query-builder to eager-load the nodes that are connected to the "career" edge. The optional arguments are used to configure the query builder of the edge.
func (*CareerSkillGroupQuery) WithCareerSkills ¶
func (csgq *CareerSkillGroupQuery) WithCareerSkills(opts ...func(*CareerSkillQuery)) *CareerSkillGroupQuery
WithCareerSkills tells the query-builder to eager-load the nodes that are connected to the "careerSkills" edge. The optional arguments are used to configure the query builder of the edge.
type CareerSkillGroupSelect ¶
type CareerSkillGroupSelect struct { *CareerSkillGroupQuery // contains filtered or unexported fields }
CareerSkillGroupSelect is the builder for selecting fields of CareerSkillGroup entities.
func (*CareerSkillGroupSelect) Aggregate ¶
func (csgs *CareerSkillGroupSelect) Aggregate(fns ...AggregateFunc) *CareerSkillGroupSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CareerSkillGroupSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*CareerSkillGroupSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CareerSkillGroupSelect) Scan ¶
func (csgs *CareerSkillGroupSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CareerSkillGroupSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CareerSkillGroupUpdate ¶
type CareerSkillGroupUpdate struct {
// contains filtered or unexported fields
}
CareerSkillGroupUpdate is the builder for updating CareerSkillGroup entities.
func (*CareerSkillGroupUpdate) AddCareerSkillIDs ¶
func (csgu *CareerSkillGroupUpdate) AddCareerSkillIDs(ids ...int) *CareerSkillGroupUpdate
AddCareerSkillIDs adds the "careerSkills" edge to the CareerSkill entity by IDs.
func (*CareerSkillGroupUpdate) AddCareerSkills ¶
func (csgu *CareerSkillGroupUpdate) AddCareerSkills(c ...*CareerSkill) *CareerSkillGroupUpdate
AddCareerSkills adds the "careerSkills" edges to the CareerSkill entity.
func (*CareerSkillGroupUpdate) ClearCareer ¶
func (csgu *CareerSkillGroupUpdate) ClearCareer() *CareerSkillGroupUpdate
ClearCareer clears the "career" edge to the UserCareer entity.
func (*CareerSkillGroupUpdate) ClearCareerSkills ¶
func (csgu *CareerSkillGroupUpdate) ClearCareerSkills() *CareerSkillGroupUpdate
ClearCareerSkills clears all "careerSkills" edges to the CareerSkill entity.
func (*CareerSkillGroupUpdate) Exec ¶
func (csgu *CareerSkillGroupUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillGroupUpdate) ExecX ¶
func (csgu *CareerSkillGroupUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillGroupUpdate) Mutation ¶
func (csgu *CareerSkillGroupUpdate) Mutation() *CareerSkillGroupMutation
Mutation returns the CareerSkillGroupMutation object of the builder.
func (*CareerSkillGroupUpdate) RemoveCareerSkillIDs ¶
func (csgu *CareerSkillGroupUpdate) RemoveCareerSkillIDs(ids ...int) *CareerSkillGroupUpdate
RemoveCareerSkillIDs removes the "careerSkills" edge to CareerSkill entities by IDs.
func (*CareerSkillGroupUpdate) RemoveCareerSkills ¶
func (csgu *CareerSkillGroupUpdate) RemoveCareerSkills(c ...*CareerSkill) *CareerSkillGroupUpdate
RemoveCareerSkills removes "careerSkills" edges to CareerSkill entities.
func (*CareerSkillGroupUpdate) Save ¶
func (csgu *CareerSkillGroupUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CareerSkillGroupUpdate) SaveX ¶
func (csgu *CareerSkillGroupUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CareerSkillGroupUpdate) SetCareer ¶
func (csgu *CareerSkillGroupUpdate) SetCareer(u *UserCareer) *CareerSkillGroupUpdate
SetCareer sets the "career" edge to the UserCareer entity.
func (*CareerSkillGroupUpdate) SetCareerID ¶
func (csgu *CareerSkillGroupUpdate) SetCareerID(id int) *CareerSkillGroupUpdate
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*CareerSkillGroupUpdate) SetLabel ¶
func (csgu *CareerSkillGroupUpdate) SetLabel(s string) *CareerSkillGroupUpdate
SetLabel sets the "label" field.
func (*CareerSkillGroupUpdate) SetUpdateTime ¶
func (csgu *CareerSkillGroupUpdate) SetUpdateTime(t time.Time) *CareerSkillGroupUpdate
SetUpdateTime sets the "update_time" field.
func (*CareerSkillGroupUpdate) Where ¶
func (csgu *CareerSkillGroupUpdate) Where(ps ...predicate.CareerSkillGroup) *CareerSkillGroupUpdate
Where appends a list predicates to the CareerSkillGroupUpdate builder.
type CareerSkillGroupUpdateOne ¶
type CareerSkillGroupUpdateOne struct {
// contains filtered or unexported fields
}
CareerSkillGroupUpdateOne is the builder for updating a single CareerSkillGroup entity.
func (*CareerSkillGroupUpdateOne) AddCareerSkillIDs ¶
func (csguo *CareerSkillGroupUpdateOne) AddCareerSkillIDs(ids ...int) *CareerSkillGroupUpdateOne
AddCareerSkillIDs adds the "careerSkills" edge to the CareerSkill entity by IDs.
func (*CareerSkillGroupUpdateOne) AddCareerSkills ¶
func (csguo *CareerSkillGroupUpdateOne) AddCareerSkills(c ...*CareerSkill) *CareerSkillGroupUpdateOne
AddCareerSkills adds the "careerSkills" edges to the CareerSkill entity.
func (*CareerSkillGroupUpdateOne) ClearCareer ¶
func (csguo *CareerSkillGroupUpdateOne) ClearCareer() *CareerSkillGroupUpdateOne
ClearCareer clears the "career" edge to the UserCareer entity.
func (*CareerSkillGroupUpdateOne) ClearCareerSkills ¶
func (csguo *CareerSkillGroupUpdateOne) ClearCareerSkills() *CareerSkillGroupUpdateOne
ClearCareerSkills clears all "careerSkills" edges to the CareerSkill entity.
func (*CareerSkillGroupUpdateOne) Exec ¶
func (csguo *CareerSkillGroupUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CareerSkillGroupUpdateOne) ExecX ¶
func (csguo *CareerSkillGroupUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillGroupUpdateOne) Mutation ¶
func (csguo *CareerSkillGroupUpdateOne) Mutation() *CareerSkillGroupMutation
Mutation returns the CareerSkillGroupMutation object of the builder.
func (*CareerSkillGroupUpdateOne) RemoveCareerSkillIDs ¶
func (csguo *CareerSkillGroupUpdateOne) RemoveCareerSkillIDs(ids ...int) *CareerSkillGroupUpdateOne
RemoveCareerSkillIDs removes the "careerSkills" edge to CareerSkill entities by IDs.
func (*CareerSkillGroupUpdateOne) RemoveCareerSkills ¶
func (csguo *CareerSkillGroupUpdateOne) RemoveCareerSkills(c ...*CareerSkill) *CareerSkillGroupUpdateOne
RemoveCareerSkills removes "careerSkills" edges to CareerSkill entities.
func (*CareerSkillGroupUpdateOne) Save ¶
func (csguo *CareerSkillGroupUpdateOne) Save(ctx context.Context) (*CareerSkillGroup, error)
Save executes the query and returns the updated CareerSkillGroup entity.
func (*CareerSkillGroupUpdateOne) SaveX ¶
func (csguo *CareerSkillGroupUpdateOne) SaveX(ctx context.Context) *CareerSkillGroup
SaveX is like Save, but panics if an error occurs.
func (*CareerSkillGroupUpdateOne) Select ¶
func (csguo *CareerSkillGroupUpdateOne) Select(field string, fields ...string) *CareerSkillGroupUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CareerSkillGroupUpdateOne) SetCareer ¶
func (csguo *CareerSkillGroupUpdateOne) SetCareer(u *UserCareer) *CareerSkillGroupUpdateOne
SetCareer sets the "career" edge to the UserCareer entity.
func (*CareerSkillGroupUpdateOne) SetCareerID ¶
func (csguo *CareerSkillGroupUpdateOne) SetCareerID(id int) *CareerSkillGroupUpdateOne
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*CareerSkillGroupUpdateOne) SetLabel ¶
func (csguo *CareerSkillGroupUpdateOne) SetLabel(s string) *CareerSkillGroupUpdateOne
SetLabel sets the "label" field.
func (*CareerSkillGroupUpdateOne) SetUpdateTime ¶
func (csguo *CareerSkillGroupUpdateOne) SetUpdateTime(t time.Time) *CareerSkillGroupUpdateOne
SetUpdateTime sets the "update_time" field.
func (*CareerSkillGroupUpdateOne) Where ¶
func (csguo *CareerSkillGroupUpdateOne) Where(ps ...predicate.CareerSkillGroup) *CareerSkillGroupUpdateOne
Where appends a list predicates to the CareerSkillGroupUpdate builder.
type CareerSkillGroupUpsert ¶
CareerSkillGroupUpsert is the "OnConflict" setter.
func (*CareerSkillGroupUpsert) SetLabel ¶
func (u *CareerSkillGroupUpsert) SetLabel(v string) *CareerSkillGroupUpsert
SetLabel sets the "label" field.
func (*CareerSkillGroupUpsert) SetUpdateTime ¶
func (u *CareerSkillGroupUpsert) SetUpdateTime(v time.Time) *CareerSkillGroupUpsert
SetUpdateTime sets the "update_time" field.
func (*CareerSkillGroupUpsert) UpdateLabel ¶
func (u *CareerSkillGroupUpsert) UpdateLabel() *CareerSkillGroupUpsert
UpdateLabel sets the "label" field to the value that was provided on create.
func (*CareerSkillGroupUpsert) UpdateUpdateTime ¶
func (u *CareerSkillGroupUpsert) UpdateUpdateTime() *CareerSkillGroupUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type CareerSkillGroupUpsertBulk ¶
type CareerSkillGroupUpsertBulk struct {
// contains filtered or unexported fields
}
CareerSkillGroupUpsertBulk is the builder for "upsert"-ing a bulk of CareerSkillGroup nodes.
func (*CareerSkillGroupUpsertBulk) DoNothing ¶
func (u *CareerSkillGroupUpsertBulk) DoNothing() *CareerSkillGroupUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CareerSkillGroupUpsertBulk) Exec ¶
func (u *CareerSkillGroupUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillGroupUpsertBulk) ExecX ¶
func (u *CareerSkillGroupUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillGroupUpsertBulk) Ignore ¶
func (u *CareerSkillGroupUpsertBulk) Ignore() *CareerSkillGroupUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CareerSkillGroup.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CareerSkillGroupUpsertBulk) SetLabel ¶
func (u *CareerSkillGroupUpsertBulk) SetLabel(v string) *CareerSkillGroupUpsertBulk
SetLabel sets the "label" field.
func (*CareerSkillGroupUpsertBulk) SetUpdateTime ¶
func (u *CareerSkillGroupUpsertBulk) SetUpdateTime(v time.Time) *CareerSkillGroupUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*CareerSkillGroupUpsertBulk) Update ¶
func (u *CareerSkillGroupUpsertBulk) Update(set func(*CareerSkillGroupUpsert)) *CareerSkillGroupUpsertBulk
Update allows overriding fields `UPDATE` values. See the CareerSkillGroupCreateBulk.OnConflict documentation for more info.
func (*CareerSkillGroupUpsertBulk) UpdateLabel ¶
func (u *CareerSkillGroupUpsertBulk) UpdateLabel() *CareerSkillGroupUpsertBulk
UpdateLabel sets the "label" field to the value that was provided on create.
func (*CareerSkillGroupUpsertBulk) UpdateNewValues ¶
func (u *CareerSkillGroupUpsertBulk) UpdateNewValues() *CareerSkillGroupUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CareerSkillGroup.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*CareerSkillGroupUpsertBulk) UpdateUpdateTime ¶
func (u *CareerSkillGroupUpsertBulk) UpdateUpdateTime() *CareerSkillGroupUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type CareerSkillGroupUpsertOne ¶
type CareerSkillGroupUpsertOne struct {
// contains filtered or unexported fields
}
CareerSkillGroupUpsertOne is the builder for "upsert"-ing
one CareerSkillGroup node.
func (*CareerSkillGroupUpsertOne) DoNothing ¶
func (u *CareerSkillGroupUpsertOne) DoNothing() *CareerSkillGroupUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CareerSkillGroupUpsertOne) Exec ¶
func (u *CareerSkillGroupUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillGroupUpsertOne) ExecX ¶
func (u *CareerSkillGroupUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillGroupUpsertOne) ID ¶
func (u *CareerSkillGroupUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*CareerSkillGroupUpsertOne) IDX ¶
func (u *CareerSkillGroupUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*CareerSkillGroupUpsertOne) Ignore ¶
func (u *CareerSkillGroupUpsertOne) Ignore() *CareerSkillGroupUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CareerSkillGroup.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CareerSkillGroupUpsertOne) SetLabel ¶
func (u *CareerSkillGroupUpsertOne) SetLabel(v string) *CareerSkillGroupUpsertOne
SetLabel sets the "label" field.
func (*CareerSkillGroupUpsertOne) SetUpdateTime ¶
func (u *CareerSkillGroupUpsertOne) SetUpdateTime(v time.Time) *CareerSkillGroupUpsertOne
SetUpdateTime sets the "update_time" field.
func (*CareerSkillGroupUpsertOne) Update ¶
func (u *CareerSkillGroupUpsertOne) Update(set func(*CareerSkillGroupUpsert)) *CareerSkillGroupUpsertOne
Update allows overriding fields `UPDATE` values. See the CareerSkillGroupCreate.OnConflict documentation for more info.
func (*CareerSkillGroupUpsertOne) UpdateLabel ¶
func (u *CareerSkillGroupUpsertOne) UpdateLabel() *CareerSkillGroupUpsertOne
UpdateLabel sets the "label" field to the value that was provided on create.
func (*CareerSkillGroupUpsertOne) UpdateNewValues ¶
func (u *CareerSkillGroupUpsertOne) UpdateNewValues() *CareerSkillGroupUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CareerSkillGroup.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*CareerSkillGroupUpsertOne) UpdateUpdateTime ¶
func (u *CareerSkillGroupUpsertOne) UpdateUpdateTime() *CareerSkillGroupUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type CareerSkillGroups ¶
type CareerSkillGroups []*CareerSkillGroup
CareerSkillGroups is a parsable slice of CareerSkillGroup.
type CareerSkillMutation ¶
type CareerSkillMutation struct {
// contains filtered or unexported fields
}
CareerSkillMutation represents an operation that mutates the CareerSkill nodes in the graph.
func (*CareerSkillMutation) AddField ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) AddedEdges ¶
func (m *CareerSkillMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CareerSkillMutation) AddedField ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) AddedFields ¶
func (m *CareerSkillMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CareerSkillMutation) AddedIDs ¶
func (m *CareerSkillMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CareerSkillMutation) CareerSkillGroupCleared ¶
func (m *CareerSkillMutation) CareerSkillGroupCleared() bool
CareerSkillGroupCleared reports if the "careerSkillGroup" edge to the CareerSkillGroup entity was cleared.
func (*CareerSkillMutation) CareerSkillGroupID ¶
func (m *CareerSkillMutation) CareerSkillGroupID() (id int, exists bool)
CareerSkillGroupID returns the "careerSkillGroup" edge ID in the mutation.
func (*CareerSkillMutation) CareerSkillGroupIDs ¶
func (m *CareerSkillMutation) CareerSkillGroupIDs() (ids []int)
CareerSkillGroupIDs returns the "careerSkillGroup" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CareerSkillGroupID instead. It exists only for internal usage by the builders.
func (*CareerSkillMutation) ClearCareerSkillGroup ¶
func (m *CareerSkillMutation) ClearCareerSkillGroup()
ClearCareerSkillGroup clears the "careerSkillGroup" edge to the CareerSkillGroup entity.
func (*CareerSkillMutation) ClearEdge ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) ClearField ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) ClearSkill ¶
func (m *CareerSkillMutation) ClearSkill()
ClearSkill clears the "skill" edge to the Skill entity.
func (*CareerSkillMutation) ClearVersion ¶
func (m *CareerSkillMutation) ClearVersion()
ClearVersion clears the value of the "version" field.
func (*CareerSkillMutation) ClearedEdges ¶
func (m *CareerSkillMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CareerSkillMutation) ClearedFields ¶
func (m *CareerSkillMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CareerSkillMutation) Client ¶
func (m CareerSkillMutation) 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 (*CareerSkillMutation) CreateTime ¶
func (m *CareerSkillMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*CareerSkillMutation) EdgeCleared ¶
func (m *CareerSkillMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CareerSkillMutation) Field ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) FieldCleared ¶
func (m *CareerSkillMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CareerSkillMutation) Fields ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) ID ¶
func (m *CareerSkillMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*CareerSkillMutation) IDs ¶
func (m *CareerSkillMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*CareerSkillMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the CareerSkill entity. If the CareerSkill object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerSkillMutation) 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 (*CareerSkillMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the CareerSkill entity. If the CareerSkill object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerSkillMutation) OldVersion ¶
func (m *CareerSkillMutation) OldVersion(ctx context.Context) (v *string, err error)
OldVersion returns the old "version" field's value of the CareerSkill entity. If the CareerSkill object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerSkillMutation) Op ¶
func (m *CareerSkillMutation) Op() Op
Op returns the operation name.
func (*CareerSkillMutation) RemovedEdges ¶
func (m *CareerSkillMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CareerSkillMutation) RemovedIDs ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) ResetCareerSkillGroup ¶
func (m *CareerSkillMutation) ResetCareerSkillGroup()
ResetCareerSkillGroup resets all changes to the "careerSkillGroup" edge.
func (*CareerSkillMutation) ResetCreateTime ¶
func (m *CareerSkillMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*CareerSkillMutation) ResetEdge ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) ResetField ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) ResetSkill ¶
func (m *CareerSkillMutation) ResetSkill()
ResetSkill resets all changes to the "skill" edge.
func (*CareerSkillMutation) ResetUpdateTime ¶
func (m *CareerSkillMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*CareerSkillMutation) ResetVersion ¶
func (m *CareerSkillMutation) ResetVersion()
ResetVersion resets all changes to the "version" field.
func (*CareerSkillMutation) SetCareerSkillGroupID ¶
func (m *CareerSkillMutation) SetCareerSkillGroupID(id int)
SetCareerSkillGroupID sets the "careerSkillGroup" edge to the CareerSkillGroup entity by id.
func (*CareerSkillMutation) SetCreateTime ¶
func (m *CareerSkillMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*CareerSkillMutation) SetField ¶
func (m *CareerSkillMutation) 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 (*CareerSkillMutation) SetOp ¶
func (m *CareerSkillMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CareerSkillMutation) SetSkillID ¶
func (m *CareerSkillMutation) SetSkillID(id int)
SetSkillID sets the "skill" edge to the Skill entity by id.
func (*CareerSkillMutation) SetUpdateTime ¶
func (m *CareerSkillMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*CareerSkillMutation) SetVersion ¶
func (m *CareerSkillMutation) SetVersion(s string)
SetVersion sets the "version" field.
func (*CareerSkillMutation) SkillCleared ¶
func (m *CareerSkillMutation) SkillCleared() bool
SkillCleared reports if the "skill" edge to the Skill entity was cleared.
func (*CareerSkillMutation) SkillID ¶
func (m *CareerSkillMutation) SkillID() (id int, exists bool)
SkillID returns the "skill" edge ID in the mutation.
func (*CareerSkillMutation) SkillIDs ¶
func (m *CareerSkillMutation) SkillIDs() (ids []int)
SkillIDs returns the "skill" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SkillID instead. It exists only for internal usage by the builders.
func (CareerSkillMutation) Tx ¶
func (m CareerSkillMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CareerSkillMutation) Type ¶
func (m *CareerSkillMutation) Type() string
Type returns the node type of this mutation (CareerSkill).
func (*CareerSkillMutation) UpdateTime ¶
func (m *CareerSkillMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*CareerSkillMutation) Version ¶
func (m *CareerSkillMutation) Version() (r string, exists bool)
Version returns the value of the "version" field in the mutation.
func (*CareerSkillMutation) VersionCleared ¶
func (m *CareerSkillMutation) VersionCleared() bool
VersionCleared returns if the "version" field was cleared in this mutation.
func (*CareerSkillMutation) Where ¶
func (m *CareerSkillMutation) Where(ps ...predicate.CareerSkill)
Where appends a list predicates to the CareerSkillMutation builder.
func (*CareerSkillMutation) WhereP ¶
func (m *CareerSkillMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CareerSkillMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CareerSkillQuery ¶
type CareerSkillQuery struct {
// contains filtered or unexported fields
}
CareerSkillQuery is the builder for querying CareerSkill entities.
func (*CareerSkillQuery) Aggregate ¶
func (csq *CareerSkillQuery) Aggregate(fns ...AggregateFunc) *CareerSkillSelect
Aggregate returns a CareerSkillSelect configured with the given aggregations.
func (*CareerSkillQuery) All ¶
func (csq *CareerSkillQuery) All(ctx context.Context) ([]*CareerSkill, error)
All executes the query and returns a list of CareerSkills.
func (*CareerSkillQuery) AllX ¶
func (csq *CareerSkillQuery) AllX(ctx context.Context) []*CareerSkill
AllX is like All, but panics if an error occurs.
func (*CareerSkillQuery) Clone ¶
func (csq *CareerSkillQuery) Clone() *CareerSkillQuery
Clone returns a duplicate of the CareerSkillQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CareerSkillQuery) Count ¶
func (csq *CareerSkillQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CareerSkillQuery) CountX ¶
func (csq *CareerSkillQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CareerSkillQuery) Exist ¶
func (csq *CareerSkillQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CareerSkillQuery) ExistX ¶
func (csq *CareerSkillQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CareerSkillQuery) First ¶
func (csq *CareerSkillQuery) First(ctx context.Context) (*CareerSkill, error)
First returns the first CareerSkill entity from the query. Returns a *NotFoundError when no CareerSkill was found.
func (*CareerSkillQuery) FirstID ¶
func (csq *CareerSkillQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first CareerSkill ID from the query. Returns a *NotFoundError when no CareerSkill ID was found.
func (*CareerSkillQuery) FirstIDX ¶
func (csq *CareerSkillQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*CareerSkillQuery) FirstX ¶
func (csq *CareerSkillQuery) FirstX(ctx context.Context) *CareerSkill
FirstX is like First, but panics if an error occurs.
func (*CareerSkillQuery) GroupBy ¶
func (csq *CareerSkillQuery) GroupBy(field string, fields ...string) *CareerSkillGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.CareerSkill.Query(). GroupBy(careerskill.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CareerSkillQuery) IDs ¶
func (csq *CareerSkillQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of CareerSkill IDs.
func (*CareerSkillQuery) IDsX ¶
func (csq *CareerSkillQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*CareerSkillQuery) Limit ¶
func (csq *CareerSkillQuery) Limit(limit int) *CareerSkillQuery
Limit the number of records to be returned by this query.
func (*CareerSkillQuery) Offset ¶
func (csq *CareerSkillQuery) Offset(offset int) *CareerSkillQuery
Offset to start from.
func (*CareerSkillQuery) Only ¶
func (csq *CareerSkillQuery) Only(ctx context.Context) (*CareerSkill, error)
Only returns a single CareerSkill entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one CareerSkill entity is found. Returns a *NotFoundError when no CareerSkill entities are found.
func (*CareerSkillQuery) OnlyID ¶
func (csq *CareerSkillQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only CareerSkill ID in the query. Returns a *NotSingularError when more than one CareerSkill ID is found. Returns a *NotFoundError when no entities are found.
func (*CareerSkillQuery) OnlyIDX ¶
func (csq *CareerSkillQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CareerSkillQuery) OnlyX ¶
func (csq *CareerSkillQuery) OnlyX(ctx context.Context) *CareerSkill
OnlyX is like Only, but panics if an error occurs.
func (*CareerSkillQuery) Order ¶
func (csq *CareerSkillQuery) Order(o ...careerskill.OrderOption) *CareerSkillQuery
Order specifies how the records should be ordered.
func (*CareerSkillQuery) QueryCareerSkillGroup ¶
func (csq *CareerSkillQuery) QueryCareerSkillGroup() *CareerSkillGroupQuery
QueryCareerSkillGroup chains the current query on the "careerSkillGroup" edge.
func (*CareerSkillQuery) QuerySkill ¶
func (csq *CareerSkillQuery) QuerySkill() *SkillQuery
QuerySkill chains the current query on the "skill" edge.
func (*CareerSkillQuery) Select ¶
func (csq *CareerSkillQuery) Select(fields ...string) *CareerSkillSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.CareerSkill.Query(). Select(careerskill.FieldCreateTime). Scan(ctx, &v)
func (*CareerSkillQuery) Unique ¶
func (csq *CareerSkillQuery) Unique(unique bool) *CareerSkillQuery
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 (*CareerSkillQuery) Where ¶
func (csq *CareerSkillQuery) Where(ps ...predicate.CareerSkill) *CareerSkillQuery
Where adds a new predicate for the CareerSkillQuery builder.
func (*CareerSkillQuery) WithCareerSkillGroup ¶
func (csq *CareerSkillQuery) WithCareerSkillGroup(opts ...func(*CareerSkillGroupQuery)) *CareerSkillQuery
WithCareerSkillGroup tells the query-builder to eager-load the nodes that are connected to the "careerSkillGroup" edge. The optional arguments are used to configure the query builder of the edge.
func (*CareerSkillQuery) WithSkill ¶
func (csq *CareerSkillQuery) WithSkill(opts ...func(*SkillQuery)) *CareerSkillQuery
WithSkill tells the query-builder to eager-load the nodes that are connected to the "skill" edge. The optional arguments are used to configure the query builder of the edge.
type CareerSkillSelect ¶
type CareerSkillSelect struct { *CareerSkillQuery // contains filtered or unexported fields }
CareerSkillSelect is the builder for selecting fields of CareerSkill entities.
func (*CareerSkillSelect) Aggregate ¶
func (css *CareerSkillSelect) Aggregate(fns ...AggregateFunc) *CareerSkillSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CareerSkillSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CareerSkillSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CareerSkillSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CareerSkillSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CareerSkillSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CareerSkillSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CareerSkillSelect) Scan ¶
func (css *CareerSkillSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CareerSkillSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CareerSkillUpdate ¶
type CareerSkillUpdate struct {
// contains filtered or unexported fields
}
CareerSkillUpdate is the builder for updating CareerSkill entities.
func (*CareerSkillUpdate) ClearCareerSkillGroup ¶
func (csu *CareerSkillUpdate) ClearCareerSkillGroup() *CareerSkillUpdate
ClearCareerSkillGroup clears the "careerSkillGroup" edge to the CareerSkillGroup entity.
func (*CareerSkillUpdate) ClearSkill ¶
func (csu *CareerSkillUpdate) ClearSkill() *CareerSkillUpdate
ClearSkill clears the "skill" edge to the Skill entity.
func (*CareerSkillUpdate) ClearVersion ¶
func (csu *CareerSkillUpdate) ClearVersion() *CareerSkillUpdate
ClearVersion clears the value of the "version" field.
func (*CareerSkillUpdate) Exec ¶
func (csu *CareerSkillUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillUpdate) ExecX ¶
func (csu *CareerSkillUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillUpdate) Mutation ¶
func (csu *CareerSkillUpdate) Mutation() *CareerSkillMutation
Mutation returns the CareerSkillMutation object of the builder.
func (*CareerSkillUpdate) Save ¶
func (csu *CareerSkillUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CareerSkillUpdate) SaveX ¶
func (csu *CareerSkillUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CareerSkillUpdate) SetCareerSkillGroup ¶
func (csu *CareerSkillUpdate) SetCareerSkillGroup(c *CareerSkillGroup) *CareerSkillUpdate
SetCareerSkillGroup sets the "careerSkillGroup" edge to the CareerSkillGroup entity.
func (*CareerSkillUpdate) SetCareerSkillGroupID ¶
func (csu *CareerSkillUpdate) SetCareerSkillGroupID(id int) *CareerSkillUpdate
SetCareerSkillGroupID sets the "careerSkillGroup" edge to the CareerSkillGroup entity by ID.
func (*CareerSkillUpdate) SetNillableVersion ¶
func (csu *CareerSkillUpdate) SetNillableVersion(s *string) *CareerSkillUpdate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*CareerSkillUpdate) SetSkill ¶
func (csu *CareerSkillUpdate) SetSkill(s *Skill) *CareerSkillUpdate
SetSkill sets the "skill" edge to the Skill entity.
func (*CareerSkillUpdate) SetSkillID ¶
func (csu *CareerSkillUpdate) SetSkillID(id int) *CareerSkillUpdate
SetSkillID sets the "skill" edge to the Skill entity by ID.
func (*CareerSkillUpdate) SetUpdateTime ¶
func (csu *CareerSkillUpdate) SetUpdateTime(t time.Time) *CareerSkillUpdate
SetUpdateTime sets the "update_time" field.
func (*CareerSkillUpdate) SetVersion ¶
func (csu *CareerSkillUpdate) SetVersion(s string) *CareerSkillUpdate
SetVersion sets the "version" field.
func (*CareerSkillUpdate) Where ¶
func (csu *CareerSkillUpdate) Where(ps ...predicate.CareerSkill) *CareerSkillUpdate
Where appends a list predicates to the CareerSkillUpdate builder.
type CareerSkillUpdateOne ¶
type CareerSkillUpdateOne struct {
// contains filtered or unexported fields
}
CareerSkillUpdateOne is the builder for updating a single CareerSkill entity.
func (*CareerSkillUpdateOne) ClearCareerSkillGroup ¶
func (csuo *CareerSkillUpdateOne) ClearCareerSkillGroup() *CareerSkillUpdateOne
ClearCareerSkillGroup clears the "careerSkillGroup" edge to the CareerSkillGroup entity.
func (*CareerSkillUpdateOne) ClearSkill ¶
func (csuo *CareerSkillUpdateOne) ClearSkill() *CareerSkillUpdateOne
ClearSkill clears the "skill" edge to the Skill entity.
func (*CareerSkillUpdateOne) ClearVersion ¶
func (csuo *CareerSkillUpdateOne) ClearVersion() *CareerSkillUpdateOne
ClearVersion clears the value of the "version" field.
func (*CareerSkillUpdateOne) Exec ¶
func (csuo *CareerSkillUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CareerSkillUpdateOne) ExecX ¶
func (csuo *CareerSkillUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillUpdateOne) Mutation ¶
func (csuo *CareerSkillUpdateOne) Mutation() *CareerSkillMutation
Mutation returns the CareerSkillMutation object of the builder.
func (*CareerSkillUpdateOne) Save ¶
func (csuo *CareerSkillUpdateOne) Save(ctx context.Context) (*CareerSkill, error)
Save executes the query and returns the updated CareerSkill entity.
func (*CareerSkillUpdateOne) SaveX ¶
func (csuo *CareerSkillUpdateOne) SaveX(ctx context.Context) *CareerSkill
SaveX is like Save, but panics if an error occurs.
func (*CareerSkillUpdateOne) Select ¶
func (csuo *CareerSkillUpdateOne) Select(field string, fields ...string) *CareerSkillUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CareerSkillUpdateOne) SetCareerSkillGroup ¶
func (csuo *CareerSkillUpdateOne) SetCareerSkillGroup(c *CareerSkillGroup) *CareerSkillUpdateOne
SetCareerSkillGroup sets the "careerSkillGroup" edge to the CareerSkillGroup entity.
func (*CareerSkillUpdateOne) SetCareerSkillGroupID ¶
func (csuo *CareerSkillUpdateOne) SetCareerSkillGroupID(id int) *CareerSkillUpdateOne
SetCareerSkillGroupID sets the "careerSkillGroup" edge to the CareerSkillGroup entity by ID.
func (*CareerSkillUpdateOne) SetNillableVersion ¶
func (csuo *CareerSkillUpdateOne) SetNillableVersion(s *string) *CareerSkillUpdateOne
SetNillableVersion sets the "version" field if the given value is not nil.
func (*CareerSkillUpdateOne) SetSkill ¶
func (csuo *CareerSkillUpdateOne) SetSkill(s *Skill) *CareerSkillUpdateOne
SetSkill sets the "skill" edge to the Skill entity.
func (*CareerSkillUpdateOne) SetSkillID ¶
func (csuo *CareerSkillUpdateOne) SetSkillID(id int) *CareerSkillUpdateOne
SetSkillID sets the "skill" edge to the Skill entity by ID.
func (*CareerSkillUpdateOne) SetUpdateTime ¶
func (csuo *CareerSkillUpdateOne) SetUpdateTime(t time.Time) *CareerSkillUpdateOne
SetUpdateTime sets the "update_time" field.
func (*CareerSkillUpdateOne) SetVersion ¶
func (csuo *CareerSkillUpdateOne) SetVersion(s string) *CareerSkillUpdateOne
SetVersion sets the "version" field.
func (*CareerSkillUpdateOne) Where ¶
func (csuo *CareerSkillUpdateOne) Where(ps ...predicate.CareerSkill) *CareerSkillUpdateOne
Where appends a list predicates to the CareerSkillUpdate builder.
type CareerSkillUpsert ¶
CareerSkillUpsert is the "OnConflict" setter.
func (*CareerSkillUpsert) ClearVersion ¶
func (u *CareerSkillUpsert) ClearVersion() *CareerSkillUpsert
ClearVersion clears the value of the "version" field.
func (*CareerSkillUpsert) SetUpdateTime ¶
func (u *CareerSkillUpsert) SetUpdateTime(v time.Time) *CareerSkillUpsert
SetUpdateTime sets the "update_time" field.
func (*CareerSkillUpsert) SetVersion ¶
func (u *CareerSkillUpsert) SetVersion(v string) *CareerSkillUpsert
SetVersion sets the "version" field.
func (*CareerSkillUpsert) UpdateUpdateTime ¶
func (u *CareerSkillUpsert) UpdateUpdateTime() *CareerSkillUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
func (*CareerSkillUpsert) UpdateVersion ¶
func (u *CareerSkillUpsert) UpdateVersion() *CareerSkillUpsert
UpdateVersion sets the "version" field to the value that was provided on create.
type CareerSkillUpsertBulk ¶
type CareerSkillUpsertBulk struct {
// contains filtered or unexported fields
}
CareerSkillUpsertBulk is the builder for "upsert"-ing a bulk of CareerSkill nodes.
func (*CareerSkillUpsertBulk) ClearVersion ¶
func (u *CareerSkillUpsertBulk) ClearVersion() *CareerSkillUpsertBulk
ClearVersion clears the value of the "version" field.
func (*CareerSkillUpsertBulk) DoNothing ¶
func (u *CareerSkillUpsertBulk) DoNothing() *CareerSkillUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CareerSkillUpsertBulk) Exec ¶
func (u *CareerSkillUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillUpsertBulk) ExecX ¶
func (u *CareerSkillUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillUpsertBulk) Ignore ¶
func (u *CareerSkillUpsertBulk) Ignore() *CareerSkillUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CareerSkill.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CareerSkillUpsertBulk) SetUpdateTime ¶
func (u *CareerSkillUpsertBulk) SetUpdateTime(v time.Time) *CareerSkillUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*CareerSkillUpsertBulk) SetVersion ¶
func (u *CareerSkillUpsertBulk) SetVersion(v string) *CareerSkillUpsertBulk
SetVersion sets the "version" field.
func (*CareerSkillUpsertBulk) Update ¶
func (u *CareerSkillUpsertBulk) Update(set func(*CareerSkillUpsert)) *CareerSkillUpsertBulk
Update allows overriding fields `UPDATE` values. See the CareerSkillCreateBulk.OnConflict documentation for more info.
func (*CareerSkillUpsertBulk) UpdateNewValues ¶
func (u *CareerSkillUpsertBulk) UpdateNewValues() *CareerSkillUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CareerSkill.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*CareerSkillUpsertBulk) UpdateUpdateTime ¶
func (u *CareerSkillUpsertBulk) UpdateUpdateTime() *CareerSkillUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
func (*CareerSkillUpsertBulk) UpdateVersion ¶
func (u *CareerSkillUpsertBulk) UpdateVersion() *CareerSkillUpsertBulk
UpdateVersion sets the "version" field to the value that was provided on create.
type CareerSkillUpsertOne ¶
type CareerSkillUpsertOne struct {
// contains filtered or unexported fields
}
CareerSkillUpsertOne is the builder for "upsert"-ing
one CareerSkill node.
func (*CareerSkillUpsertOne) ClearVersion ¶
func (u *CareerSkillUpsertOne) ClearVersion() *CareerSkillUpsertOne
ClearVersion clears the value of the "version" field.
func (*CareerSkillUpsertOne) DoNothing ¶
func (u *CareerSkillUpsertOne) DoNothing() *CareerSkillUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CareerSkillUpsertOne) Exec ¶
func (u *CareerSkillUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerSkillUpsertOne) ExecX ¶
func (u *CareerSkillUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerSkillUpsertOne) ID ¶
func (u *CareerSkillUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*CareerSkillUpsertOne) IDX ¶
func (u *CareerSkillUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*CareerSkillUpsertOne) Ignore ¶
func (u *CareerSkillUpsertOne) Ignore() *CareerSkillUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CareerSkill.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CareerSkillUpsertOne) SetUpdateTime ¶
func (u *CareerSkillUpsertOne) SetUpdateTime(v time.Time) *CareerSkillUpsertOne
SetUpdateTime sets the "update_time" field.
func (*CareerSkillUpsertOne) SetVersion ¶
func (u *CareerSkillUpsertOne) SetVersion(v string) *CareerSkillUpsertOne
SetVersion sets the "version" field.
func (*CareerSkillUpsertOne) Update ¶
func (u *CareerSkillUpsertOne) Update(set func(*CareerSkillUpsert)) *CareerSkillUpsertOne
Update allows overriding fields `UPDATE` values. See the CareerSkillCreate.OnConflict documentation for more info.
func (*CareerSkillUpsertOne) UpdateNewValues ¶
func (u *CareerSkillUpsertOne) UpdateNewValues() *CareerSkillUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CareerSkill.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*CareerSkillUpsertOne) UpdateUpdateTime ¶
func (u *CareerSkillUpsertOne) UpdateUpdateTime() *CareerSkillUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
func (*CareerSkillUpsertOne) UpdateVersion ¶
func (u *CareerSkillUpsertOne) UpdateVersion() *CareerSkillUpsertOne
UpdateVersion sets the "version" field to the value that was provided on create.
type CareerSkills ¶
type CareerSkills []*CareerSkill
CareerSkills is a parsable slice of CareerSkill.
type CareerTask ¶
type CareerTask struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the CareerTaskQuery when eager-loading is set. Edges CareerTaskEdges `json:"edges"` // contains filtered or unexported fields }
CareerTask is the model entity for the CareerTask schema.
func (*CareerTask) QueryCareer ¶
func (ct *CareerTask) QueryCareer() *UserCareerQuery
QueryCareer queries the "career" edge of the CareerTask entity.
func (*CareerTask) QueryCareerTaskDescriptions ¶
func (ct *CareerTask) QueryCareerTaskDescriptions() *CareerTaskDescriptionQuery
QueryCareerTaskDescriptions queries the "careerTaskDescriptions" edge of the CareerTask entity.
func (*CareerTask) String ¶
func (ct *CareerTask) String() string
String implements the fmt.Stringer.
func (*CareerTask) Unwrap ¶
func (ct *CareerTask) Unwrap() *CareerTask
Unwrap unwraps the CareerTask 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 (*CareerTask) Update ¶
func (ct *CareerTask) Update() *CareerTaskUpdateOne
Update returns a builder for updating this CareerTask. Note that you need to call CareerTask.Unwrap() before calling this method if this CareerTask was returned from a transaction, and the transaction was committed or rolled back.
type CareerTaskClient ¶
type CareerTaskClient struct {
// contains filtered or unexported fields
}
CareerTaskClient is a client for the CareerTask schema.
func NewCareerTaskClient ¶
func NewCareerTaskClient(c config) *CareerTaskClient
NewCareerTaskClient returns a client for the CareerTask from the given config.
func (*CareerTaskClient) Create ¶
func (c *CareerTaskClient) Create() *CareerTaskCreate
Create returns a builder for creating a CareerTask entity.
func (*CareerTaskClient) CreateBulk ¶
func (c *CareerTaskClient) CreateBulk(builders ...*CareerTaskCreate) *CareerTaskCreateBulk
CreateBulk returns a builder for creating a bulk of CareerTask entities.
func (*CareerTaskClient) Delete ¶
func (c *CareerTaskClient) Delete() *CareerTaskDelete
Delete returns a delete builder for CareerTask.
func (*CareerTaskClient) DeleteOne ¶
func (c *CareerTaskClient) DeleteOne(ct *CareerTask) *CareerTaskDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CareerTaskClient) DeleteOneID ¶
func (c *CareerTaskClient) DeleteOneID(id int) *CareerTaskDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CareerTaskClient) Get ¶
func (c *CareerTaskClient) Get(ctx context.Context, id int) (*CareerTask, error)
Get returns a CareerTask entity by its id.
func (*CareerTaskClient) GetX ¶
func (c *CareerTaskClient) GetX(ctx context.Context, id int) *CareerTask
GetX is like Get, but panics if an error occurs.
func (*CareerTaskClient) Hooks ¶
func (c *CareerTaskClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CareerTaskClient) Intercept ¶
func (c *CareerTaskClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `careertask.Intercept(f(g(h())))`.
func (*CareerTaskClient) Interceptors ¶
func (c *CareerTaskClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CareerTaskClient) Query ¶
func (c *CareerTaskClient) Query() *CareerTaskQuery
Query returns a query builder for CareerTask.
func (*CareerTaskClient) QueryCareer ¶
func (c *CareerTaskClient) QueryCareer(ct *CareerTask) *UserCareerQuery
QueryCareer queries the career edge of a CareerTask.
func (*CareerTaskClient) QueryCareerTaskDescriptions ¶
func (c *CareerTaskClient) QueryCareerTaskDescriptions(ct *CareerTask) *CareerTaskDescriptionQuery
QueryCareerTaskDescriptions queries the careerTaskDescriptions edge of a CareerTask.
func (*CareerTaskClient) Update ¶
func (c *CareerTaskClient) Update() *CareerTaskUpdate
Update returns an update builder for CareerTask.
func (*CareerTaskClient) UpdateOne ¶
func (c *CareerTaskClient) UpdateOne(ct *CareerTask) *CareerTaskUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CareerTaskClient) UpdateOneID ¶
func (c *CareerTaskClient) UpdateOneID(id int) *CareerTaskUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CareerTaskClient) Use ¶
func (c *CareerTaskClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `careertask.Hooks(f(g(h())))`.
type CareerTaskCreate ¶
type CareerTaskCreate struct {
// contains filtered or unexported fields
}
CareerTaskCreate is the builder for creating a CareerTask entity.
func (*CareerTaskCreate) AddCareerTaskDescriptionIDs ¶
func (ctc *CareerTaskCreate) AddCareerTaskDescriptionIDs(ids ...int) *CareerTaskCreate
AddCareerTaskDescriptionIDs adds the "careerTaskDescriptions" edge to the CareerTaskDescription entity by IDs.
func (*CareerTaskCreate) AddCareerTaskDescriptions ¶
func (ctc *CareerTaskCreate) AddCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskCreate
AddCareerTaskDescriptions adds the "careerTaskDescriptions" edges to the CareerTaskDescription entity.
func (*CareerTaskCreate) Exec ¶
func (ctc *CareerTaskCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskCreate) ExecX ¶
func (ctc *CareerTaskCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskCreate) Mutation ¶
func (ctc *CareerTaskCreate) Mutation() *CareerTaskMutation
Mutation returns the CareerTaskMutation object of the builder.
func (*CareerTaskCreate) OnConflict ¶
func (ctc *CareerTaskCreate) OnConflict(opts ...sql.ConflictOption) *CareerTaskUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CareerTask.Create(). SetCreateTime(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.CareerTaskUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*CareerTaskCreate) OnConflictColumns ¶
func (ctc *CareerTaskCreate) OnConflictColumns(columns ...string) *CareerTaskUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CareerTask.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CareerTaskCreate) Save ¶
func (ctc *CareerTaskCreate) Save(ctx context.Context) (*CareerTask, error)
Save creates the CareerTask in the database.
func (*CareerTaskCreate) SaveX ¶
func (ctc *CareerTaskCreate) SaveX(ctx context.Context) *CareerTask
SaveX calls Save and panics if Save returns an error.
func (*CareerTaskCreate) SetCareer ¶
func (ctc *CareerTaskCreate) SetCareer(u *UserCareer) *CareerTaskCreate
SetCareer sets the "career" edge to the UserCareer entity.
func (*CareerTaskCreate) SetCareerID ¶
func (ctc *CareerTaskCreate) SetCareerID(id int) *CareerTaskCreate
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*CareerTaskCreate) SetCreateTime ¶
func (ctc *CareerTaskCreate) SetCreateTime(t time.Time) *CareerTaskCreate
SetCreateTime sets the "create_time" field.
func (*CareerTaskCreate) SetName ¶
func (ctc *CareerTaskCreate) SetName(s string) *CareerTaskCreate
SetName sets the "name" field.
func (*CareerTaskCreate) SetNillableCreateTime ¶
func (ctc *CareerTaskCreate) SetNillableCreateTime(t *time.Time) *CareerTaskCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*CareerTaskCreate) SetNillableUpdateTime ¶
func (ctc *CareerTaskCreate) SetNillableUpdateTime(t *time.Time) *CareerTaskCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*CareerTaskCreate) SetUpdateTime ¶
func (ctc *CareerTaskCreate) SetUpdateTime(t time.Time) *CareerTaskCreate
SetUpdateTime sets the "update_time" field.
type CareerTaskCreateBulk ¶
type CareerTaskCreateBulk struct {
// contains filtered or unexported fields
}
CareerTaskCreateBulk is the builder for creating many CareerTask entities in bulk.
func (*CareerTaskCreateBulk) Exec ¶
func (ctcb *CareerTaskCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskCreateBulk) ExecX ¶
func (ctcb *CareerTaskCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskCreateBulk) OnConflict ¶
func (ctcb *CareerTaskCreateBulk) OnConflict(opts ...sql.ConflictOption) *CareerTaskUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CareerTask.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.CareerTaskUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*CareerTaskCreateBulk) OnConflictColumns ¶
func (ctcb *CareerTaskCreateBulk) OnConflictColumns(columns ...string) *CareerTaskUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CareerTask.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CareerTaskCreateBulk) Save ¶
func (ctcb *CareerTaskCreateBulk) Save(ctx context.Context) ([]*CareerTask, error)
Save creates the CareerTask entities in the database.
func (*CareerTaskCreateBulk) SaveX ¶
func (ctcb *CareerTaskCreateBulk) SaveX(ctx context.Context) []*CareerTask
SaveX is like Save, but panics if an error occurs.
type CareerTaskDelete ¶
type CareerTaskDelete struct {
// contains filtered or unexported fields
}
CareerTaskDelete is the builder for deleting a CareerTask entity.
func (*CareerTaskDelete) Exec ¶
func (ctd *CareerTaskDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CareerTaskDelete) ExecX ¶
func (ctd *CareerTaskDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDelete) Where ¶
func (ctd *CareerTaskDelete) Where(ps ...predicate.CareerTask) *CareerTaskDelete
Where appends a list predicates to the CareerTaskDelete builder.
type CareerTaskDeleteOne ¶
type CareerTaskDeleteOne struct {
// contains filtered or unexported fields
}
CareerTaskDeleteOne is the builder for deleting a single CareerTask entity.
func (*CareerTaskDeleteOne) Exec ¶
func (ctdo *CareerTaskDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CareerTaskDeleteOne) ExecX ¶
func (ctdo *CareerTaskDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDeleteOne) Where ¶
func (ctdo *CareerTaskDeleteOne) Where(ps ...predicate.CareerTask) *CareerTaskDeleteOne
Where appends a list predicates to the CareerTaskDelete builder.
type CareerTaskDescription ¶
type CareerTaskDescription struct { // ID of the ent. ID int `json:"id,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the CareerTaskDescriptionQuery when eager-loading is set. Edges CareerTaskDescriptionEdges `json:"edges"` // contains filtered or unexported fields }
CareerTaskDescription is the model entity for the CareerTaskDescription schema.
func (*CareerTaskDescription) QueryCareerTask ¶
func (ctd *CareerTaskDescription) QueryCareerTask() *CareerTaskQuery
QueryCareerTask queries the "careerTask" edge of the CareerTaskDescription entity.
func (*CareerTaskDescription) String ¶
func (ctd *CareerTaskDescription) String() string
String implements the fmt.Stringer.
func (*CareerTaskDescription) Unwrap ¶
func (ctd *CareerTaskDescription) Unwrap() *CareerTaskDescription
Unwrap unwraps the CareerTaskDescription 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 (*CareerTaskDescription) Update ¶
func (ctd *CareerTaskDescription) Update() *CareerTaskDescriptionUpdateOne
Update returns a builder for updating this CareerTaskDescription. Note that you need to call CareerTaskDescription.Unwrap() before calling this method if this CareerTaskDescription was returned from a transaction, and the transaction was committed or rolled back.
type CareerTaskDescriptionClient ¶
type CareerTaskDescriptionClient struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionClient is a client for the CareerTaskDescription schema.
func NewCareerTaskDescriptionClient ¶
func NewCareerTaskDescriptionClient(c config) *CareerTaskDescriptionClient
NewCareerTaskDescriptionClient returns a client for the CareerTaskDescription from the given config.
func (*CareerTaskDescriptionClient) Create ¶
func (c *CareerTaskDescriptionClient) Create() *CareerTaskDescriptionCreate
Create returns a builder for creating a CareerTaskDescription entity.
func (*CareerTaskDescriptionClient) CreateBulk ¶
func (c *CareerTaskDescriptionClient) CreateBulk(builders ...*CareerTaskDescriptionCreate) *CareerTaskDescriptionCreateBulk
CreateBulk returns a builder for creating a bulk of CareerTaskDescription entities.
func (*CareerTaskDescriptionClient) Delete ¶
func (c *CareerTaskDescriptionClient) Delete() *CareerTaskDescriptionDelete
Delete returns a delete builder for CareerTaskDescription.
func (*CareerTaskDescriptionClient) DeleteOne ¶
func (c *CareerTaskDescriptionClient) DeleteOne(ctd *CareerTaskDescription) *CareerTaskDescriptionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CareerTaskDescriptionClient) DeleteOneID ¶
func (c *CareerTaskDescriptionClient) DeleteOneID(id int) *CareerTaskDescriptionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CareerTaskDescriptionClient) Get ¶
func (c *CareerTaskDescriptionClient) Get(ctx context.Context, id int) (*CareerTaskDescription, error)
Get returns a CareerTaskDescription entity by its id.
func (*CareerTaskDescriptionClient) GetX ¶
func (c *CareerTaskDescriptionClient) GetX(ctx context.Context, id int) *CareerTaskDescription
GetX is like Get, but panics if an error occurs.
func (*CareerTaskDescriptionClient) Hooks ¶
func (c *CareerTaskDescriptionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CareerTaskDescriptionClient) Intercept ¶
func (c *CareerTaskDescriptionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `careertaskdescription.Intercept(f(g(h())))`.
func (*CareerTaskDescriptionClient) Interceptors ¶
func (c *CareerTaskDescriptionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CareerTaskDescriptionClient) Query ¶
func (c *CareerTaskDescriptionClient) Query() *CareerTaskDescriptionQuery
Query returns a query builder for CareerTaskDescription.
func (*CareerTaskDescriptionClient) QueryCareerTask ¶
func (c *CareerTaskDescriptionClient) QueryCareerTask(ctd *CareerTaskDescription) *CareerTaskQuery
QueryCareerTask queries the careerTask edge of a CareerTaskDescription.
func (*CareerTaskDescriptionClient) Update ¶
func (c *CareerTaskDescriptionClient) Update() *CareerTaskDescriptionUpdate
Update returns an update builder for CareerTaskDescription.
func (*CareerTaskDescriptionClient) UpdateOne ¶
func (c *CareerTaskDescriptionClient) UpdateOne(ctd *CareerTaskDescription) *CareerTaskDescriptionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CareerTaskDescriptionClient) UpdateOneID ¶
func (c *CareerTaskDescriptionClient) UpdateOneID(id int) *CareerTaskDescriptionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CareerTaskDescriptionClient) Use ¶
func (c *CareerTaskDescriptionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `careertaskdescription.Hooks(f(g(h())))`.
type CareerTaskDescriptionCreate ¶
type CareerTaskDescriptionCreate struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionCreate is the builder for creating a CareerTaskDescription entity.
func (*CareerTaskDescriptionCreate) Exec ¶
func (ctdc *CareerTaskDescriptionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskDescriptionCreate) ExecX ¶
func (ctdc *CareerTaskDescriptionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDescriptionCreate) Mutation ¶
func (ctdc *CareerTaskDescriptionCreate) Mutation() *CareerTaskDescriptionMutation
Mutation returns the CareerTaskDescriptionMutation object of the builder.
func (*CareerTaskDescriptionCreate) OnConflict ¶
func (ctdc *CareerTaskDescriptionCreate) OnConflict(opts ...sql.ConflictOption) *CareerTaskDescriptionUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CareerTaskDescription.Create(). SetDescription(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.CareerTaskDescriptionUpsert) { SetDescription(v+v). }). Exec(ctx)
func (*CareerTaskDescriptionCreate) OnConflictColumns ¶
func (ctdc *CareerTaskDescriptionCreate) OnConflictColumns(columns ...string) *CareerTaskDescriptionUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CareerTaskDescription.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CareerTaskDescriptionCreate) Save ¶
func (ctdc *CareerTaskDescriptionCreate) Save(ctx context.Context) (*CareerTaskDescription, error)
Save creates the CareerTaskDescription in the database.
func (*CareerTaskDescriptionCreate) SaveX ¶
func (ctdc *CareerTaskDescriptionCreate) SaveX(ctx context.Context) *CareerTaskDescription
SaveX calls Save and panics if Save returns an error.
func (*CareerTaskDescriptionCreate) SetCareerTask ¶
func (ctdc *CareerTaskDescriptionCreate) SetCareerTask(c *CareerTask) *CareerTaskDescriptionCreate
SetCareerTask sets the "careerTask" edge to the CareerTask entity.
func (*CareerTaskDescriptionCreate) SetCareerTaskID ¶
func (ctdc *CareerTaskDescriptionCreate) SetCareerTaskID(id int) *CareerTaskDescriptionCreate
SetCareerTaskID sets the "careerTask" edge to the CareerTask entity by ID.
func (*CareerTaskDescriptionCreate) SetDescription ¶
func (ctdc *CareerTaskDescriptionCreate) SetDescription(s string) *CareerTaskDescriptionCreate
SetDescription sets the "description" field.
type CareerTaskDescriptionCreateBulk ¶
type CareerTaskDescriptionCreateBulk struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionCreateBulk is the builder for creating many CareerTaskDescription entities in bulk.
func (*CareerTaskDescriptionCreateBulk) Exec ¶
func (ctdcb *CareerTaskDescriptionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskDescriptionCreateBulk) ExecX ¶
func (ctdcb *CareerTaskDescriptionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDescriptionCreateBulk) OnConflict ¶
func (ctdcb *CareerTaskDescriptionCreateBulk) OnConflict(opts ...sql.ConflictOption) *CareerTaskDescriptionUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.CareerTaskDescription.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.CareerTaskDescriptionUpsert) { SetDescription(v+v). }). Exec(ctx)
func (*CareerTaskDescriptionCreateBulk) OnConflictColumns ¶
func (ctdcb *CareerTaskDescriptionCreateBulk) OnConflictColumns(columns ...string) *CareerTaskDescriptionUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.CareerTaskDescription.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*CareerTaskDescriptionCreateBulk) Save ¶
func (ctdcb *CareerTaskDescriptionCreateBulk) Save(ctx context.Context) ([]*CareerTaskDescription, error)
Save creates the CareerTaskDescription entities in the database.
func (*CareerTaskDescriptionCreateBulk) SaveX ¶
func (ctdcb *CareerTaskDescriptionCreateBulk) SaveX(ctx context.Context) []*CareerTaskDescription
SaveX is like Save, but panics if an error occurs.
type CareerTaskDescriptionDelete ¶
type CareerTaskDescriptionDelete struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionDelete is the builder for deleting a CareerTaskDescription entity.
func (*CareerTaskDescriptionDelete) Exec ¶
func (ctdd *CareerTaskDescriptionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CareerTaskDescriptionDelete) ExecX ¶
func (ctdd *CareerTaskDescriptionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDescriptionDelete) Where ¶
func (ctdd *CareerTaskDescriptionDelete) Where(ps ...predicate.CareerTaskDescription) *CareerTaskDescriptionDelete
Where appends a list predicates to the CareerTaskDescriptionDelete builder.
type CareerTaskDescriptionDeleteOne ¶
type CareerTaskDescriptionDeleteOne struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionDeleteOne is the builder for deleting a single CareerTaskDescription entity.
func (*CareerTaskDescriptionDeleteOne) Exec ¶
func (ctddo *CareerTaskDescriptionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CareerTaskDescriptionDeleteOne) ExecX ¶
func (ctddo *CareerTaskDescriptionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDescriptionDeleteOne) Where ¶
func (ctddo *CareerTaskDescriptionDeleteOne) Where(ps ...predicate.CareerTaskDescription) *CareerTaskDescriptionDeleteOne
Where appends a list predicates to the CareerTaskDescriptionDelete builder.
type CareerTaskDescriptionEdges ¶
type CareerTaskDescriptionEdges struct { // CareerTask holds the value of the careerTask edge. CareerTask *CareerTask `json:"careerTask,omitempty"` // contains filtered or unexported fields }
CareerTaskDescriptionEdges holds the relations/edges for other nodes in the graph.
func (CareerTaskDescriptionEdges) CareerTaskOrErr ¶
func (e CareerTaskDescriptionEdges) CareerTaskOrErr() (*CareerTask, error)
CareerTaskOrErr returns the CareerTask value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type CareerTaskDescriptionGroupBy ¶
type CareerTaskDescriptionGroupBy struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionGroupBy is the group-by builder for CareerTaskDescription entities.
func (*CareerTaskDescriptionGroupBy) Aggregate ¶
func (ctdgb *CareerTaskDescriptionGroupBy) Aggregate(fns ...AggregateFunc) *CareerTaskDescriptionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CareerTaskDescriptionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*CareerTaskDescriptionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*CareerTaskDescriptionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionGroupBy) Scan ¶
func (ctdgb *CareerTaskDescriptionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CareerTaskDescriptionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type CareerTaskDescriptionMutation ¶
type CareerTaskDescriptionMutation struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionMutation represents an operation that mutates the CareerTaskDescription nodes in the graph.
func (*CareerTaskDescriptionMutation) AddField ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) AddedEdges ¶
func (m *CareerTaskDescriptionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CareerTaskDescriptionMutation) AddedField ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) AddedFields ¶
func (m *CareerTaskDescriptionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CareerTaskDescriptionMutation) AddedIDs ¶
func (m *CareerTaskDescriptionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CareerTaskDescriptionMutation) CareerTaskCleared ¶
func (m *CareerTaskDescriptionMutation) CareerTaskCleared() bool
CareerTaskCleared reports if the "careerTask" edge to the CareerTask entity was cleared.
func (*CareerTaskDescriptionMutation) CareerTaskID ¶
func (m *CareerTaskDescriptionMutation) CareerTaskID() (id int, exists bool)
CareerTaskID returns the "careerTask" edge ID in the mutation.
func (*CareerTaskDescriptionMutation) CareerTaskIDs ¶
func (m *CareerTaskDescriptionMutation) CareerTaskIDs() (ids []int)
CareerTaskIDs returns the "careerTask" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CareerTaskID instead. It exists only for internal usage by the builders.
func (*CareerTaskDescriptionMutation) ClearCareerTask ¶
func (m *CareerTaskDescriptionMutation) ClearCareerTask()
ClearCareerTask clears the "careerTask" edge to the CareerTask entity.
func (*CareerTaskDescriptionMutation) ClearEdge ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) ClearField ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) ClearedEdges ¶
func (m *CareerTaskDescriptionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CareerTaskDescriptionMutation) ClearedFields ¶
func (m *CareerTaskDescriptionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CareerTaskDescriptionMutation) Client ¶
func (m CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) Description ¶
func (m *CareerTaskDescriptionMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*CareerTaskDescriptionMutation) EdgeCleared ¶
func (m *CareerTaskDescriptionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CareerTaskDescriptionMutation) Field ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) FieldCleared ¶
func (m *CareerTaskDescriptionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CareerTaskDescriptionMutation) Fields ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) ID ¶
func (m *CareerTaskDescriptionMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*CareerTaskDescriptionMutation) IDs ¶
func (m *CareerTaskDescriptionMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*CareerTaskDescriptionMutation) OldDescription ¶
func (m *CareerTaskDescriptionMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the CareerTaskDescription entity. If the CareerTaskDescription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerTaskDescriptionMutation) OldField ¶
func (m *CareerTaskDescriptionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*CareerTaskDescriptionMutation) Op ¶
func (m *CareerTaskDescriptionMutation) Op() Op
Op returns the operation name.
func (*CareerTaskDescriptionMutation) RemovedEdges ¶
func (m *CareerTaskDescriptionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CareerTaskDescriptionMutation) RemovedIDs ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) ResetCareerTask ¶
func (m *CareerTaskDescriptionMutation) ResetCareerTask()
ResetCareerTask resets all changes to the "careerTask" edge.
func (*CareerTaskDescriptionMutation) ResetDescription ¶
func (m *CareerTaskDescriptionMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*CareerTaskDescriptionMutation) ResetEdge ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) ResetField ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) SetCareerTaskID ¶
func (m *CareerTaskDescriptionMutation) SetCareerTaskID(id int)
SetCareerTaskID sets the "careerTask" edge to the CareerTask entity by id.
func (*CareerTaskDescriptionMutation) SetDescription ¶
func (m *CareerTaskDescriptionMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*CareerTaskDescriptionMutation) SetField ¶
func (m *CareerTaskDescriptionMutation) 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 (*CareerTaskDescriptionMutation) SetOp ¶
func (m *CareerTaskDescriptionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (CareerTaskDescriptionMutation) Tx ¶
func (m CareerTaskDescriptionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CareerTaskDescriptionMutation) Type ¶
func (m *CareerTaskDescriptionMutation) Type() string
Type returns the node type of this mutation (CareerTaskDescription).
func (*CareerTaskDescriptionMutation) Where ¶
func (m *CareerTaskDescriptionMutation) Where(ps ...predicate.CareerTaskDescription)
Where appends a list predicates to the CareerTaskDescriptionMutation builder.
func (*CareerTaskDescriptionMutation) WhereP ¶
func (m *CareerTaskDescriptionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CareerTaskDescriptionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CareerTaskDescriptionQuery ¶
type CareerTaskDescriptionQuery struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionQuery is the builder for querying CareerTaskDescription entities.
func (*CareerTaskDescriptionQuery) Aggregate ¶
func (ctdq *CareerTaskDescriptionQuery) Aggregate(fns ...AggregateFunc) *CareerTaskDescriptionSelect
Aggregate returns a CareerTaskDescriptionSelect configured with the given aggregations.
func (*CareerTaskDescriptionQuery) All ¶
func (ctdq *CareerTaskDescriptionQuery) All(ctx context.Context) ([]*CareerTaskDescription, error)
All executes the query and returns a list of CareerTaskDescriptions.
func (*CareerTaskDescriptionQuery) AllX ¶
func (ctdq *CareerTaskDescriptionQuery) AllX(ctx context.Context) []*CareerTaskDescription
AllX is like All, but panics if an error occurs.
func (*CareerTaskDescriptionQuery) Clone ¶
func (ctdq *CareerTaskDescriptionQuery) Clone() *CareerTaskDescriptionQuery
Clone returns a duplicate of the CareerTaskDescriptionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CareerTaskDescriptionQuery) Count ¶
func (ctdq *CareerTaskDescriptionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CareerTaskDescriptionQuery) CountX ¶
func (ctdq *CareerTaskDescriptionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CareerTaskDescriptionQuery) Exist ¶
func (ctdq *CareerTaskDescriptionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CareerTaskDescriptionQuery) ExistX ¶
func (ctdq *CareerTaskDescriptionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CareerTaskDescriptionQuery) First ¶
func (ctdq *CareerTaskDescriptionQuery) First(ctx context.Context) (*CareerTaskDescription, error)
First returns the first CareerTaskDescription entity from the query. Returns a *NotFoundError when no CareerTaskDescription was found.
func (*CareerTaskDescriptionQuery) FirstID ¶
func (ctdq *CareerTaskDescriptionQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first CareerTaskDescription ID from the query. Returns a *NotFoundError when no CareerTaskDescription ID was found.
func (*CareerTaskDescriptionQuery) FirstIDX ¶
func (ctdq *CareerTaskDescriptionQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*CareerTaskDescriptionQuery) FirstX ¶
func (ctdq *CareerTaskDescriptionQuery) FirstX(ctx context.Context) *CareerTaskDescription
FirstX is like First, but panics if an error occurs.
func (*CareerTaskDescriptionQuery) GroupBy ¶
func (ctdq *CareerTaskDescriptionQuery) GroupBy(field string, fields ...string) *CareerTaskDescriptionGroupBy
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 { Description string `json:"description,omitempty"` Count int `json:"count,omitempty"` } client.CareerTaskDescription.Query(). GroupBy(careertaskdescription.FieldDescription). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CareerTaskDescriptionQuery) IDs ¶
func (ctdq *CareerTaskDescriptionQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of CareerTaskDescription IDs.
func (*CareerTaskDescriptionQuery) IDsX ¶
func (ctdq *CareerTaskDescriptionQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*CareerTaskDescriptionQuery) Limit ¶
func (ctdq *CareerTaskDescriptionQuery) Limit(limit int) *CareerTaskDescriptionQuery
Limit the number of records to be returned by this query.
func (*CareerTaskDescriptionQuery) Offset ¶
func (ctdq *CareerTaskDescriptionQuery) Offset(offset int) *CareerTaskDescriptionQuery
Offset to start from.
func (*CareerTaskDescriptionQuery) Only ¶
func (ctdq *CareerTaskDescriptionQuery) Only(ctx context.Context) (*CareerTaskDescription, error)
Only returns a single CareerTaskDescription entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one CareerTaskDescription entity is found. Returns a *NotFoundError when no CareerTaskDescription entities are found.
func (*CareerTaskDescriptionQuery) OnlyID ¶
func (ctdq *CareerTaskDescriptionQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only CareerTaskDescription ID in the query. Returns a *NotSingularError when more than one CareerTaskDescription ID is found. Returns a *NotFoundError when no entities are found.
func (*CareerTaskDescriptionQuery) OnlyIDX ¶
func (ctdq *CareerTaskDescriptionQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CareerTaskDescriptionQuery) OnlyX ¶
func (ctdq *CareerTaskDescriptionQuery) OnlyX(ctx context.Context) *CareerTaskDescription
OnlyX is like Only, but panics if an error occurs.
func (*CareerTaskDescriptionQuery) Order ¶
func (ctdq *CareerTaskDescriptionQuery) Order(o ...careertaskdescription.OrderOption) *CareerTaskDescriptionQuery
Order specifies how the records should be ordered.
func (*CareerTaskDescriptionQuery) QueryCareerTask ¶
func (ctdq *CareerTaskDescriptionQuery) QueryCareerTask() *CareerTaskQuery
QueryCareerTask chains the current query on the "careerTask" edge.
func (*CareerTaskDescriptionQuery) Select ¶
func (ctdq *CareerTaskDescriptionQuery) Select(fields ...string) *CareerTaskDescriptionSelect
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 { Description string `json:"description,omitempty"` } client.CareerTaskDescription.Query(). Select(careertaskdescription.FieldDescription). Scan(ctx, &v)
func (*CareerTaskDescriptionQuery) Unique ¶
func (ctdq *CareerTaskDescriptionQuery) Unique(unique bool) *CareerTaskDescriptionQuery
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 (*CareerTaskDescriptionQuery) Where ¶
func (ctdq *CareerTaskDescriptionQuery) Where(ps ...predicate.CareerTaskDescription) *CareerTaskDescriptionQuery
Where adds a new predicate for the CareerTaskDescriptionQuery builder.
func (*CareerTaskDescriptionQuery) WithCareerTask ¶
func (ctdq *CareerTaskDescriptionQuery) WithCareerTask(opts ...func(*CareerTaskQuery)) *CareerTaskDescriptionQuery
WithCareerTask tells the query-builder to eager-load the nodes that are connected to the "careerTask" edge. The optional arguments are used to configure the query builder of the edge.
type CareerTaskDescriptionSelect ¶
type CareerTaskDescriptionSelect struct { *CareerTaskDescriptionQuery // contains filtered or unexported fields }
CareerTaskDescriptionSelect is the builder for selecting fields of CareerTaskDescription entities.
func (*CareerTaskDescriptionSelect) Aggregate ¶
func (ctds *CareerTaskDescriptionSelect) Aggregate(fns ...AggregateFunc) *CareerTaskDescriptionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CareerTaskDescriptionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*CareerTaskDescriptionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*CareerTaskDescriptionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionSelect) Scan ¶
func (ctds *CareerTaskDescriptionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CareerTaskDescriptionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*CareerTaskDescriptionSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type CareerTaskDescriptionUpdate ¶
type CareerTaskDescriptionUpdate struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionUpdate is the builder for updating CareerTaskDescription entities.
func (*CareerTaskDescriptionUpdate) ClearCareerTask ¶
func (ctdu *CareerTaskDescriptionUpdate) ClearCareerTask() *CareerTaskDescriptionUpdate
ClearCareerTask clears the "careerTask" edge to the CareerTask entity.
func (*CareerTaskDescriptionUpdate) Exec ¶
func (ctdu *CareerTaskDescriptionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskDescriptionUpdate) ExecX ¶
func (ctdu *CareerTaskDescriptionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDescriptionUpdate) Mutation ¶
func (ctdu *CareerTaskDescriptionUpdate) Mutation() *CareerTaskDescriptionMutation
Mutation returns the CareerTaskDescriptionMutation object of the builder.
func (*CareerTaskDescriptionUpdate) Save ¶
func (ctdu *CareerTaskDescriptionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CareerTaskDescriptionUpdate) SaveX ¶
func (ctdu *CareerTaskDescriptionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CareerTaskDescriptionUpdate) SetCareerTask ¶
func (ctdu *CareerTaskDescriptionUpdate) SetCareerTask(c *CareerTask) *CareerTaskDescriptionUpdate
SetCareerTask sets the "careerTask" edge to the CareerTask entity.
func (*CareerTaskDescriptionUpdate) SetCareerTaskID ¶
func (ctdu *CareerTaskDescriptionUpdate) SetCareerTaskID(id int) *CareerTaskDescriptionUpdate
SetCareerTaskID sets the "careerTask" edge to the CareerTask entity by ID.
func (*CareerTaskDescriptionUpdate) SetDescription ¶
func (ctdu *CareerTaskDescriptionUpdate) SetDescription(s string) *CareerTaskDescriptionUpdate
SetDescription sets the "description" field.
func (*CareerTaskDescriptionUpdate) Where ¶
func (ctdu *CareerTaskDescriptionUpdate) Where(ps ...predicate.CareerTaskDescription) *CareerTaskDescriptionUpdate
Where appends a list predicates to the CareerTaskDescriptionUpdate builder.
type CareerTaskDescriptionUpdateOne ¶
type CareerTaskDescriptionUpdateOne struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionUpdateOne is the builder for updating a single CareerTaskDescription entity.
func (*CareerTaskDescriptionUpdateOne) ClearCareerTask ¶
func (ctduo *CareerTaskDescriptionUpdateOne) ClearCareerTask() *CareerTaskDescriptionUpdateOne
ClearCareerTask clears the "careerTask" edge to the CareerTask entity.
func (*CareerTaskDescriptionUpdateOne) Exec ¶
func (ctduo *CareerTaskDescriptionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CareerTaskDescriptionUpdateOne) ExecX ¶
func (ctduo *CareerTaskDescriptionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDescriptionUpdateOne) Mutation ¶
func (ctduo *CareerTaskDescriptionUpdateOne) Mutation() *CareerTaskDescriptionMutation
Mutation returns the CareerTaskDescriptionMutation object of the builder.
func (*CareerTaskDescriptionUpdateOne) Save ¶
func (ctduo *CareerTaskDescriptionUpdateOne) Save(ctx context.Context) (*CareerTaskDescription, error)
Save executes the query and returns the updated CareerTaskDescription entity.
func (*CareerTaskDescriptionUpdateOne) SaveX ¶
func (ctduo *CareerTaskDescriptionUpdateOne) SaveX(ctx context.Context) *CareerTaskDescription
SaveX is like Save, but panics if an error occurs.
func (*CareerTaskDescriptionUpdateOne) Select ¶
func (ctduo *CareerTaskDescriptionUpdateOne) Select(field string, fields ...string) *CareerTaskDescriptionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CareerTaskDescriptionUpdateOne) SetCareerTask ¶
func (ctduo *CareerTaskDescriptionUpdateOne) SetCareerTask(c *CareerTask) *CareerTaskDescriptionUpdateOne
SetCareerTask sets the "careerTask" edge to the CareerTask entity.
func (*CareerTaskDescriptionUpdateOne) SetCareerTaskID ¶
func (ctduo *CareerTaskDescriptionUpdateOne) SetCareerTaskID(id int) *CareerTaskDescriptionUpdateOne
SetCareerTaskID sets the "careerTask" edge to the CareerTask entity by ID.
func (*CareerTaskDescriptionUpdateOne) SetDescription ¶
func (ctduo *CareerTaskDescriptionUpdateOne) SetDescription(s string) *CareerTaskDescriptionUpdateOne
SetDescription sets the "description" field.
func (*CareerTaskDescriptionUpdateOne) Where ¶
func (ctduo *CareerTaskDescriptionUpdateOne) Where(ps ...predicate.CareerTaskDescription) *CareerTaskDescriptionUpdateOne
Where appends a list predicates to the CareerTaskDescriptionUpdate builder.
type CareerTaskDescriptionUpsert ¶
CareerTaskDescriptionUpsert is the "OnConflict" setter.
func (*CareerTaskDescriptionUpsert) SetDescription ¶
func (u *CareerTaskDescriptionUpsert) SetDescription(v string) *CareerTaskDescriptionUpsert
SetDescription sets the "description" field.
func (*CareerTaskDescriptionUpsert) UpdateDescription ¶
func (u *CareerTaskDescriptionUpsert) UpdateDescription() *CareerTaskDescriptionUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
type CareerTaskDescriptionUpsertBulk ¶
type CareerTaskDescriptionUpsertBulk struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionUpsertBulk is the builder for "upsert"-ing a bulk of CareerTaskDescription nodes.
func (*CareerTaskDescriptionUpsertBulk) DoNothing ¶
func (u *CareerTaskDescriptionUpsertBulk) DoNothing() *CareerTaskDescriptionUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CareerTaskDescriptionUpsertBulk) Exec ¶
func (u *CareerTaskDescriptionUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskDescriptionUpsertBulk) ExecX ¶
func (u *CareerTaskDescriptionUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDescriptionUpsertBulk) Ignore ¶
func (u *CareerTaskDescriptionUpsertBulk) Ignore() *CareerTaskDescriptionUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CareerTaskDescription.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CareerTaskDescriptionUpsertBulk) SetDescription ¶
func (u *CareerTaskDescriptionUpsertBulk) SetDescription(v string) *CareerTaskDescriptionUpsertBulk
SetDescription sets the "description" field.
func (*CareerTaskDescriptionUpsertBulk) Update ¶
func (u *CareerTaskDescriptionUpsertBulk) Update(set func(*CareerTaskDescriptionUpsert)) *CareerTaskDescriptionUpsertBulk
Update allows overriding fields `UPDATE` values. See the CareerTaskDescriptionCreateBulk.OnConflict documentation for more info.
func (*CareerTaskDescriptionUpsertBulk) UpdateDescription ¶
func (u *CareerTaskDescriptionUpsertBulk) UpdateDescription() *CareerTaskDescriptionUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*CareerTaskDescriptionUpsertBulk) UpdateNewValues ¶
func (u *CareerTaskDescriptionUpsertBulk) UpdateNewValues() *CareerTaskDescriptionUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CareerTaskDescription.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type CareerTaskDescriptionUpsertOne ¶
type CareerTaskDescriptionUpsertOne struct {
// contains filtered or unexported fields
}
CareerTaskDescriptionUpsertOne is the builder for "upsert"-ing
one CareerTaskDescription node.
func (*CareerTaskDescriptionUpsertOne) DoNothing ¶
func (u *CareerTaskDescriptionUpsertOne) DoNothing() *CareerTaskDescriptionUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CareerTaskDescriptionUpsertOne) Exec ¶
func (u *CareerTaskDescriptionUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskDescriptionUpsertOne) ExecX ¶
func (u *CareerTaskDescriptionUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskDescriptionUpsertOne) ID ¶
func (u *CareerTaskDescriptionUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*CareerTaskDescriptionUpsertOne) IDX ¶
func (u *CareerTaskDescriptionUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*CareerTaskDescriptionUpsertOne) Ignore ¶
func (u *CareerTaskDescriptionUpsertOne) Ignore() *CareerTaskDescriptionUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CareerTaskDescription.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CareerTaskDescriptionUpsertOne) SetDescription ¶
func (u *CareerTaskDescriptionUpsertOne) SetDescription(v string) *CareerTaskDescriptionUpsertOne
SetDescription sets the "description" field.
func (*CareerTaskDescriptionUpsertOne) Update ¶
func (u *CareerTaskDescriptionUpsertOne) Update(set func(*CareerTaskDescriptionUpsert)) *CareerTaskDescriptionUpsertOne
Update allows overriding fields `UPDATE` values. See the CareerTaskDescriptionCreate.OnConflict documentation for more info.
func (*CareerTaskDescriptionUpsertOne) UpdateDescription ¶
func (u *CareerTaskDescriptionUpsertOne) UpdateDescription() *CareerTaskDescriptionUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*CareerTaskDescriptionUpsertOne) UpdateNewValues ¶
func (u *CareerTaskDescriptionUpsertOne) UpdateNewValues() *CareerTaskDescriptionUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CareerTaskDescription.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type CareerTaskDescriptions ¶
type CareerTaskDescriptions []*CareerTaskDescription
CareerTaskDescriptions is a parsable slice of CareerTaskDescription.
type CareerTaskEdges ¶
type CareerTaskEdges struct { // Career holds the value of the career edge. Career *UserCareer `json:"career,omitempty"` // CareerTaskDescriptions holds the value of the careerTaskDescriptions edge. CareerTaskDescriptions []*CareerTaskDescription `json:"careerTaskDescriptions,omitempty"` // contains filtered or unexported fields }
CareerTaskEdges holds the relations/edges for other nodes in the graph.
func (CareerTaskEdges) CareerOrErr ¶
func (e CareerTaskEdges) CareerOrErr() (*UserCareer, error)
CareerOrErr returns the Career value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (CareerTaskEdges) CareerTaskDescriptionsOrErr ¶
func (e CareerTaskEdges) CareerTaskDescriptionsOrErr() ([]*CareerTaskDescription, error)
CareerTaskDescriptionsOrErr returns the CareerTaskDescriptions value or an error if the edge was not loaded in eager-loading.
type CareerTaskGroupBy ¶
type CareerTaskGroupBy struct {
// contains filtered or unexported fields
}
CareerTaskGroupBy is the group-by builder for CareerTask entities.
func (*CareerTaskGroupBy) Aggregate ¶
func (ctgb *CareerTaskGroupBy) Aggregate(fns ...AggregateFunc) *CareerTaskGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CareerTaskGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CareerTaskGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CareerTaskGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CareerTaskGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CareerTaskGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CareerTaskGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CareerTaskGroupBy) Scan ¶
func (ctgb *CareerTaskGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CareerTaskGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CareerTaskMutation ¶
type CareerTaskMutation struct {
// contains filtered or unexported fields
}
CareerTaskMutation represents an operation that mutates the CareerTask nodes in the graph.
func (*CareerTaskMutation) AddCareerTaskDescriptionIDs ¶
func (m *CareerTaskMutation) AddCareerTaskDescriptionIDs(ids ...int)
AddCareerTaskDescriptionIDs adds the "careerTaskDescriptions" edge to the CareerTaskDescription entity by ids.
func (*CareerTaskMutation) AddField ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) AddedEdges ¶
func (m *CareerTaskMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CareerTaskMutation) AddedField ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) AddedFields ¶
func (m *CareerTaskMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CareerTaskMutation) AddedIDs ¶
func (m *CareerTaskMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CareerTaskMutation) CareerCleared ¶
func (m *CareerTaskMutation) CareerCleared() bool
CareerCleared reports if the "career" edge to the UserCareer entity was cleared.
func (*CareerTaskMutation) CareerID ¶
func (m *CareerTaskMutation) CareerID() (id int, exists bool)
CareerID returns the "career" edge ID in the mutation.
func (*CareerTaskMutation) CareerIDs ¶
func (m *CareerTaskMutation) CareerIDs() (ids []int)
CareerIDs returns the "career" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CareerID instead. It exists only for internal usage by the builders.
func (*CareerTaskMutation) CareerTaskDescriptionsCleared ¶
func (m *CareerTaskMutation) CareerTaskDescriptionsCleared() bool
CareerTaskDescriptionsCleared reports if the "careerTaskDescriptions" edge to the CareerTaskDescription entity was cleared.
func (*CareerTaskMutation) CareerTaskDescriptionsIDs ¶
func (m *CareerTaskMutation) CareerTaskDescriptionsIDs() (ids []int)
CareerTaskDescriptionsIDs returns the "careerTaskDescriptions" edge IDs in the mutation.
func (*CareerTaskMutation) ClearCareer ¶
func (m *CareerTaskMutation) ClearCareer()
ClearCareer clears the "career" edge to the UserCareer entity.
func (*CareerTaskMutation) ClearCareerTaskDescriptions ¶
func (m *CareerTaskMutation) ClearCareerTaskDescriptions()
ClearCareerTaskDescriptions clears the "careerTaskDescriptions" edge to the CareerTaskDescription entity.
func (*CareerTaskMutation) ClearEdge ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) ClearField ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) ClearedEdges ¶
func (m *CareerTaskMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CareerTaskMutation) ClearedFields ¶
func (m *CareerTaskMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CareerTaskMutation) Client ¶
func (m CareerTaskMutation) 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 (*CareerTaskMutation) CreateTime ¶
func (m *CareerTaskMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*CareerTaskMutation) EdgeCleared ¶
func (m *CareerTaskMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CareerTaskMutation) Field ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) FieldCleared ¶
func (m *CareerTaskMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CareerTaskMutation) Fields ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) ID ¶
func (m *CareerTaskMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*CareerTaskMutation) IDs ¶
func (m *CareerTaskMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*CareerTaskMutation) Name ¶
func (m *CareerTaskMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*CareerTaskMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the CareerTask entity. If the CareerTask object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerTaskMutation) 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 (*CareerTaskMutation) OldName ¶
func (m *CareerTaskMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the CareerTask entity. If the CareerTask object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerTaskMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the CareerTask entity. If the CareerTask object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CareerTaskMutation) RemoveCareerTaskDescriptionIDs ¶
func (m *CareerTaskMutation) RemoveCareerTaskDescriptionIDs(ids ...int)
RemoveCareerTaskDescriptionIDs removes the "careerTaskDescriptions" edge to the CareerTaskDescription entity by IDs.
func (*CareerTaskMutation) RemovedCareerTaskDescriptionsIDs ¶
func (m *CareerTaskMutation) RemovedCareerTaskDescriptionsIDs() (ids []int)
RemovedCareerTaskDescriptions returns the removed IDs of the "careerTaskDescriptions" edge to the CareerTaskDescription entity.
func (*CareerTaskMutation) RemovedEdges ¶
func (m *CareerTaskMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CareerTaskMutation) RemovedIDs ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) ResetCareer ¶
func (m *CareerTaskMutation) ResetCareer()
ResetCareer resets all changes to the "career" edge.
func (*CareerTaskMutation) ResetCareerTaskDescriptions ¶
func (m *CareerTaskMutation) ResetCareerTaskDescriptions()
ResetCareerTaskDescriptions resets all changes to the "careerTaskDescriptions" edge.
func (*CareerTaskMutation) ResetCreateTime ¶
func (m *CareerTaskMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*CareerTaskMutation) ResetEdge ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) ResetField ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) ResetName ¶
func (m *CareerTaskMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*CareerTaskMutation) ResetUpdateTime ¶
func (m *CareerTaskMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*CareerTaskMutation) SetCareerID ¶
func (m *CareerTaskMutation) SetCareerID(id int)
SetCareerID sets the "career" edge to the UserCareer entity by id.
func (*CareerTaskMutation) SetCreateTime ¶
func (m *CareerTaskMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*CareerTaskMutation) SetField ¶
func (m *CareerTaskMutation) 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 (*CareerTaskMutation) SetName ¶
func (m *CareerTaskMutation) SetName(s string)
SetName sets the "name" field.
func (*CareerTaskMutation) SetOp ¶
func (m *CareerTaskMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CareerTaskMutation) SetUpdateTime ¶
func (m *CareerTaskMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (CareerTaskMutation) Tx ¶
func (m CareerTaskMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CareerTaskMutation) Type ¶
func (m *CareerTaskMutation) Type() string
Type returns the node type of this mutation (CareerTask).
func (*CareerTaskMutation) UpdateTime ¶
func (m *CareerTaskMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*CareerTaskMutation) Where ¶
func (m *CareerTaskMutation) Where(ps ...predicate.CareerTask)
Where appends a list predicates to the CareerTaskMutation builder.
func (*CareerTaskMutation) WhereP ¶
func (m *CareerTaskMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CareerTaskMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CareerTaskQuery ¶
type CareerTaskQuery struct {
// contains filtered or unexported fields
}
CareerTaskQuery is the builder for querying CareerTask entities.
func (*CareerTaskQuery) Aggregate ¶
func (ctq *CareerTaskQuery) Aggregate(fns ...AggregateFunc) *CareerTaskSelect
Aggregate returns a CareerTaskSelect configured with the given aggregations.
func (*CareerTaskQuery) All ¶
func (ctq *CareerTaskQuery) All(ctx context.Context) ([]*CareerTask, error)
All executes the query and returns a list of CareerTasks.
func (*CareerTaskQuery) AllX ¶
func (ctq *CareerTaskQuery) AllX(ctx context.Context) []*CareerTask
AllX is like All, but panics if an error occurs.
func (*CareerTaskQuery) Clone ¶
func (ctq *CareerTaskQuery) Clone() *CareerTaskQuery
Clone returns a duplicate of the CareerTaskQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CareerTaskQuery) Count ¶
func (ctq *CareerTaskQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CareerTaskQuery) CountX ¶
func (ctq *CareerTaskQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CareerTaskQuery) Exist ¶
func (ctq *CareerTaskQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CareerTaskQuery) ExistX ¶
func (ctq *CareerTaskQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CareerTaskQuery) First ¶
func (ctq *CareerTaskQuery) First(ctx context.Context) (*CareerTask, error)
First returns the first CareerTask entity from the query. Returns a *NotFoundError when no CareerTask was found.
func (*CareerTaskQuery) FirstID ¶
func (ctq *CareerTaskQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first CareerTask ID from the query. Returns a *NotFoundError when no CareerTask ID was found.
func (*CareerTaskQuery) FirstIDX ¶
func (ctq *CareerTaskQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*CareerTaskQuery) FirstX ¶
func (ctq *CareerTaskQuery) FirstX(ctx context.Context) *CareerTask
FirstX is like First, but panics if an error occurs.
func (*CareerTaskQuery) GroupBy ¶
func (ctq *CareerTaskQuery) GroupBy(field string, fields ...string) *CareerTaskGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.CareerTask.Query(). GroupBy(careertask.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*CareerTaskQuery) IDs ¶
func (ctq *CareerTaskQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of CareerTask IDs.
func (*CareerTaskQuery) IDsX ¶
func (ctq *CareerTaskQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*CareerTaskQuery) Limit ¶
func (ctq *CareerTaskQuery) Limit(limit int) *CareerTaskQuery
Limit the number of records to be returned by this query.
func (*CareerTaskQuery) Offset ¶
func (ctq *CareerTaskQuery) Offset(offset int) *CareerTaskQuery
Offset to start from.
func (*CareerTaskQuery) Only ¶
func (ctq *CareerTaskQuery) Only(ctx context.Context) (*CareerTask, error)
Only returns a single CareerTask entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one CareerTask entity is found. Returns a *NotFoundError when no CareerTask entities are found.
func (*CareerTaskQuery) OnlyID ¶
func (ctq *CareerTaskQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only CareerTask ID in the query. Returns a *NotSingularError when more than one CareerTask ID is found. Returns a *NotFoundError when no entities are found.
func (*CareerTaskQuery) OnlyIDX ¶
func (ctq *CareerTaskQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CareerTaskQuery) OnlyX ¶
func (ctq *CareerTaskQuery) OnlyX(ctx context.Context) *CareerTask
OnlyX is like Only, but panics if an error occurs.
func (*CareerTaskQuery) Order ¶
func (ctq *CareerTaskQuery) Order(o ...careertask.OrderOption) *CareerTaskQuery
Order specifies how the records should be ordered.
func (*CareerTaskQuery) QueryCareer ¶
func (ctq *CareerTaskQuery) QueryCareer() *UserCareerQuery
QueryCareer chains the current query on the "career" edge.
func (*CareerTaskQuery) QueryCareerTaskDescriptions ¶
func (ctq *CareerTaskQuery) QueryCareerTaskDescriptions() *CareerTaskDescriptionQuery
QueryCareerTaskDescriptions chains the current query on the "careerTaskDescriptions" edge.
func (*CareerTaskQuery) Select ¶
func (ctq *CareerTaskQuery) Select(fields ...string) *CareerTaskSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.CareerTask.Query(). Select(careertask.FieldCreateTime). Scan(ctx, &v)
func (*CareerTaskQuery) Unique ¶
func (ctq *CareerTaskQuery) Unique(unique bool) *CareerTaskQuery
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 (*CareerTaskQuery) Where ¶
func (ctq *CareerTaskQuery) Where(ps ...predicate.CareerTask) *CareerTaskQuery
Where adds a new predicate for the CareerTaskQuery builder.
func (*CareerTaskQuery) WithCareer ¶
func (ctq *CareerTaskQuery) WithCareer(opts ...func(*UserCareerQuery)) *CareerTaskQuery
WithCareer tells the query-builder to eager-load the nodes that are connected to the "career" edge. The optional arguments are used to configure the query builder of the edge.
func (*CareerTaskQuery) WithCareerTaskDescriptions ¶
func (ctq *CareerTaskQuery) WithCareerTaskDescriptions(opts ...func(*CareerTaskDescriptionQuery)) *CareerTaskQuery
WithCareerTaskDescriptions tells the query-builder to eager-load the nodes that are connected to the "careerTaskDescriptions" edge. The optional arguments are used to configure the query builder of the edge.
type CareerTaskSelect ¶
type CareerTaskSelect struct { *CareerTaskQuery // contains filtered or unexported fields }
CareerTaskSelect is the builder for selecting fields of CareerTask entities.
func (*CareerTaskSelect) Aggregate ¶
func (cts *CareerTaskSelect) Aggregate(fns ...AggregateFunc) *CareerTaskSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CareerTaskSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CareerTaskSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CareerTaskSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CareerTaskSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CareerTaskSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CareerTaskSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CareerTaskSelect) Scan ¶
func (cts *CareerTaskSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CareerTaskSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CareerTaskUpdate ¶
type CareerTaskUpdate struct {
// contains filtered or unexported fields
}
CareerTaskUpdate is the builder for updating CareerTask entities.
func (*CareerTaskUpdate) AddCareerTaskDescriptionIDs ¶
func (ctu *CareerTaskUpdate) AddCareerTaskDescriptionIDs(ids ...int) *CareerTaskUpdate
AddCareerTaskDescriptionIDs adds the "careerTaskDescriptions" edge to the CareerTaskDescription entity by IDs.
func (*CareerTaskUpdate) AddCareerTaskDescriptions ¶
func (ctu *CareerTaskUpdate) AddCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskUpdate
AddCareerTaskDescriptions adds the "careerTaskDescriptions" edges to the CareerTaskDescription entity.
func (*CareerTaskUpdate) ClearCareer ¶
func (ctu *CareerTaskUpdate) ClearCareer() *CareerTaskUpdate
ClearCareer clears the "career" edge to the UserCareer entity.
func (*CareerTaskUpdate) ClearCareerTaskDescriptions ¶
func (ctu *CareerTaskUpdate) ClearCareerTaskDescriptions() *CareerTaskUpdate
ClearCareerTaskDescriptions clears all "careerTaskDescriptions" edges to the CareerTaskDescription entity.
func (*CareerTaskUpdate) Exec ¶
func (ctu *CareerTaskUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskUpdate) ExecX ¶
func (ctu *CareerTaskUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskUpdate) Mutation ¶
func (ctu *CareerTaskUpdate) Mutation() *CareerTaskMutation
Mutation returns the CareerTaskMutation object of the builder.
func (*CareerTaskUpdate) RemoveCareerTaskDescriptionIDs ¶
func (ctu *CareerTaskUpdate) RemoveCareerTaskDescriptionIDs(ids ...int) *CareerTaskUpdate
RemoveCareerTaskDescriptionIDs removes the "careerTaskDescriptions" edge to CareerTaskDescription entities by IDs.
func (*CareerTaskUpdate) RemoveCareerTaskDescriptions ¶
func (ctu *CareerTaskUpdate) RemoveCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskUpdate
RemoveCareerTaskDescriptions removes "careerTaskDescriptions" edges to CareerTaskDescription entities.
func (*CareerTaskUpdate) Save ¶
func (ctu *CareerTaskUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CareerTaskUpdate) SaveX ¶
func (ctu *CareerTaskUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CareerTaskUpdate) SetCareer ¶
func (ctu *CareerTaskUpdate) SetCareer(u *UserCareer) *CareerTaskUpdate
SetCareer sets the "career" edge to the UserCareer entity.
func (*CareerTaskUpdate) SetCareerID ¶
func (ctu *CareerTaskUpdate) SetCareerID(id int) *CareerTaskUpdate
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*CareerTaskUpdate) SetName ¶
func (ctu *CareerTaskUpdate) SetName(s string) *CareerTaskUpdate
SetName sets the "name" field.
func (*CareerTaskUpdate) SetUpdateTime ¶
func (ctu *CareerTaskUpdate) SetUpdateTime(t time.Time) *CareerTaskUpdate
SetUpdateTime sets the "update_time" field.
func (*CareerTaskUpdate) Where ¶
func (ctu *CareerTaskUpdate) Where(ps ...predicate.CareerTask) *CareerTaskUpdate
Where appends a list predicates to the CareerTaskUpdate builder.
type CareerTaskUpdateOne ¶
type CareerTaskUpdateOne struct {
// contains filtered or unexported fields
}
CareerTaskUpdateOne is the builder for updating a single CareerTask entity.
func (*CareerTaskUpdateOne) AddCareerTaskDescriptionIDs ¶
func (ctuo *CareerTaskUpdateOne) AddCareerTaskDescriptionIDs(ids ...int) *CareerTaskUpdateOne
AddCareerTaskDescriptionIDs adds the "careerTaskDescriptions" edge to the CareerTaskDescription entity by IDs.
func (*CareerTaskUpdateOne) AddCareerTaskDescriptions ¶
func (ctuo *CareerTaskUpdateOne) AddCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskUpdateOne
AddCareerTaskDescriptions adds the "careerTaskDescriptions" edges to the CareerTaskDescription entity.
func (*CareerTaskUpdateOne) ClearCareer ¶
func (ctuo *CareerTaskUpdateOne) ClearCareer() *CareerTaskUpdateOne
ClearCareer clears the "career" edge to the UserCareer entity.
func (*CareerTaskUpdateOne) ClearCareerTaskDescriptions ¶
func (ctuo *CareerTaskUpdateOne) ClearCareerTaskDescriptions() *CareerTaskUpdateOne
ClearCareerTaskDescriptions clears all "careerTaskDescriptions" edges to the CareerTaskDescription entity.
func (*CareerTaskUpdateOne) Exec ¶
func (ctuo *CareerTaskUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CareerTaskUpdateOne) ExecX ¶
func (ctuo *CareerTaskUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskUpdateOne) Mutation ¶
func (ctuo *CareerTaskUpdateOne) Mutation() *CareerTaskMutation
Mutation returns the CareerTaskMutation object of the builder.
func (*CareerTaskUpdateOne) RemoveCareerTaskDescriptionIDs ¶
func (ctuo *CareerTaskUpdateOne) RemoveCareerTaskDescriptionIDs(ids ...int) *CareerTaskUpdateOne
RemoveCareerTaskDescriptionIDs removes the "careerTaskDescriptions" edge to CareerTaskDescription entities by IDs.
func (*CareerTaskUpdateOne) RemoveCareerTaskDescriptions ¶
func (ctuo *CareerTaskUpdateOne) RemoveCareerTaskDescriptions(c ...*CareerTaskDescription) *CareerTaskUpdateOne
RemoveCareerTaskDescriptions removes "careerTaskDescriptions" edges to CareerTaskDescription entities.
func (*CareerTaskUpdateOne) Save ¶
func (ctuo *CareerTaskUpdateOne) Save(ctx context.Context) (*CareerTask, error)
Save executes the query and returns the updated CareerTask entity.
func (*CareerTaskUpdateOne) SaveX ¶
func (ctuo *CareerTaskUpdateOne) SaveX(ctx context.Context) *CareerTask
SaveX is like Save, but panics if an error occurs.
func (*CareerTaskUpdateOne) Select ¶
func (ctuo *CareerTaskUpdateOne) Select(field string, fields ...string) *CareerTaskUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CareerTaskUpdateOne) SetCareer ¶
func (ctuo *CareerTaskUpdateOne) SetCareer(u *UserCareer) *CareerTaskUpdateOne
SetCareer sets the "career" edge to the UserCareer entity.
func (*CareerTaskUpdateOne) SetCareerID ¶
func (ctuo *CareerTaskUpdateOne) SetCareerID(id int) *CareerTaskUpdateOne
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*CareerTaskUpdateOne) SetName ¶
func (ctuo *CareerTaskUpdateOne) SetName(s string) *CareerTaskUpdateOne
SetName sets the "name" field.
func (*CareerTaskUpdateOne) SetUpdateTime ¶
func (ctuo *CareerTaskUpdateOne) SetUpdateTime(t time.Time) *CareerTaskUpdateOne
SetUpdateTime sets the "update_time" field.
func (*CareerTaskUpdateOne) Where ¶
func (ctuo *CareerTaskUpdateOne) Where(ps ...predicate.CareerTask) *CareerTaskUpdateOne
Where appends a list predicates to the CareerTaskUpdate builder.
type CareerTaskUpsert ¶
CareerTaskUpsert is the "OnConflict" setter.
func (*CareerTaskUpsert) SetName ¶
func (u *CareerTaskUpsert) SetName(v string) *CareerTaskUpsert
SetName sets the "name" field.
func (*CareerTaskUpsert) SetUpdateTime ¶
func (u *CareerTaskUpsert) SetUpdateTime(v time.Time) *CareerTaskUpsert
SetUpdateTime sets the "update_time" field.
func (*CareerTaskUpsert) UpdateName ¶
func (u *CareerTaskUpsert) UpdateName() *CareerTaskUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*CareerTaskUpsert) UpdateUpdateTime ¶
func (u *CareerTaskUpsert) UpdateUpdateTime() *CareerTaskUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type CareerTaskUpsertBulk ¶
type CareerTaskUpsertBulk struct {
// contains filtered or unexported fields
}
CareerTaskUpsertBulk is the builder for "upsert"-ing a bulk of CareerTask nodes.
func (*CareerTaskUpsertBulk) DoNothing ¶
func (u *CareerTaskUpsertBulk) DoNothing() *CareerTaskUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CareerTaskUpsertBulk) Exec ¶
func (u *CareerTaskUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskUpsertBulk) ExecX ¶
func (u *CareerTaskUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskUpsertBulk) Ignore ¶
func (u *CareerTaskUpsertBulk) Ignore() *CareerTaskUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CareerTask.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CareerTaskUpsertBulk) SetName ¶
func (u *CareerTaskUpsertBulk) SetName(v string) *CareerTaskUpsertBulk
SetName sets the "name" field.
func (*CareerTaskUpsertBulk) SetUpdateTime ¶
func (u *CareerTaskUpsertBulk) SetUpdateTime(v time.Time) *CareerTaskUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*CareerTaskUpsertBulk) Update ¶
func (u *CareerTaskUpsertBulk) Update(set func(*CareerTaskUpsert)) *CareerTaskUpsertBulk
Update allows overriding fields `UPDATE` values. See the CareerTaskCreateBulk.OnConflict documentation for more info.
func (*CareerTaskUpsertBulk) UpdateName ¶
func (u *CareerTaskUpsertBulk) UpdateName() *CareerTaskUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*CareerTaskUpsertBulk) UpdateNewValues ¶
func (u *CareerTaskUpsertBulk) UpdateNewValues() *CareerTaskUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CareerTask.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*CareerTaskUpsertBulk) UpdateUpdateTime ¶
func (u *CareerTaskUpsertBulk) UpdateUpdateTime() *CareerTaskUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type CareerTaskUpsertOne ¶
type CareerTaskUpsertOne struct {
// contains filtered or unexported fields
}
CareerTaskUpsertOne is the builder for "upsert"-ing
one CareerTask node.
func (*CareerTaskUpsertOne) DoNothing ¶
func (u *CareerTaskUpsertOne) DoNothing() *CareerTaskUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*CareerTaskUpsertOne) Exec ¶
func (u *CareerTaskUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*CareerTaskUpsertOne) ExecX ¶
func (u *CareerTaskUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CareerTaskUpsertOne) ID ¶
func (u *CareerTaskUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*CareerTaskUpsertOne) IDX ¶
func (u *CareerTaskUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*CareerTaskUpsertOne) Ignore ¶
func (u *CareerTaskUpsertOne) Ignore() *CareerTaskUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.CareerTask.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*CareerTaskUpsertOne) SetName ¶
func (u *CareerTaskUpsertOne) SetName(v string) *CareerTaskUpsertOne
SetName sets the "name" field.
func (*CareerTaskUpsertOne) SetUpdateTime ¶
func (u *CareerTaskUpsertOne) SetUpdateTime(v time.Time) *CareerTaskUpsertOne
SetUpdateTime sets the "update_time" field.
func (*CareerTaskUpsertOne) Update ¶
func (u *CareerTaskUpsertOne) Update(set func(*CareerTaskUpsert)) *CareerTaskUpsertOne
Update allows overriding fields `UPDATE` values. See the CareerTaskCreate.OnConflict documentation for more info.
func (*CareerTaskUpsertOne) UpdateName ¶
func (u *CareerTaskUpsertOne) UpdateName() *CareerTaskUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*CareerTaskUpsertOne) UpdateNewValues ¶
func (u *CareerTaskUpsertOne) UpdateNewValues() *CareerTaskUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.CareerTask.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*CareerTaskUpsertOne) UpdateUpdateTime ¶
func (u *CareerTaskUpsertOne) UpdateUpdateTime() *CareerTaskUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // CareerSkill is the client for interacting with the CareerSkill builders. CareerSkill *CareerSkillClient // CareerSkillGroup is the client for interacting with the CareerSkillGroup builders. CareerSkillGroup *CareerSkillGroupClient // CareerTask is the client for interacting with the CareerTask builders. CareerTask *CareerTaskClient // CareerTaskDescription is the client for interacting with the CareerTaskDescription builders. CareerTaskDescription *CareerTaskDescriptionClient // Skill is the client for interacting with the Skill builders. Skill *SkillClient // SkillTag is the client for interacting with the SkillTag builders. SkillTag *SkillTagClient // User is the client for interacting with the User builders. User *UserClient // UserActivity is the client for interacting with the UserActivity builders. UserActivity *UserActivityClient // UserCareer is the client for interacting with the UserCareer builders. UserCareer *UserCareerClient // UserCareerDescription is the client for interacting with the UserCareerDescription builders. UserCareerDescription *UserCareerDescriptionClient // UserCareerGroup is the client for interacting with the UserCareerGroup builders. UserCareerGroup *UserCareerGroupClient // UserNote is the client for interacting with the UserNote builders. UserNote *UserNoteClient // UserNoteItem is the client for interacting with the UserNoteItem builders. UserNoteItem *UserNoteItemClient // UserQualification is the client for interacting with the UserQualification builders. UserQualification *UserQualificationClient // 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(). CareerSkill. Query(). Count(ctx)
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(...)`.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type Skill ¶
type Skill struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Code holds the value of the "code" field. Code string `json:"code,omitempty"` // URL holds the value of the "url" field. URL *string `json:"url,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the SkillQuery when eager-loading is set. Edges SkillEdges `json:"edges"` // contains filtered or unexported fields }
Skill is the model entity for the Skill schema.
func (*Skill) QueryCareerSkills ¶
func (s *Skill) QueryCareerSkills() *CareerSkillQuery
QueryCareerSkills queries the "careerSkills" edge of the Skill entity.
func (*Skill) QuerySkillTag ¶
func (s *Skill) QuerySkillTag() *SkillTagQuery
QuerySkillTag queries the "skillTag" edge of the Skill entity.
func (*Skill) Unwrap ¶
Unwrap unwraps the Skill 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 (*Skill) Update ¶
func (s *Skill) Update() *SkillUpdateOne
Update returns a builder for updating this Skill. Note that you need to call Skill.Unwrap() before calling this method if this Skill was returned from a transaction, and the transaction was committed or rolled back.
type SkillClient ¶
type SkillClient struct {
// contains filtered or unexported fields
}
SkillClient is a client for the Skill schema.
func NewSkillClient ¶
func NewSkillClient(c config) *SkillClient
NewSkillClient returns a client for the Skill from the given config.
func (*SkillClient) Create ¶
func (c *SkillClient) Create() *SkillCreate
Create returns a builder for creating a Skill entity.
func (*SkillClient) CreateBulk ¶
func (c *SkillClient) CreateBulk(builders ...*SkillCreate) *SkillCreateBulk
CreateBulk returns a builder for creating a bulk of Skill entities.
func (*SkillClient) Delete ¶
func (c *SkillClient) Delete() *SkillDelete
Delete returns a delete builder for Skill.
func (*SkillClient) DeleteOne ¶
func (c *SkillClient) DeleteOne(s *Skill) *SkillDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SkillClient) DeleteOneID ¶
func (c *SkillClient) DeleteOneID(id int) *SkillDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SkillClient) GetX ¶
func (c *SkillClient) GetX(ctx context.Context, id int) *Skill
GetX is like Get, but panics if an error occurs.
func (*SkillClient) Intercept ¶
func (c *SkillClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `skill.Intercept(f(g(h())))`.
func (*SkillClient) Interceptors ¶
func (c *SkillClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*SkillClient) Query ¶
func (c *SkillClient) Query() *SkillQuery
Query returns a query builder for Skill.
func (*SkillClient) QueryCareerSkills ¶
func (c *SkillClient) QueryCareerSkills(s *Skill) *CareerSkillQuery
QueryCareerSkills queries the careerSkills edge of a Skill.
func (*SkillClient) QuerySkillTag ¶
func (c *SkillClient) QuerySkillTag(s *Skill) *SkillTagQuery
QuerySkillTag queries the skillTag edge of a Skill.
func (*SkillClient) Update ¶
func (c *SkillClient) Update() *SkillUpdate
Update returns an update builder for Skill.
func (*SkillClient) UpdateOne ¶
func (c *SkillClient) UpdateOne(s *Skill) *SkillUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SkillClient) UpdateOneID ¶
func (c *SkillClient) UpdateOneID(id int) *SkillUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SkillClient) Use ¶
func (c *SkillClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `skill.Hooks(f(g(h())))`.
type SkillCreate ¶
type SkillCreate struct {
// contains filtered or unexported fields
}
SkillCreate is the builder for creating a Skill entity.
func (*SkillCreate) AddCareerSkillIDs ¶
func (sc *SkillCreate) AddCareerSkillIDs(ids ...int) *SkillCreate
AddCareerSkillIDs adds the "careerSkills" edge to the CareerSkill entity by IDs.
func (*SkillCreate) AddCareerSkills ¶
func (sc *SkillCreate) AddCareerSkills(c ...*CareerSkill) *SkillCreate
AddCareerSkills adds the "careerSkills" edges to the CareerSkill entity.
func (*SkillCreate) Exec ¶
func (sc *SkillCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillCreate) ExecX ¶
func (sc *SkillCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillCreate) Mutation ¶
func (sc *SkillCreate) Mutation() *SkillMutation
Mutation returns the SkillMutation object of the builder.
func (*SkillCreate) OnConflict ¶
func (sc *SkillCreate) OnConflict(opts ...sql.ConflictOption) *SkillUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Skill.Create(). SetCreateTime(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.SkillUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*SkillCreate) OnConflictColumns ¶
func (sc *SkillCreate) OnConflictColumns(columns ...string) *SkillUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Skill.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*SkillCreate) Save ¶
func (sc *SkillCreate) Save(ctx context.Context) (*Skill, error)
Save creates the Skill in the database.
func (*SkillCreate) SaveX ¶
func (sc *SkillCreate) SaveX(ctx context.Context) *Skill
SaveX calls Save and panics if Save returns an error.
func (*SkillCreate) SetCode ¶
func (sc *SkillCreate) SetCode(s string) *SkillCreate
SetCode sets the "code" field.
func (*SkillCreate) SetCreateTime ¶
func (sc *SkillCreate) SetCreateTime(t time.Time) *SkillCreate
SetCreateTime sets the "create_time" field.
func (*SkillCreate) SetName ¶
func (sc *SkillCreate) SetName(s string) *SkillCreate
SetName sets the "name" field.
func (*SkillCreate) SetNillableCreateTime ¶
func (sc *SkillCreate) SetNillableCreateTime(t *time.Time) *SkillCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*SkillCreate) SetNillableURL ¶
func (sc *SkillCreate) SetNillableURL(s *string) *SkillCreate
SetNillableURL sets the "url" field if the given value is not nil.
func (*SkillCreate) SetNillableUpdateTime ¶
func (sc *SkillCreate) SetNillableUpdateTime(t *time.Time) *SkillCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*SkillCreate) SetSkillTag ¶
func (sc *SkillCreate) SetSkillTag(s *SkillTag) *SkillCreate
SetSkillTag sets the "skillTag" edge to the SkillTag entity.
func (*SkillCreate) SetSkillTagID ¶
func (sc *SkillCreate) SetSkillTagID(id int) *SkillCreate
SetSkillTagID sets the "skillTag" edge to the SkillTag entity by ID.
func (*SkillCreate) SetURL ¶
func (sc *SkillCreate) SetURL(s string) *SkillCreate
SetURL sets the "url" field.
func (*SkillCreate) SetUpdateTime ¶
func (sc *SkillCreate) SetUpdateTime(t time.Time) *SkillCreate
SetUpdateTime sets the "update_time" field.
type SkillCreateBulk ¶
type SkillCreateBulk struct {
// contains filtered or unexported fields
}
SkillCreateBulk is the builder for creating many Skill entities in bulk.
func (*SkillCreateBulk) Exec ¶
func (scb *SkillCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillCreateBulk) ExecX ¶
func (scb *SkillCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillCreateBulk) OnConflict ¶
func (scb *SkillCreateBulk) OnConflict(opts ...sql.ConflictOption) *SkillUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Skill.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.SkillUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*SkillCreateBulk) OnConflictColumns ¶
func (scb *SkillCreateBulk) OnConflictColumns(columns ...string) *SkillUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Skill.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type SkillDelete ¶
type SkillDelete struct {
// contains filtered or unexported fields
}
SkillDelete is the builder for deleting a Skill entity.
func (*SkillDelete) Exec ¶
func (sd *SkillDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SkillDelete) ExecX ¶
func (sd *SkillDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SkillDelete) Where ¶
func (sd *SkillDelete) Where(ps ...predicate.Skill) *SkillDelete
Where appends a list predicates to the SkillDelete builder.
type SkillDeleteOne ¶
type SkillDeleteOne struct {
// contains filtered or unexported fields
}
SkillDeleteOne is the builder for deleting a single Skill entity.
func (*SkillDeleteOne) Exec ¶
func (sdo *SkillDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SkillDeleteOne) ExecX ¶
func (sdo *SkillDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillDeleteOne) Where ¶
func (sdo *SkillDeleteOne) Where(ps ...predicate.Skill) *SkillDeleteOne
Where appends a list predicates to the SkillDelete builder.
type SkillEdges ¶
type SkillEdges struct { // SkillTag holds the value of the skillTag edge. SkillTag *SkillTag `json:"skillTag,omitempty"` // CareerSkills holds the value of the careerSkills edge. CareerSkills []*CareerSkill `json:"careerSkills,omitempty"` // contains filtered or unexported fields }
SkillEdges holds the relations/edges for other nodes in the graph.
func (SkillEdges) CareerSkillsOrErr ¶
func (e SkillEdges) CareerSkillsOrErr() ([]*CareerSkill, error)
CareerSkillsOrErr returns the CareerSkills value or an error if the edge was not loaded in eager-loading.
func (SkillEdges) SkillTagOrErr ¶
func (e SkillEdges) SkillTagOrErr() (*SkillTag, error)
SkillTagOrErr returns the SkillTag value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type SkillGroupBy ¶
type SkillGroupBy struct {
// contains filtered or unexported fields
}
SkillGroupBy is the group-by builder for Skill entities.
func (*SkillGroupBy) Aggregate ¶
func (sgb *SkillGroupBy) Aggregate(fns ...AggregateFunc) *SkillGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SkillGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SkillGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SkillGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SkillGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SkillGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SkillGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SkillGroupBy) Scan ¶
func (sgb *SkillGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SkillGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SkillMutation ¶
type SkillMutation struct {
// contains filtered or unexported fields
}
SkillMutation represents an operation that mutates the Skill nodes in the graph.
func (*SkillMutation) AddCareerSkillIDs ¶
func (m *SkillMutation) AddCareerSkillIDs(ids ...int)
AddCareerSkillIDs adds the "careerSkills" edge to the CareerSkill entity by ids.
func (*SkillMutation) AddField ¶
func (m *SkillMutation) 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 (*SkillMutation) AddedEdges ¶
func (m *SkillMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SkillMutation) AddedField ¶
func (m *SkillMutation) 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 (*SkillMutation) AddedFields ¶
func (m *SkillMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SkillMutation) AddedIDs ¶
func (m *SkillMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SkillMutation) CareerSkillsCleared ¶
func (m *SkillMutation) CareerSkillsCleared() bool
CareerSkillsCleared reports if the "careerSkills" edge to the CareerSkill entity was cleared.
func (*SkillMutation) CareerSkillsIDs ¶
func (m *SkillMutation) CareerSkillsIDs() (ids []int)
CareerSkillsIDs returns the "careerSkills" edge IDs in the mutation.
func (*SkillMutation) ClearCareerSkills ¶
func (m *SkillMutation) ClearCareerSkills()
ClearCareerSkills clears the "careerSkills" edge to the CareerSkill entity.
func (*SkillMutation) ClearEdge ¶
func (m *SkillMutation) 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 (*SkillMutation) ClearField ¶
func (m *SkillMutation) 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 (*SkillMutation) ClearSkillTag ¶
func (m *SkillMutation) ClearSkillTag()
ClearSkillTag clears the "skillTag" edge to the SkillTag entity.
func (*SkillMutation) ClearURL ¶
func (m *SkillMutation) ClearURL()
ClearURL clears the value of the "url" field.
func (*SkillMutation) ClearedEdges ¶
func (m *SkillMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SkillMutation) ClearedFields ¶
func (m *SkillMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SkillMutation) Client ¶
func (m SkillMutation) 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 (*SkillMutation) Code ¶
func (m *SkillMutation) Code() (r string, exists bool)
Code returns the value of the "code" field in the mutation.
func (*SkillMutation) CreateTime ¶
func (m *SkillMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*SkillMutation) EdgeCleared ¶
func (m *SkillMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SkillMutation) Field ¶
func (m *SkillMutation) 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 (*SkillMutation) FieldCleared ¶
func (m *SkillMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SkillMutation) Fields ¶
func (m *SkillMutation) 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 (*SkillMutation) ID ¶
func (m *SkillMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*SkillMutation) IDs ¶
func (m *SkillMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*SkillMutation) Name ¶
func (m *SkillMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*SkillMutation) OldCode ¶
func (m *SkillMutation) OldCode(ctx context.Context) (v string, err error)
OldCode returns the old "code" field's value of the Skill entity. If the Skill object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SkillMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the Skill entity. If the Skill object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SkillMutation) 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 (*SkillMutation) OldName ¶
func (m *SkillMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Skill entity. If the Skill object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SkillMutation) OldURL ¶
func (m *SkillMutation) OldURL(ctx context.Context) (v *string, err error)
OldURL returns the old "url" field's value of the Skill entity. If the Skill object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SkillMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the Skill entity. If the Skill object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SkillMutation) RemoveCareerSkillIDs ¶
func (m *SkillMutation) RemoveCareerSkillIDs(ids ...int)
RemoveCareerSkillIDs removes the "careerSkills" edge to the CareerSkill entity by IDs.
func (*SkillMutation) RemovedCareerSkillsIDs ¶
func (m *SkillMutation) RemovedCareerSkillsIDs() (ids []int)
RemovedCareerSkills returns the removed IDs of the "careerSkills" edge to the CareerSkill entity.
func (*SkillMutation) RemovedEdges ¶
func (m *SkillMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SkillMutation) RemovedIDs ¶
func (m *SkillMutation) 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 (*SkillMutation) ResetCareerSkills ¶
func (m *SkillMutation) ResetCareerSkills()
ResetCareerSkills resets all changes to the "careerSkills" edge.
func (*SkillMutation) ResetCode ¶
func (m *SkillMutation) ResetCode()
ResetCode resets all changes to the "code" field.
func (*SkillMutation) ResetCreateTime ¶
func (m *SkillMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*SkillMutation) ResetEdge ¶
func (m *SkillMutation) 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 (*SkillMutation) ResetField ¶
func (m *SkillMutation) 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 (*SkillMutation) ResetName ¶
func (m *SkillMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*SkillMutation) ResetSkillTag ¶
func (m *SkillMutation) ResetSkillTag()
ResetSkillTag resets all changes to the "skillTag" edge.
func (*SkillMutation) ResetURL ¶
func (m *SkillMutation) ResetURL()
ResetURL resets all changes to the "url" field.
func (*SkillMutation) ResetUpdateTime ¶
func (m *SkillMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*SkillMutation) SetCode ¶
func (m *SkillMutation) SetCode(s string)
SetCode sets the "code" field.
func (*SkillMutation) SetCreateTime ¶
func (m *SkillMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*SkillMutation) SetField ¶
func (m *SkillMutation) 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 (*SkillMutation) SetName ¶
func (m *SkillMutation) SetName(s string)
SetName sets the "name" field.
func (*SkillMutation) SetOp ¶
func (m *SkillMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*SkillMutation) SetSkillTagID ¶
func (m *SkillMutation) SetSkillTagID(id int)
SetSkillTagID sets the "skillTag" edge to the SkillTag entity by id.
func (*SkillMutation) SetURL ¶
func (m *SkillMutation) SetURL(s string)
SetURL sets the "url" field.
func (*SkillMutation) SetUpdateTime ¶
func (m *SkillMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*SkillMutation) SkillTagCleared ¶
func (m *SkillMutation) SkillTagCleared() bool
SkillTagCleared reports if the "skillTag" edge to the SkillTag entity was cleared.
func (*SkillMutation) SkillTagID ¶
func (m *SkillMutation) SkillTagID() (id int, exists bool)
SkillTagID returns the "skillTag" edge ID in the mutation.
func (*SkillMutation) SkillTagIDs ¶
func (m *SkillMutation) SkillTagIDs() (ids []int)
SkillTagIDs returns the "skillTag" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SkillTagID instead. It exists only for internal usage by the builders.
func (SkillMutation) Tx ¶
func (m SkillMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SkillMutation) Type ¶
func (m *SkillMutation) Type() string
Type returns the node type of this mutation (Skill).
func (*SkillMutation) URL ¶
func (m *SkillMutation) URL() (r string, exists bool)
URL returns the value of the "url" field in the mutation.
func (*SkillMutation) URLCleared ¶
func (m *SkillMutation) URLCleared() bool
URLCleared returns if the "url" field was cleared in this mutation.
func (*SkillMutation) UpdateTime ¶
func (m *SkillMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*SkillMutation) Where ¶
func (m *SkillMutation) Where(ps ...predicate.Skill)
Where appends a list predicates to the SkillMutation builder.
func (*SkillMutation) WhereP ¶
func (m *SkillMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the SkillMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type SkillQuery ¶
type SkillQuery struct {
// contains filtered or unexported fields
}
SkillQuery is the builder for querying Skill entities.
func (*SkillQuery) Aggregate ¶
func (sq *SkillQuery) Aggregate(fns ...AggregateFunc) *SkillSelect
Aggregate returns a SkillSelect configured with the given aggregations.
func (*SkillQuery) All ¶
func (sq *SkillQuery) All(ctx context.Context) ([]*Skill, error)
All executes the query and returns a list of Skills.
func (*SkillQuery) AllX ¶
func (sq *SkillQuery) AllX(ctx context.Context) []*Skill
AllX is like All, but panics if an error occurs.
func (*SkillQuery) Clone ¶
func (sq *SkillQuery) Clone() *SkillQuery
Clone returns a duplicate of the SkillQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SkillQuery) Count ¶
func (sq *SkillQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SkillQuery) CountX ¶
func (sq *SkillQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SkillQuery) Exist ¶
func (sq *SkillQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SkillQuery) ExistX ¶
func (sq *SkillQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SkillQuery) First ¶
func (sq *SkillQuery) First(ctx context.Context) (*Skill, error)
First returns the first Skill entity from the query. Returns a *NotFoundError when no Skill was found.
func (*SkillQuery) FirstID ¶
func (sq *SkillQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Skill ID from the query. Returns a *NotFoundError when no Skill ID was found.
func (*SkillQuery) FirstIDX ¶
func (sq *SkillQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*SkillQuery) FirstX ¶
func (sq *SkillQuery) FirstX(ctx context.Context) *Skill
FirstX is like First, but panics if an error occurs.
func (*SkillQuery) GroupBy ¶
func (sq *SkillQuery) GroupBy(field string, fields ...string) *SkillGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.Skill.Query(). GroupBy(skill.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SkillQuery) IDs ¶
func (sq *SkillQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Skill IDs.
func (*SkillQuery) IDsX ¶
func (sq *SkillQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*SkillQuery) Limit ¶
func (sq *SkillQuery) Limit(limit int) *SkillQuery
Limit the number of records to be returned by this query.
func (*SkillQuery) Offset ¶
func (sq *SkillQuery) Offset(offset int) *SkillQuery
Offset to start from.
func (*SkillQuery) Only ¶
func (sq *SkillQuery) Only(ctx context.Context) (*Skill, error)
Only returns a single Skill entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Skill entity is found. Returns a *NotFoundError when no Skill entities are found.
func (*SkillQuery) OnlyID ¶
func (sq *SkillQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Skill ID in the query. Returns a *NotSingularError when more than one Skill ID is found. Returns a *NotFoundError when no entities are found.
func (*SkillQuery) OnlyIDX ¶
func (sq *SkillQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SkillQuery) OnlyX ¶
func (sq *SkillQuery) OnlyX(ctx context.Context) *Skill
OnlyX is like Only, but panics if an error occurs.
func (*SkillQuery) Order ¶
func (sq *SkillQuery) Order(o ...skill.OrderOption) *SkillQuery
Order specifies how the records should be ordered.
func (*SkillQuery) QueryCareerSkills ¶
func (sq *SkillQuery) QueryCareerSkills() *CareerSkillQuery
QueryCareerSkills chains the current query on the "careerSkills" edge.
func (*SkillQuery) QuerySkillTag ¶
func (sq *SkillQuery) QuerySkillTag() *SkillTagQuery
QuerySkillTag chains the current query on the "skillTag" edge.
func (*SkillQuery) Select ¶
func (sq *SkillQuery) Select(fields ...string) *SkillSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.Skill.Query(). Select(skill.FieldCreateTime). Scan(ctx, &v)
func (*SkillQuery) Unique ¶
func (sq *SkillQuery) Unique(unique bool) *SkillQuery
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 (*SkillQuery) Where ¶
func (sq *SkillQuery) Where(ps ...predicate.Skill) *SkillQuery
Where adds a new predicate for the SkillQuery builder.
func (*SkillQuery) WithCareerSkills ¶
func (sq *SkillQuery) WithCareerSkills(opts ...func(*CareerSkillQuery)) *SkillQuery
WithCareerSkills tells the query-builder to eager-load the nodes that are connected to the "careerSkills" edge. The optional arguments are used to configure the query builder of the edge.
func (*SkillQuery) WithSkillTag ¶
func (sq *SkillQuery) WithSkillTag(opts ...func(*SkillTagQuery)) *SkillQuery
WithSkillTag tells the query-builder to eager-load the nodes that are connected to the "skillTag" edge. The optional arguments are used to configure the query builder of the edge.
type SkillSelect ¶
type SkillSelect struct { *SkillQuery // contains filtered or unexported fields }
SkillSelect is the builder for selecting fields of Skill entities.
func (*SkillSelect) Aggregate ¶
func (ss *SkillSelect) Aggregate(fns ...AggregateFunc) *SkillSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SkillSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SkillSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SkillSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SkillSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SkillSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SkillSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SkillSelect) Scan ¶
func (ss *SkillSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SkillSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SkillTag ¶
type SkillTag struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Code holds the value of the "code" field. Code string `json:"code,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the SkillTagQuery when eager-loading is set. Edges SkillTagEdges `json:"edges"` // contains filtered or unexported fields }
SkillTag is the model entity for the SkillTag schema.
func (*SkillTag) QuerySkills ¶
func (st *SkillTag) QuerySkills() *SkillQuery
QuerySkills queries the "skills" edge of the SkillTag entity.
func (*SkillTag) Unwrap ¶
Unwrap unwraps the SkillTag 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 (*SkillTag) Update ¶
func (st *SkillTag) Update() *SkillTagUpdateOne
Update returns a builder for updating this SkillTag. Note that you need to call SkillTag.Unwrap() before calling this method if this SkillTag was returned from a transaction, and the transaction was committed or rolled back.
type SkillTagClient ¶
type SkillTagClient struct {
// contains filtered or unexported fields
}
SkillTagClient is a client for the SkillTag schema.
func NewSkillTagClient ¶
func NewSkillTagClient(c config) *SkillTagClient
NewSkillTagClient returns a client for the SkillTag from the given config.
func (*SkillTagClient) Create ¶
func (c *SkillTagClient) Create() *SkillTagCreate
Create returns a builder for creating a SkillTag entity.
func (*SkillTagClient) CreateBulk ¶
func (c *SkillTagClient) CreateBulk(builders ...*SkillTagCreate) *SkillTagCreateBulk
CreateBulk returns a builder for creating a bulk of SkillTag entities.
func (*SkillTagClient) Delete ¶
func (c *SkillTagClient) Delete() *SkillTagDelete
Delete returns a delete builder for SkillTag.
func (*SkillTagClient) DeleteOne ¶
func (c *SkillTagClient) DeleteOne(st *SkillTag) *SkillTagDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SkillTagClient) DeleteOneID ¶
func (c *SkillTagClient) DeleteOneID(id int) *SkillTagDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SkillTagClient) GetX ¶
func (c *SkillTagClient) GetX(ctx context.Context, id int) *SkillTag
GetX is like Get, but panics if an error occurs.
func (*SkillTagClient) Hooks ¶
func (c *SkillTagClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SkillTagClient) Intercept ¶
func (c *SkillTagClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `skilltag.Intercept(f(g(h())))`.
func (*SkillTagClient) Interceptors ¶
func (c *SkillTagClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*SkillTagClient) Query ¶
func (c *SkillTagClient) Query() *SkillTagQuery
Query returns a query builder for SkillTag.
func (*SkillTagClient) QuerySkills ¶
func (c *SkillTagClient) QuerySkills(st *SkillTag) *SkillQuery
QuerySkills queries the skills edge of a SkillTag.
func (*SkillTagClient) Update ¶
func (c *SkillTagClient) Update() *SkillTagUpdate
Update returns an update builder for SkillTag.
func (*SkillTagClient) UpdateOne ¶
func (c *SkillTagClient) UpdateOne(st *SkillTag) *SkillTagUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SkillTagClient) UpdateOneID ¶
func (c *SkillTagClient) UpdateOneID(id int) *SkillTagUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SkillTagClient) Use ¶
func (c *SkillTagClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `skilltag.Hooks(f(g(h())))`.
type SkillTagCreate ¶
type SkillTagCreate struct {
// contains filtered or unexported fields
}
SkillTagCreate is the builder for creating a SkillTag entity.
func (*SkillTagCreate) AddSkillIDs ¶
func (stc *SkillTagCreate) AddSkillIDs(ids ...int) *SkillTagCreate
AddSkillIDs adds the "skills" edge to the Skill entity by IDs.
func (*SkillTagCreate) AddSkills ¶
func (stc *SkillTagCreate) AddSkills(s ...*Skill) *SkillTagCreate
AddSkills adds the "skills" edges to the Skill entity.
func (*SkillTagCreate) Exec ¶
func (stc *SkillTagCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillTagCreate) ExecX ¶
func (stc *SkillTagCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillTagCreate) Mutation ¶
func (stc *SkillTagCreate) Mutation() *SkillTagMutation
Mutation returns the SkillTagMutation object of the builder.
func (*SkillTagCreate) OnConflict ¶
func (stc *SkillTagCreate) OnConflict(opts ...sql.ConflictOption) *SkillTagUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.SkillTag.Create(). SetName(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.SkillTagUpsert) { SetName(v+v). }). Exec(ctx)
func (*SkillTagCreate) OnConflictColumns ¶
func (stc *SkillTagCreate) OnConflictColumns(columns ...string) *SkillTagUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.SkillTag.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*SkillTagCreate) Save ¶
func (stc *SkillTagCreate) Save(ctx context.Context) (*SkillTag, error)
Save creates the SkillTag in the database.
func (*SkillTagCreate) SaveX ¶
func (stc *SkillTagCreate) SaveX(ctx context.Context) *SkillTag
SaveX calls Save and panics if Save returns an error.
func (*SkillTagCreate) SetCode ¶
func (stc *SkillTagCreate) SetCode(s string) *SkillTagCreate
SetCode sets the "code" field.
func (*SkillTagCreate) SetName ¶
func (stc *SkillTagCreate) SetName(s string) *SkillTagCreate
SetName sets the "name" field.
type SkillTagCreateBulk ¶
type SkillTagCreateBulk struct {
// contains filtered or unexported fields
}
SkillTagCreateBulk is the builder for creating many SkillTag entities in bulk.
func (*SkillTagCreateBulk) Exec ¶
func (stcb *SkillTagCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillTagCreateBulk) ExecX ¶
func (stcb *SkillTagCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillTagCreateBulk) OnConflict ¶
func (stcb *SkillTagCreateBulk) OnConflict(opts ...sql.ConflictOption) *SkillTagUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.SkillTag.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.SkillTagUpsert) { SetName(v+v). }). Exec(ctx)
func (*SkillTagCreateBulk) OnConflictColumns ¶
func (stcb *SkillTagCreateBulk) OnConflictColumns(columns ...string) *SkillTagUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.SkillTag.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type SkillTagDelete ¶
type SkillTagDelete struct {
// contains filtered or unexported fields
}
SkillTagDelete is the builder for deleting a SkillTag entity.
func (*SkillTagDelete) Exec ¶
func (std *SkillTagDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SkillTagDelete) ExecX ¶
func (std *SkillTagDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SkillTagDelete) Where ¶
func (std *SkillTagDelete) Where(ps ...predicate.SkillTag) *SkillTagDelete
Where appends a list predicates to the SkillTagDelete builder.
type SkillTagDeleteOne ¶
type SkillTagDeleteOne struct {
// contains filtered or unexported fields
}
SkillTagDeleteOne is the builder for deleting a single SkillTag entity.
func (*SkillTagDeleteOne) Exec ¶
func (stdo *SkillTagDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SkillTagDeleteOne) ExecX ¶
func (stdo *SkillTagDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillTagDeleteOne) Where ¶
func (stdo *SkillTagDeleteOne) Where(ps ...predicate.SkillTag) *SkillTagDeleteOne
Where appends a list predicates to the SkillTagDelete builder.
type SkillTagEdges ¶
type SkillTagEdges struct { // Skills holds the value of the skills edge. Skills []*Skill `json:"skills,omitempty"` // contains filtered or unexported fields }
SkillTagEdges holds the relations/edges for other nodes in the graph.
func (SkillTagEdges) SkillsOrErr ¶
func (e SkillTagEdges) SkillsOrErr() ([]*Skill, error)
SkillsOrErr returns the Skills value or an error if the edge was not loaded in eager-loading.
type SkillTagGroupBy ¶
type SkillTagGroupBy struct {
// contains filtered or unexported fields
}
SkillTagGroupBy is the group-by builder for SkillTag entities.
func (*SkillTagGroupBy) Aggregate ¶
func (stgb *SkillTagGroupBy) Aggregate(fns ...AggregateFunc) *SkillTagGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SkillTagGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SkillTagGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SkillTagGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SkillTagGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SkillTagGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SkillTagGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SkillTagGroupBy) Scan ¶
func (stgb *SkillTagGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SkillTagGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SkillTagMutation ¶
type SkillTagMutation struct {
// contains filtered or unexported fields
}
SkillTagMutation represents an operation that mutates the SkillTag nodes in the graph.
func (*SkillTagMutation) AddField ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) AddSkillIDs ¶
func (m *SkillTagMutation) AddSkillIDs(ids ...int)
AddSkillIDs adds the "skills" edge to the Skill entity by ids.
func (*SkillTagMutation) AddedEdges ¶
func (m *SkillTagMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SkillTagMutation) AddedField ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) AddedFields ¶
func (m *SkillTagMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SkillTagMutation) AddedIDs ¶
func (m *SkillTagMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SkillTagMutation) ClearEdge ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) ClearField ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) ClearSkills ¶
func (m *SkillTagMutation) ClearSkills()
ClearSkills clears the "skills" edge to the Skill entity.
func (*SkillTagMutation) ClearedEdges ¶
func (m *SkillTagMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SkillTagMutation) ClearedFields ¶
func (m *SkillTagMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SkillTagMutation) Client ¶
func (m SkillTagMutation) 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 (*SkillTagMutation) Code ¶
func (m *SkillTagMutation) Code() (r string, exists bool)
Code returns the value of the "code" field in the mutation.
func (*SkillTagMutation) EdgeCleared ¶
func (m *SkillTagMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SkillTagMutation) Field ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) FieldCleared ¶
func (m *SkillTagMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SkillTagMutation) Fields ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) ID ¶
func (m *SkillTagMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*SkillTagMutation) IDs ¶
func (m *SkillTagMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*SkillTagMutation) Name ¶
func (m *SkillTagMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*SkillTagMutation) OldCode ¶
func (m *SkillTagMutation) OldCode(ctx context.Context) (v string, err error)
OldCode returns the old "code" field's value of the SkillTag entity. If the SkillTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SkillTagMutation) 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 (*SkillTagMutation) OldName ¶
func (m *SkillTagMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the SkillTag entity. If the SkillTag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SkillTagMutation) RemoveSkillIDs ¶
func (m *SkillTagMutation) RemoveSkillIDs(ids ...int)
RemoveSkillIDs removes the "skills" edge to the Skill entity by IDs.
func (*SkillTagMutation) RemovedEdges ¶
func (m *SkillTagMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SkillTagMutation) RemovedIDs ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) RemovedSkillsIDs ¶
func (m *SkillTagMutation) RemovedSkillsIDs() (ids []int)
RemovedSkills returns the removed IDs of the "skills" edge to the Skill entity.
func (*SkillTagMutation) ResetCode ¶
func (m *SkillTagMutation) ResetCode()
ResetCode resets all changes to the "code" field.
func (*SkillTagMutation) ResetEdge ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) ResetField ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) ResetName ¶
func (m *SkillTagMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*SkillTagMutation) ResetSkills ¶
func (m *SkillTagMutation) ResetSkills()
ResetSkills resets all changes to the "skills" edge.
func (*SkillTagMutation) SetCode ¶
func (m *SkillTagMutation) SetCode(s string)
SetCode sets the "code" field.
func (*SkillTagMutation) SetField ¶
func (m *SkillTagMutation) 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 (*SkillTagMutation) SetName ¶
func (m *SkillTagMutation) SetName(s string)
SetName sets the "name" field.
func (*SkillTagMutation) SetOp ¶
func (m *SkillTagMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*SkillTagMutation) SkillsCleared ¶
func (m *SkillTagMutation) SkillsCleared() bool
SkillsCleared reports if the "skills" edge to the Skill entity was cleared.
func (*SkillTagMutation) SkillsIDs ¶
func (m *SkillTagMutation) SkillsIDs() (ids []int)
SkillsIDs returns the "skills" edge IDs in the mutation.
func (SkillTagMutation) Tx ¶
func (m SkillTagMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SkillTagMutation) Type ¶
func (m *SkillTagMutation) Type() string
Type returns the node type of this mutation (SkillTag).
func (*SkillTagMutation) Where ¶
func (m *SkillTagMutation) Where(ps ...predicate.SkillTag)
Where appends a list predicates to the SkillTagMutation builder.
func (*SkillTagMutation) WhereP ¶
func (m *SkillTagMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the SkillTagMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type SkillTagQuery ¶
type SkillTagQuery struct {
// contains filtered or unexported fields
}
SkillTagQuery is the builder for querying SkillTag entities.
func (*SkillTagQuery) Aggregate ¶
func (stq *SkillTagQuery) Aggregate(fns ...AggregateFunc) *SkillTagSelect
Aggregate returns a SkillTagSelect configured with the given aggregations.
func (*SkillTagQuery) All ¶
func (stq *SkillTagQuery) All(ctx context.Context) ([]*SkillTag, error)
All executes the query and returns a list of SkillTags.
func (*SkillTagQuery) AllX ¶
func (stq *SkillTagQuery) AllX(ctx context.Context) []*SkillTag
AllX is like All, but panics if an error occurs.
func (*SkillTagQuery) Clone ¶
func (stq *SkillTagQuery) Clone() *SkillTagQuery
Clone returns a duplicate of the SkillTagQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SkillTagQuery) Count ¶
func (stq *SkillTagQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SkillTagQuery) CountX ¶
func (stq *SkillTagQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SkillTagQuery) Exist ¶
func (stq *SkillTagQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SkillTagQuery) ExistX ¶
func (stq *SkillTagQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SkillTagQuery) First ¶
func (stq *SkillTagQuery) First(ctx context.Context) (*SkillTag, error)
First returns the first SkillTag entity from the query. Returns a *NotFoundError when no SkillTag was found.
func (*SkillTagQuery) FirstID ¶
func (stq *SkillTagQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first SkillTag ID from the query. Returns a *NotFoundError when no SkillTag ID was found.
func (*SkillTagQuery) FirstIDX ¶
func (stq *SkillTagQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*SkillTagQuery) FirstX ¶
func (stq *SkillTagQuery) FirstX(ctx context.Context) *SkillTag
FirstX is like First, but panics if an error occurs.
func (*SkillTagQuery) GroupBy ¶
func (stq *SkillTagQuery) GroupBy(field string, fields ...string) *SkillTagGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.SkillTag.Query(). GroupBy(skilltag.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*SkillTagQuery) IDs ¶
func (stq *SkillTagQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of SkillTag IDs.
func (*SkillTagQuery) IDsX ¶
func (stq *SkillTagQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*SkillTagQuery) Limit ¶
func (stq *SkillTagQuery) Limit(limit int) *SkillTagQuery
Limit the number of records to be returned by this query.
func (*SkillTagQuery) Offset ¶
func (stq *SkillTagQuery) Offset(offset int) *SkillTagQuery
Offset to start from.
func (*SkillTagQuery) Only ¶
func (stq *SkillTagQuery) Only(ctx context.Context) (*SkillTag, error)
Only returns a single SkillTag entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one SkillTag entity is found. Returns a *NotFoundError when no SkillTag entities are found.
func (*SkillTagQuery) OnlyID ¶
func (stq *SkillTagQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only SkillTag ID in the query. Returns a *NotSingularError when more than one SkillTag ID is found. Returns a *NotFoundError when no entities are found.
func (*SkillTagQuery) OnlyIDX ¶
func (stq *SkillTagQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SkillTagQuery) OnlyX ¶
func (stq *SkillTagQuery) OnlyX(ctx context.Context) *SkillTag
OnlyX is like Only, but panics if an error occurs.
func (*SkillTagQuery) Order ¶
func (stq *SkillTagQuery) Order(o ...skilltag.OrderOption) *SkillTagQuery
Order specifies how the records should be ordered.
func (*SkillTagQuery) QuerySkills ¶
func (stq *SkillTagQuery) QuerySkills() *SkillQuery
QuerySkills chains the current query on the "skills" edge.
func (*SkillTagQuery) Select ¶
func (stq *SkillTagQuery) Select(fields ...string) *SkillTagSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.SkillTag.Query(). Select(skilltag.FieldName). Scan(ctx, &v)
func (*SkillTagQuery) Unique ¶
func (stq *SkillTagQuery) Unique(unique bool) *SkillTagQuery
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 (*SkillTagQuery) Where ¶
func (stq *SkillTagQuery) Where(ps ...predicate.SkillTag) *SkillTagQuery
Where adds a new predicate for the SkillTagQuery builder.
func (*SkillTagQuery) WithSkills ¶
func (stq *SkillTagQuery) WithSkills(opts ...func(*SkillQuery)) *SkillTagQuery
WithSkills tells the query-builder to eager-load the nodes that are connected to the "skills" edge. The optional arguments are used to configure the query builder of the edge.
type SkillTagSelect ¶
type SkillTagSelect struct { *SkillTagQuery // contains filtered or unexported fields }
SkillTagSelect is the builder for selecting fields of SkillTag entities.
func (*SkillTagSelect) Aggregate ¶
func (sts *SkillTagSelect) Aggregate(fns ...AggregateFunc) *SkillTagSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SkillTagSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SkillTagSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SkillTagSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SkillTagSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SkillTagSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SkillTagSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SkillTagSelect) Scan ¶
func (sts *SkillTagSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SkillTagSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SkillTagUpdate ¶
type SkillTagUpdate struct {
// contains filtered or unexported fields
}
SkillTagUpdate is the builder for updating SkillTag entities.
func (*SkillTagUpdate) AddSkillIDs ¶
func (stu *SkillTagUpdate) AddSkillIDs(ids ...int) *SkillTagUpdate
AddSkillIDs adds the "skills" edge to the Skill entity by IDs.
func (*SkillTagUpdate) AddSkills ¶
func (stu *SkillTagUpdate) AddSkills(s ...*Skill) *SkillTagUpdate
AddSkills adds the "skills" edges to the Skill entity.
func (*SkillTagUpdate) ClearSkills ¶
func (stu *SkillTagUpdate) ClearSkills() *SkillTagUpdate
ClearSkills clears all "skills" edges to the Skill entity.
func (*SkillTagUpdate) Exec ¶
func (stu *SkillTagUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillTagUpdate) ExecX ¶
func (stu *SkillTagUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillTagUpdate) Mutation ¶
func (stu *SkillTagUpdate) Mutation() *SkillTagMutation
Mutation returns the SkillTagMutation object of the builder.
func (*SkillTagUpdate) RemoveSkillIDs ¶
func (stu *SkillTagUpdate) RemoveSkillIDs(ids ...int) *SkillTagUpdate
RemoveSkillIDs removes the "skills" edge to Skill entities by IDs.
func (*SkillTagUpdate) RemoveSkills ¶
func (stu *SkillTagUpdate) RemoveSkills(s ...*Skill) *SkillTagUpdate
RemoveSkills removes "skills" edges to Skill entities.
func (*SkillTagUpdate) Save ¶
func (stu *SkillTagUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SkillTagUpdate) SaveX ¶
func (stu *SkillTagUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SkillTagUpdate) SetCode ¶
func (stu *SkillTagUpdate) SetCode(s string) *SkillTagUpdate
SetCode sets the "code" field.
func (*SkillTagUpdate) SetName ¶
func (stu *SkillTagUpdate) SetName(s string) *SkillTagUpdate
SetName sets the "name" field.
func (*SkillTagUpdate) Where ¶
func (stu *SkillTagUpdate) Where(ps ...predicate.SkillTag) *SkillTagUpdate
Where appends a list predicates to the SkillTagUpdate builder.
type SkillTagUpdateOne ¶
type SkillTagUpdateOne struct {
// contains filtered or unexported fields
}
SkillTagUpdateOne is the builder for updating a single SkillTag entity.
func (*SkillTagUpdateOne) AddSkillIDs ¶
func (stuo *SkillTagUpdateOne) AddSkillIDs(ids ...int) *SkillTagUpdateOne
AddSkillIDs adds the "skills" edge to the Skill entity by IDs.
func (*SkillTagUpdateOne) AddSkills ¶
func (stuo *SkillTagUpdateOne) AddSkills(s ...*Skill) *SkillTagUpdateOne
AddSkills adds the "skills" edges to the Skill entity.
func (*SkillTagUpdateOne) ClearSkills ¶
func (stuo *SkillTagUpdateOne) ClearSkills() *SkillTagUpdateOne
ClearSkills clears all "skills" edges to the Skill entity.
func (*SkillTagUpdateOne) Exec ¶
func (stuo *SkillTagUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SkillTagUpdateOne) ExecX ¶
func (stuo *SkillTagUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillTagUpdateOne) Mutation ¶
func (stuo *SkillTagUpdateOne) Mutation() *SkillTagMutation
Mutation returns the SkillTagMutation object of the builder.
func (*SkillTagUpdateOne) RemoveSkillIDs ¶
func (stuo *SkillTagUpdateOne) RemoveSkillIDs(ids ...int) *SkillTagUpdateOne
RemoveSkillIDs removes the "skills" edge to Skill entities by IDs.
func (*SkillTagUpdateOne) RemoveSkills ¶
func (stuo *SkillTagUpdateOne) RemoveSkills(s ...*Skill) *SkillTagUpdateOne
RemoveSkills removes "skills" edges to Skill entities.
func (*SkillTagUpdateOne) Save ¶
func (stuo *SkillTagUpdateOne) Save(ctx context.Context) (*SkillTag, error)
Save executes the query and returns the updated SkillTag entity.
func (*SkillTagUpdateOne) SaveX ¶
func (stuo *SkillTagUpdateOne) SaveX(ctx context.Context) *SkillTag
SaveX is like Save, but panics if an error occurs.
func (*SkillTagUpdateOne) Select ¶
func (stuo *SkillTagUpdateOne) Select(field string, fields ...string) *SkillTagUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SkillTagUpdateOne) SetCode ¶
func (stuo *SkillTagUpdateOne) SetCode(s string) *SkillTagUpdateOne
SetCode sets the "code" field.
func (*SkillTagUpdateOne) SetName ¶
func (stuo *SkillTagUpdateOne) SetName(s string) *SkillTagUpdateOne
SetName sets the "name" field.
func (*SkillTagUpdateOne) Where ¶
func (stuo *SkillTagUpdateOne) Where(ps ...predicate.SkillTag) *SkillTagUpdateOne
Where appends a list predicates to the SkillTagUpdate builder.
type SkillTagUpsert ¶
SkillTagUpsert is the "OnConflict" setter.
func (*SkillTagUpsert) SetCode ¶
func (u *SkillTagUpsert) SetCode(v string) *SkillTagUpsert
SetCode sets the "code" field.
func (*SkillTagUpsert) SetName ¶
func (u *SkillTagUpsert) SetName(v string) *SkillTagUpsert
SetName sets the "name" field.
func (*SkillTagUpsert) UpdateCode ¶
func (u *SkillTagUpsert) UpdateCode() *SkillTagUpsert
UpdateCode sets the "code" field to the value that was provided on create.
func (*SkillTagUpsert) UpdateName ¶
func (u *SkillTagUpsert) UpdateName() *SkillTagUpsert
UpdateName sets the "name" field to the value that was provided on create.
type SkillTagUpsertBulk ¶
type SkillTagUpsertBulk struct {
// contains filtered or unexported fields
}
SkillTagUpsertBulk is the builder for "upsert"-ing a bulk of SkillTag nodes.
func (*SkillTagUpsertBulk) DoNothing ¶
func (u *SkillTagUpsertBulk) DoNothing() *SkillTagUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SkillTagUpsertBulk) Exec ¶
func (u *SkillTagUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillTagUpsertBulk) ExecX ¶
func (u *SkillTagUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillTagUpsertBulk) Ignore ¶
func (u *SkillTagUpsertBulk) Ignore() *SkillTagUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.SkillTag.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SkillTagUpsertBulk) SetCode ¶
func (u *SkillTagUpsertBulk) SetCode(v string) *SkillTagUpsertBulk
SetCode sets the "code" field.
func (*SkillTagUpsertBulk) SetName ¶
func (u *SkillTagUpsertBulk) SetName(v string) *SkillTagUpsertBulk
SetName sets the "name" field.
func (*SkillTagUpsertBulk) Update ¶
func (u *SkillTagUpsertBulk) Update(set func(*SkillTagUpsert)) *SkillTagUpsertBulk
Update allows overriding fields `UPDATE` values. See the SkillTagCreateBulk.OnConflict documentation for more info.
func (*SkillTagUpsertBulk) UpdateCode ¶
func (u *SkillTagUpsertBulk) UpdateCode() *SkillTagUpsertBulk
UpdateCode sets the "code" field to the value that was provided on create.
func (*SkillTagUpsertBulk) UpdateName ¶
func (u *SkillTagUpsertBulk) UpdateName() *SkillTagUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*SkillTagUpsertBulk) UpdateNewValues ¶
func (u *SkillTagUpsertBulk) UpdateNewValues() *SkillTagUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.SkillTag.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type SkillTagUpsertOne ¶
type SkillTagUpsertOne struct {
// contains filtered or unexported fields
}
SkillTagUpsertOne is the builder for "upsert"-ing
one SkillTag node.
func (*SkillTagUpsertOne) DoNothing ¶
func (u *SkillTagUpsertOne) DoNothing() *SkillTagUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SkillTagUpsertOne) Exec ¶
func (u *SkillTagUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillTagUpsertOne) ExecX ¶
func (u *SkillTagUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillTagUpsertOne) ID ¶
func (u *SkillTagUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*SkillTagUpsertOne) IDX ¶
func (u *SkillTagUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*SkillTagUpsertOne) Ignore ¶
func (u *SkillTagUpsertOne) Ignore() *SkillTagUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.SkillTag.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SkillTagUpsertOne) SetCode ¶
func (u *SkillTagUpsertOne) SetCode(v string) *SkillTagUpsertOne
SetCode sets the "code" field.
func (*SkillTagUpsertOne) SetName ¶
func (u *SkillTagUpsertOne) SetName(v string) *SkillTagUpsertOne
SetName sets the "name" field.
func (*SkillTagUpsertOne) Update ¶
func (u *SkillTagUpsertOne) Update(set func(*SkillTagUpsert)) *SkillTagUpsertOne
Update allows overriding fields `UPDATE` values. See the SkillTagCreate.OnConflict documentation for more info.
func (*SkillTagUpsertOne) UpdateCode ¶
func (u *SkillTagUpsertOne) UpdateCode() *SkillTagUpsertOne
UpdateCode sets the "code" field to the value that was provided on create.
func (*SkillTagUpsertOne) UpdateName ¶
func (u *SkillTagUpsertOne) UpdateName() *SkillTagUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*SkillTagUpsertOne) UpdateNewValues ¶
func (u *SkillTagUpsertOne) UpdateNewValues() *SkillTagUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.SkillTag.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type SkillUpdate ¶
type SkillUpdate struct {
// contains filtered or unexported fields
}
SkillUpdate is the builder for updating Skill entities.
func (*SkillUpdate) AddCareerSkillIDs ¶
func (su *SkillUpdate) AddCareerSkillIDs(ids ...int) *SkillUpdate
AddCareerSkillIDs adds the "careerSkills" edge to the CareerSkill entity by IDs.
func (*SkillUpdate) AddCareerSkills ¶
func (su *SkillUpdate) AddCareerSkills(c ...*CareerSkill) *SkillUpdate
AddCareerSkills adds the "careerSkills" edges to the CareerSkill entity.
func (*SkillUpdate) ClearCareerSkills ¶
func (su *SkillUpdate) ClearCareerSkills() *SkillUpdate
ClearCareerSkills clears all "careerSkills" edges to the CareerSkill entity.
func (*SkillUpdate) ClearSkillTag ¶
func (su *SkillUpdate) ClearSkillTag() *SkillUpdate
ClearSkillTag clears the "skillTag" edge to the SkillTag entity.
func (*SkillUpdate) ClearURL ¶
func (su *SkillUpdate) ClearURL() *SkillUpdate
ClearURL clears the value of the "url" field.
func (*SkillUpdate) Exec ¶
func (su *SkillUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillUpdate) ExecX ¶
func (su *SkillUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillUpdate) Mutation ¶
func (su *SkillUpdate) Mutation() *SkillMutation
Mutation returns the SkillMutation object of the builder.
func (*SkillUpdate) RemoveCareerSkillIDs ¶
func (su *SkillUpdate) RemoveCareerSkillIDs(ids ...int) *SkillUpdate
RemoveCareerSkillIDs removes the "careerSkills" edge to CareerSkill entities by IDs.
func (*SkillUpdate) RemoveCareerSkills ¶
func (su *SkillUpdate) RemoveCareerSkills(c ...*CareerSkill) *SkillUpdate
RemoveCareerSkills removes "careerSkills" edges to CareerSkill entities.
func (*SkillUpdate) Save ¶
func (su *SkillUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SkillUpdate) SaveX ¶
func (su *SkillUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SkillUpdate) SetCode ¶
func (su *SkillUpdate) SetCode(s string) *SkillUpdate
SetCode sets the "code" field.
func (*SkillUpdate) SetName ¶
func (su *SkillUpdate) SetName(s string) *SkillUpdate
SetName sets the "name" field.
func (*SkillUpdate) SetNillableURL ¶
func (su *SkillUpdate) SetNillableURL(s *string) *SkillUpdate
SetNillableURL sets the "url" field if the given value is not nil.
func (*SkillUpdate) SetSkillTag ¶
func (su *SkillUpdate) SetSkillTag(s *SkillTag) *SkillUpdate
SetSkillTag sets the "skillTag" edge to the SkillTag entity.
func (*SkillUpdate) SetSkillTagID ¶
func (su *SkillUpdate) SetSkillTagID(id int) *SkillUpdate
SetSkillTagID sets the "skillTag" edge to the SkillTag entity by ID.
func (*SkillUpdate) SetURL ¶
func (su *SkillUpdate) SetURL(s string) *SkillUpdate
SetURL sets the "url" field.
func (*SkillUpdate) SetUpdateTime ¶
func (su *SkillUpdate) SetUpdateTime(t time.Time) *SkillUpdate
SetUpdateTime sets the "update_time" field.
func (*SkillUpdate) Where ¶
func (su *SkillUpdate) Where(ps ...predicate.Skill) *SkillUpdate
Where appends a list predicates to the SkillUpdate builder.
type SkillUpdateOne ¶
type SkillUpdateOne struct {
// contains filtered or unexported fields
}
SkillUpdateOne is the builder for updating a single Skill entity.
func (*SkillUpdateOne) AddCareerSkillIDs ¶
func (suo *SkillUpdateOne) AddCareerSkillIDs(ids ...int) *SkillUpdateOne
AddCareerSkillIDs adds the "careerSkills" edge to the CareerSkill entity by IDs.
func (*SkillUpdateOne) AddCareerSkills ¶
func (suo *SkillUpdateOne) AddCareerSkills(c ...*CareerSkill) *SkillUpdateOne
AddCareerSkills adds the "careerSkills" edges to the CareerSkill entity.
func (*SkillUpdateOne) ClearCareerSkills ¶
func (suo *SkillUpdateOne) ClearCareerSkills() *SkillUpdateOne
ClearCareerSkills clears all "careerSkills" edges to the CareerSkill entity.
func (*SkillUpdateOne) ClearSkillTag ¶
func (suo *SkillUpdateOne) ClearSkillTag() *SkillUpdateOne
ClearSkillTag clears the "skillTag" edge to the SkillTag entity.
func (*SkillUpdateOne) ClearURL ¶
func (suo *SkillUpdateOne) ClearURL() *SkillUpdateOne
ClearURL clears the value of the "url" field.
func (*SkillUpdateOne) Exec ¶
func (suo *SkillUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SkillUpdateOne) ExecX ¶
func (suo *SkillUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillUpdateOne) Mutation ¶
func (suo *SkillUpdateOne) Mutation() *SkillMutation
Mutation returns the SkillMutation object of the builder.
func (*SkillUpdateOne) RemoveCareerSkillIDs ¶
func (suo *SkillUpdateOne) RemoveCareerSkillIDs(ids ...int) *SkillUpdateOne
RemoveCareerSkillIDs removes the "careerSkills" edge to CareerSkill entities by IDs.
func (*SkillUpdateOne) RemoveCareerSkills ¶
func (suo *SkillUpdateOne) RemoveCareerSkills(c ...*CareerSkill) *SkillUpdateOne
RemoveCareerSkills removes "careerSkills" edges to CareerSkill entities.
func (*SkillUpdateOne) Save ¶
func (suo *SkillUpdateOne) Save(ctx context.Context) (*Skill, error)
Save executes the query and returns the updated Skill entity.
func (*SkillUpdateOne) SaveX ¶
func (suo *SkillUpdateOne) SaveX(ctx context.Context) *Skill
SaveX is like Save, but panics if an error occurs.
func (*SkillUpdateOne) Select ¶
func (suo *SkillUpdateOne) Select(field string, fields ...string) *SkillUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SkillUpdateOne) SetCode ¶
func (suo *SkillUpdateOne) SetCode(s string) *SkillUpdateOne
SetCode sets the "code" field.
func (*SkillUpdateOne) SetName ¶
func (suo *SkillUpdateOne) SetName(s string) *SkillUpdateOne
SetName sets the "name" field.
func (*SkillUpdateOne) SetNillableURL ¶
func (suo *SkillUpdateOne) SetNillableURL(s *string) *SkillUpdateOne
SetNillableURL sets the "url" field if the given value is not nil.
func (*SkillUpdateOne) SetSkillTag ¶
func (suo *SkillUpdateOne) SetSkillTag(s *SkillTag) *SkillUpdateOne
SetSkillTag sets the "skillTag" edge to the SkillTag entity.
func (*SkillUpdateOne) SetSkillTagID ¶
func (suo *SkillUpdateOne) SetSkillTagID(id int) *SkillUpdateOne
SetSkillTagID sets the "skillTag" edge to the SkillTag entity by ID.
func (*SkillUpdateOne) SetURL ¶
func (suo *SkillUpdateOne) SetURL(s string) *SkillUpdateOne
SetURL sets the "url" field.
func (*SkillUpdateOne) SetUpdateTime ¶
func (suo *SkillUpdateOne) SetUpdateTime(t time.Time) *SkillUpdateOne
SetUpdateTime sets the "update_time" field.
func (*SkillUpdateOne) Where ¶
func (suo *SkillUpdateOne) Where(ps ...predicate.Skill) *SkillUpdateOne
Where appends a list predicates to the SkillUpdate builder.
type SkillUpsert ¶
SkillUpsert is the "OnConflict" setter.
func (*SkillUpsert) ClearURL ¶
func (u *SkillUpsert) ClearURL() *SkillUpsert
ClearURL clears the value of the "url" field.
func (*SkillUpsert) SetCode ¶
func (u *SkillUpsert) SetCode(v string) *SkillUpsert
SetCode sets the "code" field.
func (*SkillUpsert) SetName ¶
func (u *SkillUpsert) SetName(v string) *SkillUpsert
SetName sets the "name" field.
func (*SkillUpsert) SetURL ¶
func (u *SkillUpsert) SetURL(v string) *SkillUpsert
SetURL sets the "url" field.
func (*SkillUpsert) SetUpdateTime ¶
func (u *SkillUpsert) SetUpdateTime(v time.Time) *SkillUpsert
SetUpdateTime sets the "update_time" field.
func (*SkillUpsert) UpdateCode ¶
func (u *SkillUpsert) UpdateCode() *SkillUpsert
UpdateCode sets the "code" field to the value that was provided on create.
func (*SkillUpsert) UpdateName ¶
func (u *SkillUpsert) UpdateName() *SkillUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*SkillUpsert) UpdateURL ¶
func (u *SkillUpsert) UpdateURL() *SkillUpsert
UpdateURL sets the "url" field to the value that was provided on create.
func (*SkillUpsert) UpdateUpdateTime ¶
func (u *SkillUpsert) UpdateUpdateTime() *SkillUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type SkillUpsertBulk ¶
type SkillUpsertBulk struct {
// contains filtered or unexported fields
}
SkillUpsertBulk is the builder for "upsert"-ing a bulk of Skill nodes.
func (*SkillUpsertBulk) ClearURL ¶
func (u *SkillUpsertBulk) ClearURL() *SkillUpsertBulk
ClearURL clears the value of the "url" field.
func (*SkillUpsertBulk) DoNothing ¶
func (u *SkillUpsertBulk) DoNothing() *SkillUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SkillUpsertBulk) Exec ¶
func (u *SkillUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillUpsertBulk) ExecX ¶
func (u *SkillUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillUpsertBulk) Ignore ¶
func (u *SkillUpsertBulk) Ignore() *SkillUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Skill.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SkillUpsertBulk) SetCode ¶
func (u *SkillUpsertBulk) SetCode(v string) *SkillUpsertBulk
SetCode sets the "code" field.
func (*SkillUpsertBulk) SetName ¶
func (u *SkillUpsertBulk) SetName(v string) *SkillUpsertBulk
SetName sets the "name" field.
func (*SkillUpsertBulk) SetURL ¶
func (u *SkillUpsertBulk) SetURL(v string) *SkillUpsertBulk
SetURL sets the "url" field.
func (*SkillUpsertBulk) SetUpdateTime ¶
func (u *SkillUpsertBulk) SetUpdateTime(v time.Time) *SkillUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*SkillUpsertBulk) Update ¶
func (u *SkillUpsertBulk) Update(set func(*SkillUpsert)) *SkillUpsertBulk
Update allows overriding fields `UPDATE` values. See the SkillCreateBulk.OnConflict documentation for more info.
func (*SkillUpsertBulk) UpdateCode ¶
func (u *SkillUpsertBulk) UpdateCode() *SkillUpsertBulk
UpdateCode sets the "code" field to the value that was provided on create.
func (*SkillUpsertBulk) UpdateName ¶
func (u *SkillUpsertBulk) UpdateName() *SkillUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*SkillUpsertBulk) UpdateNewValues ¶
func (u *SkillUpsertBulk) UpdateNewValues() *SkillUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Skill.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*SkillUpsertBulk) UpdateURL ¶
func (u *SkillUpsertBulk) UpdateURL() *SkillUpsertBulk
UpdateURL sets the "url" field to the value that was provided on create.
func (*SkillUpsertBulk) UpdateUpdateTime ¶
func (u *SkillUpsertBulk) UpdateUpdateTime() *SkillUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type SkillUpsertOne ¶
type SkillUpsertOne struct {
// contains filtered or unexported fields
}
SkillUpsertOne is the builder for "upsert"-ing
one Skill node.
func (*SkillUpsertOne) ClearURL ¶
func (u *SkillUpsertOne) ClearURL() *SkillUpsertOne
ClearURL clears the value of the "url" field.
func (*SkillUpsertOne) DoNothing ¶
func (u *SkillUpsertOne) DoNothing() *SkillUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SkillUpsertOne) Exec ¶
func (u *SkillUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*SkillUpsertOne) ExecX ¶
func (u *SkillUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SkillUpsertOne) ID ¶
func (u *SkillUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*SkillUpsertOne) IDX ¶
func (u *SkillUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*SkillUpsertOne) Ignore ¶
func (u *SkillUpsertOne) Ignore() *SkillUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Skill.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SkillUpsertOne) SetCode ¶
func (u *SkillUpsertOne) SetCode(v string) *SkillUpsertOne
SetCode sets the "code" field.
func (*SkillUpsertOne) SetName ¶
func (u *SkillUpsertOne) SetName(v string) *SkillUpsertOne
SetName sets the "name" field.
func (*SkillUpsertOne) SetURL ¶
func (u *SkillUpsertOne) SetURL(v string) *SkillUpsertOne
SetURL sets the "url" field.
func (*SkillUpsertOne) SetUpdateTime ¶
func (u *SkillUpsertOne) SetUpdateTime(v time.Time) *SkillUpsertOne
SetUpdateTime sets the "update_time" field.
func (*SkillUpsertOne) Update ¶
func (u *SkillUpsertOne) Update(set func(*SkillUpsert)) *SkillUpsertOne
Update allows overriding fields `UPDATE` values. See the SkillCreate.OnConflict documentation for more info.
func (*SkillUpsertOne) UpdateCode ¶
func (u *SkillUpsertOne) UpdateCode() *SkillUpsertOne
UpdateCode sets the "code" field to the value that was provided on create.
func (*SkillUpsertOne) UpdateName ¶
func (u *SkillUpsertOne) UpdateName() *SkillUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*SkillUpsertOne) UpdateNewValues ¶
func (u *SkillUpsertOne) UpdateNewValues() *SkillUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Skill.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*SkillUpsertOne) UpdateURL ¶
func (u *SkillUpsertOne) UpdateURL() *SkillUpsertOne
UpdateURL sets the "url" field to the value that was provided on create.
func (*SkillUpsertOne) UpdateUpdateTime ¶
func (u *SkillUpsertOne) UpdateUpdateTime() *SkillUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct { // CareerSkill is the client for interacting with the CareerSkill builders. CareerSkill *CareerSkillClient // CareerSkillGroup is the client for interacting with the CareerSkillGroup builders. CareerSkillGroup *CareerSkillGroupClient // CareerTask is the client for interacting with the CareerTask builders. CareerTask *CareerTaskClient // CareerTaskDescription is the client for interacting with the CareerTaskDescription builders. CareerTaskDescription *CareerTaskDescriptionClient // Skill is the client for interacting with the Skill builders. Skill *SkillClient // SkillTag is the client for interacting with the SkillTag builders. SkillTag *SkillTagClient // User is the client for interacting with the User builders. User *UserClient // UserActivity is the client for interacting with the UserActivity builders. UserActivity *UserActivityClient // UserCareer is the client for interacting with the UserCareer builders. UserCareer *UserCareerClient // UserCareerDescription is the client for interacting with the UserCareerDescription builders. UserCareerDescription *UserCareerDescriptionClient // UserCareerGroup is the client for interacting with the UserCareerGroup builders. UserCareerGroup *UserCareerGroupClient // UserNote is the client for interacting with the UserNote builders. UserNote *UserNoteClient // UserNoteItem is the client for interacting with the UserNoteItem builders. UserNoteItem *UserNoteItemClient // UserQualification is the client for interacting with the UserQualification builders. UserQualification *UserQualificationClient // 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) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type User ¶
type User struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Nickname holds the value of the "nickname" field. Nickname *string `json:"nickname,omitempty"` // AvatarURL holds the value of the "avatar_url" field. AvatarURL *string `json:"avatar_url,omitempty"` // BirthdayYear holds the value of the "birthday_year" field. BirthdayYear int `json:"birthday_year,omitempty"` // BirthdayMonth holds the value of the "birthday_month" field. BirthdayMonth int `json:"birthday_month,omitempty"` // BirthdayDay holds the value of the "birthday_day" field. BirthdayDay int `json:"birthday_day,omitempty"` // Job holds the value of the "job" field. Job *string `json:"job,omitempty"` // BelongTo holds the value of the "belong_to" field. BelongTo *string `json:"belong_to,omitempty"` // Pr holds the value of the "pr" field. Pr *string `json:"pr,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserQuery when eager-loading is set. Edges UserEdges `json:"edges"` // contains filtered or unexported fields }
User is the model entity for the User schema.
func (*User) QueryActivities ¶
func (u *User) QueryActivities() *UserActivityQuery
QueryActivities queries the "activities" edge of the User entity.
func (*User) QueryCareerGroups ¶
func (u *User) QueryCareerGroups() *UserCareerGroupQuery
QueryCareerGroups queries the "careerGroups" edge of the User entity.
func (*User) QueryNotes ¶
func (u *User) QueryNotes() *UserNoteQuery
QueryNotes queries the "notes" edge of the User entity.
func (*User) QueryQualifications ¶
func (u *User) QueryQualifications() *UserQualificationQuery
QueryQualifications queries the "qualifications" edge of the User entity.
func (*User) Unwrap ¶
Unwrap unwraps the User 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 (*User) Update ¶
func (u *User) Update() *UserUpdateOne
Update returns a builder for updating this User. Note that you need to call User.Unwrap() before calling this method if this User was returned from a transaction, and the transaction was committed or rolled back.
type UserActivities ¶
type UserActivities []*UserActivity
UserActivities is a parsable slice of UserActivity.
type UserActivity ¶
type UserActivity struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // URL holds the value of the "url" field. URL *string `json:"url,omitempty"` // Icon holds the value of the "icon" field. Icon *string `json:"icon,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserActivityQuery when eager-loading is set. Edges UserActivityEdges `json:"edges"` // contains filtered or unexported fields }
UserActivity is the model entity for the UserActivity schema.
func (*UserActivity) QueryUser ¶
func (ua *UserActivity) QueryUser() *UserQuery
QueryUser queries the "user" edge of the UserActivity entity.
func (*UserActivity) String ¶
func (ua *UserActivity) String() string
String implements the fmt.Stringer.
func (*UserActivity) Unwrap ¶
func (ua *UserActivity) Unwrap() *UserActivity
Unwrap unwraps the UserActivity 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 (*UserActivity) Update ¶
func (ua *UserActivity) Update() *UserActivityUpdateOne
Update returns a builder for updating this UserActivity. Note that you need to call UserActivity.Unwrap() before calling this method if this UserActivity was returned from a transaction, and the transaction was committed or rolled back.
type UserActivityClient ¶
type UserActivityClient struct {
// contains filtered or unexported fields
}
UserActivityClient is a client for the UserActivity schema.
func NewUserActivityClient ¶
func NewUserActivityClient(c config) *UserActivityClient
NewUserActivityClient returns a client for the UserActivity from the given config.
func (*UserActivityClient) Create ¶
func (c *UserActivityClient) Create() *UserActivityCreate
Create returns a builder for creating a UserActivity entity.
func (*UserActivityClient) CreateBulk ¶
func (c *UserActivityClient) CreateBulk(builders ...*UserActivityCreate) *UserActivityCreateBulk
CreateBulk returns a builder for creating a bulk of UserActivity entities.
func (*UserActivityClient) Delete ¶
func (c *UserActivityClient) Delete() *UserActivityDelete
Delete returns a delete builder for UserActivity.
func (*UserActivityClient) DeleteOne ¶
func (c *UserActivityClient) DeleteOne(ua *UserActivity) *UserActivityDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserActivityClient) DeleteOneID ¶
func (c *UserActivityClient) DeleteOneID(id int) *UserActivityDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserActivityClient) Get ¶
func (c *UserActivityClient) Get(ctx context.Context, id int) (*UserActivity, error)
Get returns a UserActivity entity by its id.
func (*UserActivityClient) GetX ¶
func (c *UserActivityClient) GetX(ctx context.Context, id int) *UserActivity
GetX is like Get, but panics if an error occurs.
func (*UserActivityClient) Hooks ¶
func (c *UserActivityClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UserActivityClient) Intercept ¶
func (c *UserActivityClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `useractivity.Intercept(f(g(h())))`.
func (*UserActivityClient) Interceptors ¶
func (c *UserActivityClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserActivityClient) Query ¶
func (c *UserActivityClient) Query() *UserActivityQuery
Query returns a query builder for UserActivity.
func (*UserActivityClient) QueryUser ¶
func (c *UserActivityClient) QueryUser(ua *UserActivity) *UserQuery
QueryUser queries the user edge of a UserActivity.
func (*UserActivityClient) Update ¶
func (c *UserActivityClient) Update() *UserActivityUpdate
Update returns an update builder for UserActivity.
func (*UserActivityClient) UpdateOne ¶
func (c *UserActivityClient) UpdateOne(ua *UserActivity) *UserActivityUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserActivityClient) UpdateOneID ¶
func (c *UserActivityClient) UpdateOneID(id int) *UserActivityUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserActivityClient) Use ¶
func (c *UserActivityClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `useractivity.Hooks(f(g(h())))`.
type UserActivityCreate ¶
type UserActivityCreate struct {
// contains filtered or unexported fields
}
UserActivityCreate is the builder for creating a UserActivity entity.
func (*UserActivityCreate) Exec ¶
func (uac *UserActivityCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserActivityCreate) ExecX ¶
func (uac *UserActivityCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserActivityCreate) Mutation ¶
func (uac *UserActivityCreate) Mutation() *UserActivityMutation
Mutation returns the UserActivityMutation object of the builder.
func (*UserActivityCreate) OnConflict ¶
func (uac *UserActivityCreate) OnConflict(opts ...sql.ConflictOption) *UserActivityUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserActivity.Create(). SetCreateTime(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.UserActivityUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserActivityCreate) OnConflictColumns ¶
func (uac *UserActivityCreate) OnConflictColumns(columns ...string) *UserActivityUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserActivity.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserActivityCreate) Save ¶
func (uac *UserActivityCreate) Save(ctx context.Context) (*UserActivity, error)
Save creates the UserActivity in the database.
func (*UserActivityCreate) SaveX ¶
func (uac *UserActivityCreate) SaveX(ctx context.Context) *UserActivity
SaveX calls Save and panics if Save returns an error.
func (*UserActivityCreate) SetCreateTime ¶
func (uac *UserActivityCreate) SetCreateTime(t time.Time) *UserActivityCreate
SetCreateTime sets the "create_time" field.
func (*UserActivityCreate) SetIcon ¶
func (uac *UserActivityCreate) SetIcon(s string) *UserActivityCreate
SetIcon sets the "icon" field.
func (*UserActivityCreate) SetName ¶
func (uac *UserActivityCreate) SetName(s string) *UserActivityCreate
SetName sets the "name" field.
func (*UserActivityCreate) SetNillableCreateTime ¶
func (uac *UserActivityCreate) SetNillableCreateTime(t *time.Time) *UserActivityCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*UserActivityCreate) SetNillableIcon ¶
func (uac *UserActivityCreate) SetNillableIcon(s *string) *UserActivityCreate
SetNillableIcon sets the "icon" field if the given value is not nil.
func (*UserActivityCreate) SetNillableURL ¶
func (uac *UserActivityCreate) SetNillableURL(s *string) *UserActivityCreate
SetNillableURL sets the "url" field if the given value is not nil.
func (*UserActivityCreate) SetNillableUpdateTime ¶
func (uac *UserActivityCreate) SetNillableUpdateTime(t *time.Time) *UserActivityCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*UserActivityCreate) SetURL ¶
func (uac *UserActivityCreate) SetURL(s string) *UserActivityCreate
SetURL sets the "url" field.
func (*UserActivityCreate) SetUpdateTime ¶
func (uac *UserActivityCreate) SetUpdateTime(t time.Time) *UserActivityCreate
SetUpdateTime sets the "update_time" field.
func (*UserActivityCreate) SetUser ¶
func (uac *UserActivityCreate) SetUser(u *User) *UserActivityCreate
SetUser sets the "user" edge to the User entity.
func (*UserActivityCreate) SetUserID ¶
func (uac *UserActivityCreate) SetUserID(id int) *UserActivityCreate
SetUserID sets the "user" edge to the User entity by ID.
type UserActivityCreateBulk ¶
type UserActivityCreateBulk struct {
// contains filtered or unexported fields
}
UserActivityCreateBulk is the builder for creating many UserActivity entities in bulk.
func (*UserActivityCreateBulk) Exec ¶
func (uacb *UserActivityCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserActivityCreateBulk) ExecX ¶
func (uacb *UserActivityCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserActivityCreateBulk) OnConflict ¶
func (uacb *UserActivityCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserActivityUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserActivity.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.UserActivityUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserActivityCreateBulk) OnConflictColumns ¶
func (uacb *UserActivityCreateBulk) OnConflictColumns(columns ...string) *UserActivityUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserActivity.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserActivityCreateBulk) Save ¶
func (uacb *UserActivityCreateBulk) Save(ctx context.Context) ([]*UserActivity, error)
Save creates the UserActivity entities in the database.
func (*UserActivityCreateBulk) SaveX ¶
func (uacb *UserActivityCreateBulk) SaveX(ctx context.Context) []*UserActivity
SaveX is like Save, but panics if an error occurs.
type UserActivityDelete ¶
type UserActivityDelete struct {
// contains filtered or unexported fields
}
UserActivityDelete is the builder for deleting a UserActivity entity.
func (*UserActivityDelete) Exec ¶
func (uad *UserActivityDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserActivityDelete) ExecX ¶
func (uad *UserActivityDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserActivityDelete) Where ¶
func (uad *UserActivityDelete) Where(ps ...predicate.UserActivity) *UserActivityDelete
Where appends a list predicates to the UserActivityDelete builder.
type UserActivityDeleteOne ¶
type UserActivityDeleteOne struct {
// contains filtered or unexported fields
}
UserActivityDeleteOne is the builder for deleting a single UserActivity entity.
func (*UserActivityDeleteOne) Exec ¶
func (uado *UserActivityDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserActivityDeleteOne) ExecX ¶
func (uado *UserActivityDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserActivityDeleteOne) Where ¶
func (uado *UserActivityDeleteOne) Where(ps ...predicate.UserActivity) *UserActivityDeleteOne
Where appends a list predicates to the UserActivityDelete builder.
type UserActivityEdges ¶
type UserActivityEdges struct { // User holds the value of the user edge. User *User `json:"user,omitempty"` // contains filtered or unexported fields }
UserActivityEdges holds the relations/edges for other nodes in the graph.
func (UserActivityEdges) UserOrErr ¶
func (e UserActivityEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UserActivityGroupBy ¶
type UserActivityGroupBy struct {
// contains filtered or unexported fields
}
UserActivityGroupBy is the group-by builder for UserActivity entities.
func (*UserActivityGroupBy) Aggregate ¶
func (uagb *UserActivityGroupBy) Aggregate(fns ...AggregateFunc) *UserActivityGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserActivityGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserActivityGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserActivityGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserActivityGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserActivityGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserActivityGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserActivityGroupBy) Scan ¶
func (uagb *UserActivityGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserActivityGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserActivityMutation ¶
type UserActivityMutation struct {
// contains filtered or unexported fields
}
UserActivityMutation represents an operation that mutates the UserActivity nodes in the graph.
func (*UserActivityMutation) AddField ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) AddedEdges ¶
func (m *UserActivityMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserActivityMutation) AddedField ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) AddedFields ¶
func (m *UserActivityMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserActivityMutation) AddedIDs ¶
func (m *UserActivityMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserActivityMutation) ClearEdge ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) ClearField ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) ClearIcon ¶
func (m *UserActivityMutation) ClearIcon()
ClearIcon clears the value of the "icon" field.
func (*UserActivityMutation) ClearURL ¶
func (m *UserActivityMutation) ClearURL()
ClearURL clears the value of the "url" field.
func (*UserActivityMutation) ClearUser ¶
func (m *UserActivityMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*UserActivityMutation) ClearedEdges ¶
func (m *UserActivityMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserActivityMutation) ClearedFields ¶
func (m *UserActivityMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserActivityMutation) Client ¶
func (m UserActivityMutation) 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 (*UserActivityMutation) CreateTime ¶
func (m *UserActivityMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*UserActivityMutation) EdgeCleared ¶
func (m *UserActivityMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserActivityMutation) Field ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) FieldCleared ¶
func (m *UserActivityMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserActivityMutation) Fields ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) ID ¶
func (m *UserActivityMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserActivityMutation) IDs ¶
func (m *UserActivityMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserActivityMutation) Icon ¶
func (m *UserActivityMutation) Icon() (r string, exists bool)
Icon returns the value of the "icon" field in the mutation.
func (*UserActivityMutation) IconCleared ¶
func (m *UserActivityMutation) IconCleared() bool
IconCleared returns if the "icon" field was cleared in this mutation.
func (*UserActivityMutation) Name ¶
func (m *UserActivityMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*UserActivityMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the UserActivity entity. If the UserActivity object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserActivityMutation) 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 (*UserActivityMutation) OldIcon ¶
func (m *UserActivityMutation) OldIcon(ctx context.Context) (v *string, err error)
OldIcon returns the old "icon" field's value of the UserActivity entity. If the UserActivity object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserActivityMutation) OldName ¶
func (m *UserActivityMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the UserActivity entity. If the UserActivity object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserActivityMutation) OldURL ¶
func (m *UserActivityMutation) OldURL(ctx context.Context) (v *string, err error)
OldURL returns the old "url" field's value of the UserActivity entity. If the UserActivity object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserActivityMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the UserActivity entity. If the UserActivity object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserActivityMutation) Op ¶
func (m *UserActivityMutation) Op() Op
Op returns the operation name.
func (*UserActivityMutation) RemovedEdges ¶
func (m *UserActivityMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserActivityMutation) RemovedIDs ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) ResetCreateTime ¶
func (m *UserActivityMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*UserActivityMutation) ResetEdge ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) ResetField ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) ResetIcon ¶
func (m *UserActivityMutation) ResetIcon()
ResetIcon resets all changes to the "icon" field.
func (*UserActivityMutation) ResetName ¶
func (m *UserActivityMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*UserActivityMutation) ResetURL ¶
func (m *UserActivityMutation) ResetURL()
ResetURL resets all changes to the "url" field.
func (*UserActivityMutation) ResetUpdateTime ¶
func (m *UserActivityMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*UserActivityMutation) ResetUser ¶
func (m *UserActivityMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*UserActivityMutation) SetCreateTime ¶
func (m *UserActivityMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*UserActivityMutation) SetField ¶
func (m *UserActivityMutation) 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 (*UserActivityMutation) SetIcon ¶
func (m *UserActivityMutation) SetIcon(s string)
SetIcon sets the "icon" field.
func (*UserActivityMutation) SetName ¶
func (m *UserActivityMutation) SetName(s string)
SetName sets the "name" field.
func (*UserActivityMutation) SetOp ¶
func (m *UserActivityMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserActivityMutation) SetURL ¶
func (m *UserActivityMutation) SetURL(s string)
SetURL sets the "url" field.
func (*UserActivityMutation) SetUpdateTime ¶
func (m *UserActivityMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*UserActivityMutation) SetUserID ¶
func (m *UserActivityMutation) SetUserID(id int)
SetUserID sets the "user" edge to the User entity by id.
func (UserActivityMutation) Tx ¶
func (m UserActivityMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserActivityMutation) Type ¶
func (m *UserActivityMutation) Type() string
Type returns the node type of this mutation (UserActivity).
func (*UserActivityMutation) URL ¶
func (m *UserActivityMutation) URL() (r string, exists bool)
URL returns the value of the "url" field in the mutation.
func (*UserActivityMutation) URLCleared ¶
func (m *UserActivityMutation) URLCleared() bool
URLCleared returns if the "url" field was cleared in this mutation.
func (*UserActivityMutation) UpdateTime ¶
func (m *UserActivityMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*UserActivityMutation) UserCleared ¶
func (m *UserActivityMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*UserActivityMutation) UserID ¶
func (m *UserActivityMutation) UserID() (id int, exists bool)
UserID returns the "user" edge ID in the mutation.
func (*UserActivityMutation) UserIDs ¶
func (m *UserActivityMutation) UserIDs() (ids []int)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*UserActivityMutation) Where ¶
func (m *UserActivityMutation) Where(ps ...predicate.UserActivity)
Where appends a list predicates to the UserActivityMutation builder.
func (*UserActivityMutation) WhereP ¶
func (m *UserActivityMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserActivityMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserActivityQuery ¶
type UserActivityQuery struct {
// contains filtered or unexported fields
}
UserActivityQuery is the builder for querying UserActivity entities.
func (*UserActivityQuery) Aggregate ¶
func (uaq *UserActivityQuery) Aggregate(fns ...AggregateFunc) *UserActivitySelect
Aggregate returns a UserActivitySelect configured with the given aggregations.
func (*UserActivityQuery) All ¶
func (uaq *UserActivityQuery) All(ctx context.Context) ([]*UserActivity, error)
All executes the query and returns a list of UserActivities.
func (*UserActivityQuery) AllX ¶
func (uaq *UserActivityQuery) AllX(ctx context.Context) []*UserActivity
AllX is like All, but panics if an error occurs.
func (*UserActivityQuery) Clone ¶
func (uaq *UserActivityQuery) Clone() *UserActivityQuery
Clone returns a duplicate of the UserActivityQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserActivityQuery) Count ¶
func (uaq *UserActivityQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UserActivityQuery) CountX ¶
func (uaq *UserActivityQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UserActivityQuery) Exist ¶
func (uaq *UserActivityQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UserActivityQuery) ExistX ¶
func (uaq *UserActivityQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UserActivityQuery) First ¶
func (uaq *UserActivityQuery) First(ctx context.Context) (*UserActivity, error)
First returns the first UserActivity entity from the query. Returns a *NotFoundError when no UserActivity was found.
func (*UserActivityQuery) FirstID ¶
func (uaq *UserActivityQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first UserActivity ID from the query. Returns a *NotFoundError when no UserActivity ID was found.
func (*UserActivityQuery) FirstIDX ¶
func (uaq *UserActivityQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserActivityQuery) FirstX ¶
func (uaq *UserActivityQuery) FirstX(ctx context.Context) *UserActivity
FirstX is like First, but panics if an error occurs.
func (*UserActivityQuery) GroupBy ¶
func (uaq *UserActivityQuery) GroupBy(field string, fields ...string) *UserActivityGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.UserActivity.Query(). GroupBy(useractivity.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserActivityQuery) IDs ¶
func (uaq *UserActivityQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of UserActivity IDs.
func (*UserActivityQuery) IDsX ¶
func (uaq *UserActivityQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*UserActivityQuery) Limit ¶
func (uaq *UserActivityQuery) Limit(limit int) *UserActivityQuery
Limit the number of records to be returned by this query.
func (*UserActivityQuery) Offset ¶
func (uaq *UserActivityQuery) Offset(offset int) *UserActivityQuery
Offset to start from.
func (*UserActivityQuery) Only ¶
func (uaq *UserActivityQuery) Only(ctx context.Context) (*UserActivity, error)
Only returns a single UserActivity entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserActivity entity is found. Returns a *NotFoundError when no UserActivity entities are found.
func (*UserActivityQuery) OnlyID ¶
func (uaq *UserActivityQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only UserActivity ID in the query. Returns a *NotSingularError when more than one UserActivity ID is found. Returns a *NotFoundError when no entities are found.
func (*UserActivityQuery) OnlyIDX ¶
func (uaq *UserActivityQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserActivityQuery) OnlyX ¶
func (uaq *UserActivityQuery) OnlyX(ctx context.Context) *UserActivity
OnlyX is like Only, but panics if an error occurs.
func (*UserActivityQuery) Order ¶
func (uaq *UserActivityQuery) Order(o ...useractivity.OrderOption) *UserActivityQuery
Order specifies how the records should be ordered.
func (*UserActivityQuery) QueryUser ¶
func (uaq *UserActivityQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*UserActivityQuery) Select ¶
func (uaq *UserActivityQuery) Select(fields ...string) *UserActivitySelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.UserActivity.Query(). Select(useractivity.FieldCreateTime). Scan(ctx, &v)
func (*UserActivityQuery) Unique ¶
func (uaq *UserActivityQuery) Unique(unique bool) *UserActivityQuery
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 (*UserActivityQuery) Where ¶
func (uaq *UserActivityQuery) Where(ps ...predicate.UserActivity) *UserActivityQuery
Where adds a new predicate for the UserActivityQuery builder.
func (*UserActivityQuery) WithUser ¶
func (uaq *UserActivityQuery) WithUser(opts ...func(*UserQuery)) *UserActivityQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
type UserActivitySelect ¶
type UserActivitySelect struct { *UserActivityQuery // contains filtered or unexported fields }
UserActivitySelect is the builder for selecting fields of UserActivity entities.
func (*UserActivitySelect) Aggregate ¶
func (uas *UserActivitySelect) Aggregate(fns ...AggregateFunc) *UserActivitySelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserActivitySelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserActivitySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserActivitySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserActivitySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserActivitySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserActivitySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserActivitySelect) Scan ¶
func (uas *UserActivitySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserActivitySelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserActivityUpdate ¶
type UserActivityUpdate struct {
// contains filtered or unexported fields
}
UserActivityUpdate is the builder for updating UserActivity entities.
func (*UserActivityUpdate) ClearIcon ¶
func (uau *UserActivityUpdate) ClearIcon() *UserActivityUpdate
ClearIcon clears the value of the "icon" field.
func (*UserActivityUpdate) ClearURL ¶
func (uau *UserActivityUpdate) ClearURL() *UserActivityUpdate
ClearURL clears the value of the "url" field.
func (*UserActivityUpdate) ClearUser ¶
func (uau *UserActivityUpdate) ClearUser() *UserActivityUpdate
ClearUser clears the "user" edge to the User entity.
func (*UserActivityUpdate) Exec ¶
func (uau *UserActivityUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserActivityUpdate) ExecX ¶
func (uau *UserActivityUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserActivityUpdate) Mutation ¶
func (uau *UserActivityUpdate) Mutation() *UserActivityMutation
Mutation returns the UserActivityMutation object of the builder.
func (*UserActivityUpdate) Save ¶
func (uau *UserActivityUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserActivityUpdate) SaveX ¶
func (uau *UserActivityUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserActivityUpdate) SetIcon ¶
func (uau *UserActivityUpdate) SetIcon(s string) *UserActivityUpdate
SetIcon sets the "icon" field.
func (*UserActivityUpdate) SetName ¶
func (uau *UserActivityUpdate) SetName(s string) *UserActivityUpdate
SetName sets the "name" field.
func (*UserActivityUpdate) SetNillableIcon ¶
func (uau *UserActivityUpdate) SetNillableIcon(s *string) *UserActivityUpdate
SetNillableIcon sets the "icon" field if the given value is not nil.
func (*UserActivityUpdate) SetNillableURL ¶
func (uau *UserActivityUpdate) SetNillableURL(s *string) *UserActivityUpdate
SetNillableURL sets the "url" field if the given value is not nil.
func (*UserActivityUpdate) SetURL ¶
func (uau *UserActivityUpdate) SetURL(s string) *UserActivityUpdate
SetURL sets the "url" field.
func (*UserActivityUpdate) SetUpdateTime ¶
func (uau *UserActivityUpdate) SetUpdateTime(t time.Time) *UserActivityUpdate
SetUpdateTime sets the "update_time" field.
func (*UserActivityUpdate) SetUser ¶
func (uau *UserActivityUpdate) SetUser(u *User) *UserActivityUpdate
SetUser sets the "user" edge to the User entity.
func (*UserActivityUpdate) SetUserID ¶
func (uau *UserActivityUpdate) SetUserID(id int) *UserActivityUpdate
SetUserID sets the "user" edge to the User entity by ID.
func (*UserActivityUpdate) Where ¶
func (uau *UserActivityUpdate) Where(ps ...predicate.UserActivity) *UserActivityUpdate
Where appends a list predicates to the UserActivityUpdate builder.
type UserActivityUpdateOne ¶
type UserActivityUpdateOne struct {
// contains filtered or unexported fields
}
UserActivityUpdateOne is the builder for updating a single UserActivity entity.
func (*UserActivityUpdateOne) ClearIcon ¶
func (uauo *UserActivityUpdateOne) ClearIcon() *UserActivityUpdateOne
ClearIcon clears the value of the "icon" field.
func (*UserActivityUpdateOne) ClearURL ¶
func (uauo *UserActivityUpdateOne) ClearURL() *UserActivityUpdateOne
ClearURL clears the value of the "url" field.
func (*UserActivityUpdateOne) ClearUser ¶
func (uauo *UserActivityUpdateOne) ClearUser() *UserActivityUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*UserActivityUpdateOne) Exec ¶
func (uauo *UserActivityUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserActivityUpdateOne) ExecX ¶
func (uauo *UserActivityUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserActivityUpdateOne) Mutation ¶
func (uauo *UserActivityUpdateOne) Mutation() *UserActivityMutation
Mutation returns the UserActivityMutation object of the builder.
func (*UserActivityUpdateOne) Save ¶
func (uauo *UserActivityUpdateOne) Save(ctx context.Context) (*UserActivity, error)
Save executes the query and returns the updated UserActivity entity.
func (*UserActivityUpdateOne) SaveX ¶
func (uauo *UserActivityUpdateOne) SaveX(ctx context.Context) *UserActivity
SaveX is like Save, but panics if an error occurs.
func (*UserActivityUpdateOne) Select ¶
func (uauo *UserActivityUpdateOne) Select(field string, fields ...string) *UserActivityUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserActivityUpdateOne) SetIcon ¶
func (uauo *UserActivityUpdateOne) SetIcon(s string) *UserActivityUpdateOne
SetIcon sets the "icon" field.
func (*UserActivityUpdateOne) SetName ¶
func (uauo *UserActivityUpdateOne) SetName(s string) *UserActivityUpdateOne
SetName sets the "name" field.
func (*UserActivityUpdateOne) SetNillableIcon ¶
func (uauo *UserActivityUpdateOne) SetNillableIcon(s *string) *UserActivityUpdateOne
SetNillableIcon sets the "icon" field if the given value is not nil.
func (*UserActivityUpdateOne) SetNillableURL ¶
func (uauo *UserActivityUpdateOne) SetNillableURL(s *string) *UserActivityUpdateOne
SetNillableURL sets the "url" field if the given value is not nil.
func (*UserActivityUpdateOne) SetURL ¶
func (uauo *UserActivityUpdateOne) SetURL(s string) *UserActivityUpdateOne
SetURL sets the "url" field.
func (*UserActivityUpdateOne) SetUpdateTime ¶
func (uauo *UserActivityUpdateOne) SetUpdateTime(t time.Time) *UserActivityUpdateOne
SetUpdateTime sets the "update_time" field.
func (*UserActivityUpdateOne) SetUser ¶
func (uauo *UserActivityUpdateOne) SetUser(u *User) *UserActivityUpdateOne
SetUser sets the "user" edge to the User entity.
func (*UserActivityUpdateOne) SetUserID ¶
func (uauo *UserActivityUpdateOne) SetUserID(id int) *UserActivityUpdateOne
SetUserID sets the "user" edge to the User entity by ID.
func (*UserActivityUpdateOne) Where ¶
func (uauo *UserActivityUpdateOne) Where(ps ...predicate.UserActivity) *UserActivityUpdateOne
Where appends a list predicates to the UserActivityUpdate builder.
type UserActivityUpsert ¶
UserActivityUpsert is the "OnConflict" setter.
func (*UserActivityUpsert) ClearIcon ¶
func (u *UserActivityUpsert) ClearIcon() *UserActivityUpsert
ClearIcon clears the value of the "icon" field.
func (*UserActivityUpsert) ClearURL ¶
func (u *UserActivityUpsert) ClearURL() *UserActivityUpsert
ClearURL clears the value of the "url" field.
func (*UserActivityUpsert) SetIcon ¶
func (u *UserActivityUpsert) SetIcon(v string) *UserActivityUpsert
SetIcon sets the "icon" field.
func (*UserActivityUpsert) SetName ¶
func (u *UserActivityUpsert) SetName(v string) *UserActivityUpsert
SetName sets the "name" field.
func (*UserActivityUpsert) SetURL ¶
func (u *UserActivityUpsert) SetURL(v string) *UserActivityUpsert
SetURL sets the "url" field.
func (*UserActivityUpsert) SetUpdateTime ¶
func (u *UserActivityUpsert) SetUpdateTime(v time.Time) *UserActivityUpsert
SetUpdateTime sets the "update_time" field.
func (*UserActivityUpsert) UpdateIcon ¶
func (u *UserActivityUpsert) UpdateIcon() *UserActivityUpsert
UpdateIcon sets the "icon" field to the value that was provided on create.
func (*UserActivityUpsert) UpdateName ¶
func (u *UserActivityUpsert) UpdateName() *UserActivityUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*UserActivityUpsert) UpdateURL ¶
func (u *UserActivityUpsert) UpdateURL() *UserActivityUpsert
UpdateURL sets the "url" field to the value that was provided on create.
func (*UserActivityUpsert) UpdateUpdateTime ¶
func (u *UserActivityUpsert) UpdateUpdateTime() *UserActivityUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserActivityUpsertBulk ¶
type UserActivityUpsertBulk struct {
// contains filtered or unexported fields
}
UserActivityUpsertBulk is the builder for "upsert"-ing a bulk of UserActivity nodes.
func (*UserActivityUpsertBulk) ClearIcon ¶
func (u *UserActivityUpsertBulk) ClearIcon() *UserActivityUpsertBulk
ClearIcon clears the value of the "icon" field.
func (*UserActivityUpsertBulk) ClearURL ¶
func (u *UserActivityUpsertBulk) ClearURL() *UserActivityUpsertBulk
ClearURL clears the value of the "url" field.
func (*UserActivityUpsertBulk) DoNothing ¶
func (u *UserActivityUpsertBulk) DoNothing() *UserActivityUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserActivityUpsertBulk) Exec ¶
func (u *UserActivityUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserActivityUpsertBulk) ExecX ¶
func (u *UserActivityUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserActivityUpsertBulk) Ignore ¶
func (u *UserActivityUpsertBulk) Ignore() *UserActivityUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserActivity.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserActivityUpsertBulk) SetIcon ¶
func (u *UserActivityUpsertBulk) SetIcon(v string) *UserActivityUpsertBulk
SetIcon sets the "icon" field.
func (*UserActivityUpsertBulk) SetName ¶
func (u *UserActivityUpsertBulk) SetName(v string) *UserActivityUpsertBulk
SetName sets the "name" field.
func (*UserActivityUpsertBulk) SetURL ¶
func (u *UserActivityUpsertBulk) SetURL(v string) *UserActivityUpsertBulk
SetURL sets the "url" field.
func (*UserActivityUpsertBulk) SetUpdateTime ¶
func (u *UserActivityUpsertBulk) SetUpdateTime(v time.Time) *UserActivityUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*UserActivityUpsertBulk) Update ¶
func (u *UserActivityUpsertBulk) Update(set func(*UserActivityUpsert)) *UserActivityUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserActivityCreateBulk.OnConflict documentation for more info.
func (*UserActivityUpsertBulk) UpdateIcon ¶
func (u *UserActivityUpsertBulk) UpdateIcon() *UserActivityUpsertBulk
UpdateIcon sets the "icon" field to the value that was provided on create.
func (*UserActivityUpsertBulk) UpdateName ¶
func (u *UserActivityUpsertBulk) UpdateName() *UserActivityUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*UserActivityUpsertBulk) UpdateNewValues ¶
func (u *UserActivityUpsertBulk) UpdateNewValues() *UserActivityUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserActivity.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserActivityUpsertBulk) UpdateURL ¶
func (u *UserActivityUpsertBulk) UpdateURL() *UserActivityUpsertBulk
UpdateURL sets the "url" field to the value that was provided on create.
func (*UserActivityUpsertBulk) UpdateUpdateTime ¶
func (u *UserActivityUpsertBulk) UpdateUpdateTime() *UserActivityUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserActivityUpsertOne ¶
type UserActivityUpsertOne struct {
// contains filtered or unexported fields
}
UserActivityUpsertOne is the builder for "upsert"-ing
one UserActivity node.
func (*UserActivityUpsertOne) ClearIcon ¶
func (u *UserActivityUpsertOne) ClearIcon() *UserActivityUpsertOne
ClearIcon clears the value of the "icon" field.
func (*UserActivityUpsertOne) ClearURL ¶
func (u *UserActivityUpsertOne) ClearURL() *UserActivityUpsertOne
ClearURL clears the value of the "url" field.
func (*UserActivityUpsertOne) DoNothing ¶
func (u *UserActivityUpsertOne) DoNothing() *UserActivityUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserActivityUpsertOne) Exec ¶
func (u *UserActivityUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserActivityUpsertOne) ExecX ¶
func (u *UserActivityUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserActivityUpsertOne) ID ¶
func (u *UserActivityUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserActivityUpsertOne) IDX ¶
func (u *UserActivityUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*UserActivityUpsertOne) Ignore ¶
func (u *UserActivityUpsertOne) Ignore() *UserActivityUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserActivity.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserActivityUpsertOne) SetIcon ¶
func (u *UserActivityUpsertOne) SetIcon(v string) *UserActivityUpsertOne
SetIcon sets the "icon" field.
func (*UserActivityUpsertOne) SetName ¶
func (u *UserActivityUpsertOne) SetName(v string) *UserActivityUpsertOne
SetName sets the "name" field.
func (*UserActivityUpsertOne) SetURL ¶
func (u *UserActivityUpsertOne) SetURL(v string) *UserActivityUpsertOne
SetURL sets the "url" field.
func (*UserActivityUpsertOne) SetUpdateTime ¶
func (u *UserActivityUpsertOne) SetUpdateTime(v time.Time) *UserActivityUpsertOne
SetUpdateTime sets the "update_time" field.
func (*UserActivityUpsertOne) Update ¶
func (u *UserActivityUpsertOne) Update(set func(*UserActivityUpsert)) *UserActivityUpsertOne
Update allows overriding fields `UPDATE` values. See the UserActivityCreate.OnConflict documentation for more info.
func (*UserActivityUpsertOne) UpdateIcon ¶
func (u *UserActivityUpsertOne) UpdateIcon() *UserActivityUpsertOne
UpdateIcon sets the "icon" field to the value that was provided on create.
func (*UserActivityUpsertOne) UpdateName ¶
func (u *UserActivityUpsertOne) UpdateName() *UserActivityUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*UserActivityUpsertOne) UpdateNewValues ¶
func (u *UserActivityUpsertOne) UpdateNewValues() *UserActivityUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserActivity.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserActivityUpsertOne) UpdateURL ¶
func (u *UserActivityUpsertOne) UpdateURL() *UserActivityUpsertOne
UpdateURL sets the "url" field to the value that was provided on create.
func (*UserActivityUpsertOne) UpdateUpdateTime ¶
func (u *UserActivityUpsertOne) UpdateUpdateTime() *UserActivityUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserCareer ¶
type UserCareer struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // From holds the value of the "from" field. From string `json:"from,omitempty"` // To holds the value of the "to" field. To *string `json:"to,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserCareerQuery when eager-loading is set. Edges UserCareerEdges `json:"edges"` // contains filtered or unexported fields }
UserCareer is the model entity for the UserCareer schema.
func (*UserCareer) QueryCareerDescriptions ¶
func (uc *UserCareer) QueryCareerDescriptions() *UserCareerDescriptionQuery
QueryCareerDescriptions queries the "careerDescriptions" edge of the UserCareer entity.
func (*UserCareer) QueryCareerGroup ¶
func (uc *UserCareer) QueryCareerGroup() *UserCareerGroupQuery
QueryCareerGroup queries the "careerGroup" edge of the UserCareer entity.
func (*UserCareer) QueryCareerSkillGroups ¶
func (uc *UserCareer) QueryCareerSkillGroups() *CareerSkillGroupQuery
QueryCareerSkillGroups queries the "careerSkillGroups" edge of the UserCareer entity.
func (*UserCareer) QueryCareerTasks ¶
func (uc *UserCareer) QueryCareerTasks() *CareerTaskQuery
QueryCareerTasks queries the "careerTasks" edge of the UserCareer entity.
func (*UserCareer) String ¶
func (uc *UserCareer) String() string
String implements the fmt.Stringer.
func (*UserCareer) Unwrap ¶
func (uc *UserCareer) Unwrap() *UserCareer
Unwrap unwraps the UserCareer 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 (*UserCareer) Update ¶
func (uc *UserCareer) Update() *UserCareerUpdateOne
Update returns a builder for updating this UserCareer. Note that you need to call UserCareer.Unwrap() before calling this method if this UserCareer was returned from a transaction, and the transaction was committed or rolled back.
type UserCareerClient ¶
type UserCareerClient struct {
// contains filtered or unexported fields
}
UserCareerClient is a client for the UserCareer schema.
func NewUserCareerClient ¶
func NewUserCareerClient(c config) *UserCareerClient
NewUserCareerClient returns a client for the UserCareer from the given config.
func (*UserCareerClient) Create ¶
func (c *UserCareerClient) Create() *UserCareerCreate
Create returns a builder for creating a UserCareer entity.
func (*UserCareerClient) CreateBulk ¶
func (c *UserCareerClient) CreateBulk(builders ...*UserCareerCreate) *UserCareerCreateBulk
CreateBulk returns a builder for creating a bulk of UserCareer entities.
func (*UserCareerClient) Delete ¶
func (c *UserCareerClient) Delete() *UserCareerDelete
Delete returns a delete builder for UserCareer.
func (*UserCareerClient) DeleteOne ¶
func (c *UserCareerClient) DeleteOne(uc *UserCareer) *UserCareerDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserCareerClient) DeleteOneID ¶
func (c *UserCareerClient) DeleteOneID(id int) *UserCareerDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserCareerClient) Get ¶
func (c *UserCareerClient) Get(ctx context.Context, id int) (*UserCareer, error)
Get returns a UserCareer entity by its id.
func (*UserCareerClient) GetX ¶
func (c *UserCareerClient) GetX(ctx context.Context, id int) *UserCareer
GetX is like Get, but panics if an error occurs.
func (*UserCareerClient) Hooks ¶
func (c *UserCareerClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UserCareerClient) Intercept ¶
func (c *UserCareerClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usercareer.Intercept(f(g(h())))`.
func (*UserCareerClient) Interceptors ¶
func (c *UserCareerClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserCareerClient) Query ¶
func (c *UserCareerClient) Query() *UserCareerQuery
Query returns a query builder for UserCareer.
func (*UserCareerClient) QueryCareerDescriptions ¶
func (c *UserCareerClient) QueryCareerDescriptions(uc *UserCareer) *UserCareerDescriptionQuery
QueryCareerDescriptions queries the careerDescriptions edge of a UserCareer.
func (*UserCareerClient) QueryCareerGroup ¶
func (c *UserCareerClient) QueryCareerGroup(uc *UserCareer) *UserCareerGroupQuery
QueryCareerGroup queries the careerGroup edge of a UserCareer.
func (*UserCareerClient) QueryCareerSkillGroups ¶
func (c *UserCareerClient) QueryCareerSkillGroups(uc *UserCareer) *CareerSkillGroupQuery
QueryCareerSkillGroups queries the careerSkillGroups edge of a UserCareer.
func (*UserCareerClient) QueryCareerTasks ¶
func (c *UserCareerClient) QueryCareerTasks(uc *UserCareer) *CareerTaskQuery
QueryCareerTasks queries the careerTasks edge of a UserCareer.
func (*UserCareerClient) Update ¶
func (c *UserCareerClient) Update() *UserCareerUpdate
Update returns an update builder for UserCareer.
func (*UserCareerClient) UpdateOne ¶
func (c *UserCareerClient) UpdateOne(uc *UserCareer) *UserCareerUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserCareerClient) UpdateOneID ¶
func (c *UserCareerClient) UpdateOneID(id int) *UserCareerUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserCareerClient) Use ¶
func (c *UserCareerClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usercareer.Hooks(f(g(h())))`.
type UserCareerCreate ¶
type UserCareerCreate struct {
// contains filtered or unexported fields
}
UserCareerCreate is the builder for creating a UserCareer entity.
func (*UserCareerCreate) AddCareerDescriptionIDs ¶
func (ucc *UserCareerCreate) AddCareerDescriptionIDs(ids ...int) *UserCareerCreate
AddCareerDescriptionIDs adds the "careerDescriptions" edge to the UserCareerDescription entity by IDs.
func (*UserCareerCreate) AddCareerDescriptions ¶
func (ucc *UserCareerCreate) AddCareerDescriptions(u ...*UserCareerDescription) *UserCareerCreate
AddCareerDescriptions adds the "careerDescriptions" edges to the UserCareerDescription entity.
func (*UserCareerCreate) AddCareerSkillGroupIDs ¶
func (ucc *UserCareerCreate) AddCareerSkillGroupIDs(ids ...int) *UserCareerCreate
AddCareerSkillGroupIDs adds the "careerSkillGroups" edge to the CareerSkillGroup entity by IDs.
func (*UserCareerCreate) AddCareerSkillGroups ¶
func (ucc *UserCareerCreate) AddCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerCreate
AddCareerSkillGroups adds the "careerSkillGroups" edges to the CareerSkillGroup entity.
func (*UserCareerCreate) AddCareerTaskIDs ¶
func (ucc *UserCareerCreate) AddCareerTaskIDs(ids ...int) *UserCareerCreate
AddCareerTaskIDs adds the "careerTasks" edge to the CareerTask entity by IDs.
func (*UserCareerCreate) AddCareerTasks ¶
func (ucc *UserCareerCreate) AddCareerTasks(c ...*CareerTask) *UserCareerCreate
AddCareerTasks adds the "careerTasks" edges to the CareerTask entity.
func (*UserCareerCreate) Exec ¶
func (ucc *UserCareerCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerCreate) ExecX ¶
func (ucc *UserCareerCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerCreate) Mutation ¶
func (ucc *UserCareerCreate) Mutation() *UserCareerMutation
Mutation returns the UserCareerMutation object of the builder.
func (*UserCareerCreate) OnConflict ¶
func (ucc *UserCareerCreate) OnConflict(opts ...sql.ConflictOption) *UserCareerUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserCareer.Create(). SetCreateTime(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.UserCareerUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserCareerCreate) OnConflictColumns ¶
func (ucc *UserCareerCreate) OnConflictColumns(columns ...string) *UserCareerUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserCareer.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserCareerCreate) Save ¶
func (ucc *UserCareerCreate) Save(ctx context.Context) (*UserCareer, error)
Save creates the UserCareer in the database.
func (*UserCareerCreate) SaveX ¶
func (ucc *UserCareerCreate) SaveX(ctx context.Context) *UserCareer
SaveX calls Save and panics if Save returns an error.
func (*UserCareerCreate) SetCareerGroup ¶
func (ucc *UserCareerCreate) SetCareerGroup(u *UserCareerGroup) *UserCareerCreate
SetCareerGroup sets the "careerGroup" edge to the UserCareerGroup entity.
func (*UserCareerCreate) SetCareerGroupID ¶
func (ucc *UserCareerCreate) SetCareerGroupID(id int) *UserCareerCreate
SetCareerGroupID sets the "careerGroup" edge to the UserCareerGroup entity by ID.
func (*UserCareerCreate) SetCreateTime ¶
func (ucc *UserCareerCreate) SetCreateTime(t time.Time) *UserCareerCreate
SetCreateTime sets the "create_time" field.
func (*UserCareerCreate) SetFrom ¶
func (ucc *UserCareerCreate) SetFrom(s string) *UserCareerCreate
SetFrom sets the "from" field.
func (*UserCareerCreate) SetName ¶
func (ucc *UserCareerCreate) SetName(s string) *UserCareerCreate
SetName sets the "name" field.
func (*UserCareerCreate) SetNillableCreateTime ¶
func (ucc *UserCareerCreate) SetNillableCreateTime(t *time.Time) *UserCareerCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*UserCareerCreate) SetNillableTo ¶
func (ucc *UserCareerCreate) SetNillableTo(s *string) *UserCareerCreate
SetNillableTo sets the "to" field if the given value is not nil.
func (*UserCareerCreate) SetNillableUpdateTime ¶
func (ucc *UserCareerCreate) SetNillableUpdateTime(t *time.Time) *UserCareerCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*UserCareerCreate) SetTo ¶
func (ucc *UserCareerCreate) SetTo(s string) *UserCareerCreate
SetTo sets the "to" field.
func (*UserCareerCreate) SetUpdateTime ¶
func (ucc *UserCareerCreate) SetUpdateTime(t time.Time) *UserCareerCreate
SetUpdateTime sets the "update_time" field.
type UserCareerCreateBulk ¶
type UserCareerCreateBulk struct {
// contains filtered or unexported fields
}
UserCareerCreateBulk is the builder for creating many UserCareer entities in bulk.
func (*UserCareerCreateBulk) Exec ¶
func (uccb *UserCareerCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerCreateBulk) ExecX ¶
func (uccb *UserCareerCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerCreateBulk) OnConflict ¶
func (uccb *UserCareerCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserCareerUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserCareer.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.UserCareerUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserCareerCreateBulk) OnConflictColumns ¶
func (uccb *UserCareerCreateBulk) OnConflictColumns(columns ...string) *UserCareerUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserCareer.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserCareerCreateBulk) Save ¶
func (uccb *UserCareerCreateBulk) Save(ctx context.Context) ([]*UserCareer, error)
Save creates the UserCareer entities in the database.
func (*UserCareerCreateBulk) SaveX ¶
func (uccb *UserCareerCreateBulk) SaveX(ctx context.Context) []*UserCareer
SaveX is like Save, but panics if an error occurs.
type UserCareerDelete ¶
type UserCareerDelete struct {
// contains filtered or unexported fields
}
UserCareerDelete is the builder for deleting a UserCareer entity.
func (*UserCareerDelete) Exec ¶
func (ucd *UserCareerDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserCareerDelete) ExecX ¶
func (ucd *UserCareerDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDelete) Where ¶
func (ucd *UserCareerDelete) Where(ps ...predicate.UserCareer) *UserCareerDelete
Where appends a list predicates to the UserCareerDelete builder.
type UserCareerDeleteOne ¶
type UserCareerDeleteOne struct {
// contains filtered or unexported fields
}
UserCareerDeleteOne is the builder for deleting a single UserCareer entity.
func (*UserCareerDeleteOne) Exec ¶
func (ucdo *UserCareerDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserCareerDeleteOne) ExecX ¶
func (ucdo *UserCareerDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDeleteOne) Where ¶
func (ucdo *UserCareerDeleteOne) Where(ps ...predicate.UserCareer) *UserCareerDeleteOne
Where appends a list predicates to the UserCareerDelete builder.
type UserCareerDescription ¶
type UserCareerDescription struct { // ID of the ent. ID int `json:"id,omitempty"` // Description holds the value of the "description" field. Description string `json:"description,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserCareerDescriptionQuery when eager-loading is set. Edges UserCareerDescriptionEdges `json:"edges"` // contains filtered or unexported fields }
UserCareerDescription is the model entity for the UserCareerDescription schema.
func (*UserCareerDescription) QueryCareer ¶
func (ucd *UserCareerDescription) QueryCareer() *UserCareerQuery
QueryCareer queries the "career" edge of the UserCareerDescription entity.
func (*UserCareerDescription) String ¶
func (ucd *UserCareerDescription) String() string
String implements the fmt.Stringer.
func (*UserCareerDescription) Unwrap ¶
func (ucd *UserCareerDescription) Unwrap() *UserCareerDescription
Unwrap unwraps the UserCareerDescription 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 (*UserCareerDescription) Update ¶
func (ucd *UserCareerDescription) Update() *UserCareerDescriptionUpdateOne
Update returns a builder for updating this UserCareerDescription. Note that you need to call UserCareerDescription.Unwrap() before calling this method if this UserCareerDescription was returned from a transaction, and the transaction was committed or rolled back.
type UserCareerDescriptionClient ¶
type UserCareerDescriptionClient struct {
// contains filtered or unexported fields
}
UserCareerDescriptionClient is a client for the UserCareerDescription schema.
func NewUserCareerDescriptionClient ¶
func NewUserCareerDescriptionClient(c config) *UserCareerDescriptionClient
NewUserCareerDescriptionClient returns a client for the UserCareerDescription from the given config.
func (*UserCareerDescriptionClient) Create ¶
func (c *UserCareerDescriptionClient) Create() *UserCareerDescriptionCreate
Create returns a builder for creating a UserCareerDescription entity.
func (*UserCareerDescriptionClient) CreateBulk ¶
func (c *UserCareerDescriptionClient) CreateBulk(builders ...*UserCareerDescriptionCreate) *UserCareerDescriptionCreateBulk
CreateBulk returns a builder for creating a bulk of UserCareerDescription entities.
func (*UserCareerDescriptionClient) Delete ¶
func (c *UserCareerDescriptionClient) Delete() *UserCareerDescriptionDelete
Delete returns a delete builder for UserCareerDescription.
func (*UserCareerDescriptionClient) DeleteOne ¶
func (c *UserCareerDescriptionClient) DeleteOne(ucd *UserCareerDescription) *UserCareerDescriptionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserCareerDescriptionClient) DeleteOneID ¶
func (c *UserCareerDescriptionClient) DeleteOneID(id int) *UserCareerDescriptionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserCareerDescriptionClient) Get ¶
func (c *UserCareerDescriptionClient) Get(ctx context.Context, id int) (*UserCareerDescription, error)
Get returns a UserCareerDescription entity by its id.
func (*UserCareerDescriptionClient) GetX ¶
func (c *UserCareerDescriptionClient) GetX(ctx context.Context, id int) *UserCareerDescription
GetX is like Get, but panics if an error occurs.
func (*UserCareerDescriptionClient) Hooks ¶
func (c *UserCareerDescriptionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UserCareerDescriptionClient) Intercept ¶
func (c *UserCareerDescriptionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usercareerdescription.Intercept(f(g(h())))`.
func (*UserCareerDescriptionClient) Interceptors ¶
func (c *UserCareerDescriptionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserCareerDescriptionClient) Query ¶
func (c *UserCareerDescriptionClient) Query() *UserCareerDescriptionQuery
Query returns a query builder for UserCareerDescription.
func (*UserCareerDescriptionClient) QueryCareer ¶
func (c *UserCareerDescriptionClient) QueryCareer(ucd *UserCareerDescription) *UserCareerQuery
QueryCareer queries the career edge of a UserCareerDescription.
func (*UserCareerDescriptionClient) Update ¶
func (c *UserCareerDescriptionClient) Update() *UserCareerDescriptionUpdate
Update returns an update builder for UserCareerDescription.
func (*UserCareerDescriptionClient) UpdateOne ¶
func (c *UserCareerDescriptionClient) UpdateOne(ucd *UserCareerDescription) *UserCareerDescriptionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserCareerDescriptionClient) UpdateOneID ¶
func (c *UserCareerDescriptionClient) UpdateOneID(id int) *UserCareerDescriptionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserCareerDescriptionClient) Use ¶
func (c *UserCareerDescriptionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usercareerdescription.Hooks(f(g(h())))`.
type UserCareerDescriptionCreate ¶
type UserCareerDescriptionCreate struct {
// contains filtered or unexported fields
}
UserCareerDescriptionCreate is the builder for creating a UserCareerDescription entity.
func (*UserCareerDescriptionCreate) Exec ¶
func (ucdc *UserCareerDescriptionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerDescriptionCreate) ExecX ¶
func (ucdc *UserCareerDescriptionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDescriptionCreate) Mutation ¶
func (ucdc *UserCareerDescriptionCreate) Mutation() *UserCareerDescriptionMutation
Mutation returns the UserCareerDescriptionMutation object of the builder.
func (*UserCareerDescriptionCreate) OnConflict ¶
func (ucdc *UserCareerDescriptionCreate) OnConflict(opts ...sql.ConflictOption) *UserCareerDescriptionUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserCareerDescription.Create(). SetDescription(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.UserCareerDescriptionUpsert) { SetDescription(v+v). }). Exec(ctx)
func (*UserCareerDescriptionCreate) OnConflictColumns ¶
func (ucdc *UserCareerDescriptionCreate) OnConflictColumns(columns ...string) *UserCareerDescriptionUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserCareerDescription.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserCareerDescriptionCreate) Save ¶
func (ucdc *UserCareerDescriptionCreate) Save(ctx context.Context) (*UserCareerDescription, error)
Save creates the UserCareerDescription in the database.
func (*UserCareerDescriptionCreate) SaveX ¶
func (ucdc *UserCareerDescriptionCreate) SaveX(ctx context.Context) *UserCareerDescription
SaveX calls Save and panics if Save returns an error.
func (*UserCareerDescriptionCreate) SetCareer ¶
func (ucdc *UserCareerDescriptionCreate) SetCareer(u *UserCareer) *UserCareerDescriptionCreate
SetCareer sets the "career" edge to the UserCareer entity.
func (*UserCareerDescriptionCreate) SetCareerID ¶
func (ucdc *UserCareerDescriptionCreate) SetCareerID(id int) *UserCareerDescriptionCreate
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*UserCareerDescriptionCreate) SetDescription ¶
func (ucdc *UserCareerDescriptionCreate) SetDescription(s string) *UserCareerDescriptionCreate
SetDescription sets the "description" field.
type UserCareerDescriptionCreateBulk ¶
type UserCareerDescriptionCreateBulk struct {
// contains filtered or unexported fields
}
UserCareerDescriptionCreateBulk is the builder for creating many UserCareerDescription entities in bulk.
func (*UserCareerDescriptionCreateBulk) Exec ¶
func (ucdcb *UserCareerDescriptionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerDescriptionCreateBulk) ExecX ¶
func (ucdcb *UserCareerDescriptionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDescriptionCreateBulk) OnConflict ¶
func (ucdcb *UserCareerDescriptionCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserCareerDescriptionUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserCareerDescription.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.UserCareerDescriptionUpsert) { SetDescription(v+v). }). Exec(ctx)
func (*UserCareerDescriptionCreateBulk) OnConflictColumns ¶
func (ucdcb *UserCareerDescriptionCreateBulk) OnConflictColumns(columns ...string) *UserCareerDescriptionUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserCareerDescription.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserCareerDescriptionCreateBulk) Save ¶
func (ucdcb *UserCareerDescriptionCreateBulk) Save(ctx context.Context) ([]*UserCareerDescription, error)
Save creates the UserCareerDescription entities in the database.
func (*UserCareerDescriptionCreateBulk) SaveX ¶
func (ucdcb *UserCareerDescriptionCreateBulk) SaveX(ctx context.Context) []*UserCareerDescription
SaveX is like Save, but panics if an error occurs.
type UserCareerDescriptionDelete ¶
type UserCareerDescriptionDelete struct {
// contains filtered or unexported fields
}
UserCareerDescriptionDelete is the builder for deleting a UserCareerDescription entity.
func (*UserCareerDescriptionDelete) Exec ¶
func (ucdd *UserCareerDescriptionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserCareerDescriptionDelete) ExecX ¶
func (ucdd *UserCareerDescriptionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDescriptionDelete) Where ¶
func (ucdd *UserCareerDescriptionDelete) Where(ps ...predicate.UserCareerDescription) *UserCareerDescriptionDelete
Where appends a list predicates to the UserCareerDescriptionDelete builder.
type UserCareerDescriptionDeleteOne ¶
type UserCareerDescriptionDeleteOne struct {
// contains filtered or unexported fields
}
UserCareerDescriptionDeleteOne is the builder for deleting a single UserCareerDescription entity.
func (*UserCareerDescriptionDeleteOne) Exec ¶
func (ucddo *UserCareerDescriptionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserCareerDescriptionDeleteOne) ExecX ¶
func (ucddo *UserCareerDescriptionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDescriptionDeleteOne) Where ¶
func (ucddo *UserCareerDescriptionDeleteOne) Where(ps ...predicate.UserCareerDescription) *UserCareerDescriptionDeleteOne
Where appends a list predicates to the UserCareerDescriptionDelete builder.
type UserCareerDescriptionEdges ¶
type UserCareerDescriptionEdges struct { // Career holds the value of the career edge. Career *UserCareer `json:"career,omitempty"` // contains filtered or unexported fields }
UserCareerDescriptionEdges holds the relations/edges for other nodes in the graph.
func (UserCareerDescriptionEdges) CareerOrErr ¶
func (e UserCareerDescriptionEdges) CareerOrErr() (*UserCareer, error)
CareerOrErr returns the Career value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UserCareerDescriptionGroupBy ¶
type UserCareerDescriptionGroupBy struct {
// contains filtered or unexported fields
}
UserCareerDescriptionGroupBy is the group-by builder for UserCareerDescription entities.
func (*UserCareerDescriptionGroupBy) Aggregate ¶
func (ucdgb *UserCareerDescriptionGroupBy) Aggregate(fns ...AggregateFunc) *UserCareerDescriptionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserCareerDescriptionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*UserCareerDescriptionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*UserCareerDescriptionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionGroupBy) Scan ¶
func (ucdgb *UserCareerDescriptionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserCareerDescriptionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionGroupBy) StringX ¶
StringX is like String, but panics if an error occurs.
type UserCareerDescriptionMutation ¶
type UserCareerDescriptionMutation struct {
// contains filtered or unexported fields
}
UserCareerDescriptionMutation represents an operation that mutates the UserCareerDescription nodes in the graph.
func (*UserCareerDescriptionMutation) AddField ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) AddedEdges ¶
func (m *UserCareerDescriptionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserCareerDescriptionMutation) AddedField ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) AddedFields ¶
func (m *UserCareerDescriptionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserCareerDescriptionMutation) AddedIDs ¶
func (m *UserCareerDescriptionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserCareerDescriptionMutation) CareerCleared ¶
func (m *UserCareerDescriptionMutation) CareerCleared() bool
CareerCleared reports if the "career" edge to the UserCareer entity was cleared.
func (*UserCareerDescriptionMutation) CareerID ¶
func (m *UserCareerDescriptionMutation) CareerID() (id int, exists bool)
CareerID returns the "career" edge ID in the mutation.
func (*UserCareerDescriptionMutation) CareerIDs ¶
func (m *UserCareerDescriptionMutation) CareerIDs() (ids []int)
CareerIDs returns the "career" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CareerID instead. It exists only for internal usage by the builders.
func (*UserCareerDescriptionMutation) ClearCareer ¶
func (m *UserCareerDescriptionMutation) ClearCareer()
ClearCareer clears the "career" edge to the UserCareer entity.
func (*UserCareerDescriptionMutation) ClearEdge ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) ClearField ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) ClearedEdges ¶
func (m *UserCareerDescriptionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserCareerDescriptionMutation) ClearedFields ¶
func (m *UserCareerDescriptionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserCareerDescriptionMutation) Client ¶
func (m UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) Description ¶
func (m *UserCareerDescriptionMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*UserCareerDescriptionMutation) EdgeCleared ¶
func (m *UserCareerDescriptionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserCareerDescriptionMutation) Field ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) FieldCleared ¶
func (m *UserCareerDescriptionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserCareerDescriptionMutation) Fields ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) ID ¶
func (m *UserCareerDescriptionMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserCareerDescriptionMutation) IDs ¶
func (m *UserCareerDescriptionMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserCareerDescriptionMutation) OldDescription ¶
func (m *UserCareerDescriptionMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the UserCareerDescription entity. If the UserCareerDescription object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerDescriptionMutation) OldField ¶
func (m *UserCareerDescriptionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*UserCareerDescriptionMutation) Op ¶
func (m *UserCareerDescriptionMutation) Op() Op
Op returns the operation name.
func (*UserCareerDescriptionMutation) RemovedEdges ¶
func (m *UserCareerDescriptionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserCareerDescriptionMutation) RemovedIDs ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) ResetCareer ¶
func (m *UserCareerDescriptionMutation) ResetCareer()
ResetCareer resets all changes to the "career" edge.
func (*UserCareerDescriptionMutation) ResetDescription ¶
func (m *UserCareerDescriptionMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*UserCareerDescriptionMutation) ResetEdge ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) ResetField ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) SetCareerID ¶
func (m *UserCareerDescriptionMutation) SetCareerID(id int)
SetCareerID sets the "career" edge to the UserCareer entity by id.
func (*UserCareerDescriptionMutation) SetDescription ¶
func (m *UserCareerDescriptionMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*UserCareerDescriptionMutation) SetField ¶
func (m *UserCareerDescriptionMutation) 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 (*UserCareerDescriptionMutation) SetOp ¶
func (m *UserCareerDescriptionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (UserCareerDescriptionMutation) Tx ¶
func (m UserCareerDescriptionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserCareerDescriptionMutation) Type ¶
func (m *UserCareerDescriptionMutation) Type() string
Type returns the node type of this mutation (UserCareerDescription).
func (*UserCareerDescriptionMutation) Where ¶
func (m *UserCareerDescriptionMutation) Where(ps ...predicate.UserCareerDescription)
Where appends a list predicates to the UserCareerDescriptionMutation builder.
func (*UserCareerDescriptionMutation) WhereP ¶
func (m *UserCareerDescriptionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserCareerDescriptionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserCareerDescriptionQuery ¶
type UserCareerDescriptionQuery struct {
// contains filtered or unexported fields
}
UserCareerDescriptionQuery is the builder for querying UserCareerDescription entities.
func (*UserCareerDescriptionQuery) Aggregate ¶
func (ucdq *UserCareerDescriptionQuery) Aggregate(fns ...AggregateFunc) *UserCareerDescriptionSelect
Aggregate returns a UserCareerDescriptionSelect configured with the given aggregations.
func (*UserCareerDescriptionQuery) All ¶
func (ucdq *UserCareerDescriptionQuery) All(ctx context.Context) ([]*UserCareerDescription, error)
All executes the query and returns a list of UserCareerDescriptions.
func (*UserCareerDescriptionQuery) AllX ¶
func (ucdq *UserCareerDescriptionQuery) AllX(ctx context.Context) []*UserCareerDescription
AllX is like All, but panics if an error occurs.
func (*UserCareerDescriptionQuery) Clone ¶
func (ucdq *UserCareerDescriptionQuery) Clone() *UserCareerDescriptionQuery
Clone returns a duplicate of the UserCareerDescriptionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserCareerDescriptionQuery) Count ¶
func (ucdq *UserCareerDescriptionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UserCareerDescriptionQuery) CountX ¶
func (ucdq *UserCareerDescriptionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UserCareerDescriptionQuery) Exist ¶
func (ucdq *UserCareerDescriptionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UserCareerDescriptionQuery) ExistX ¶
func (ucdq *UserCareerDescriptionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UserCareerDescriptionQuery) First ¶
func (ucdq *UserCareerDescriptionQuery) First(ctx context.Context) (*UserCareerDescription, error)
First returns the first UserCareerDescription entity from the query. Returns a *NotFoundError when no UserCareerDescription was found.
func (*UserCareerDescriptionQuery) FirstID ¶
func (ucdq *UserCareerDescriptionQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first UserCareerDescription ID from the query. Returns a *NotFoundError when no UserCareerDescription ID was found.
func (*UserCareerDescriptionQuery) FirstIDX ¶
func (ucdq *UserCareerDescriptionQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserCareerDescriptionQuery) FirstX ¶
func (ucdq *UserCareerDescriptionQuery) FirstX(ctx context.Context) *UserCareerDescription
FirstX is like First, but panics if an error occurs.
func (*UserCareerDescriptionQuery) GroupBy ¶
func (ucdq *UserCareerDescriptionQuery) GroupBy(field string, fields ...string) *UserCareerDescriptionGroupBy
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 { Description string `json:"description,omitempty"` Count int `json:"count,omitempty"` } client.UserCareerDescription.Query(). GroupBy(usercareerdescription.FieldDescription). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserCareerDescriptionQuery) IDs ¶
func (ucdq *UserCareerDescriptionQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of UserCareerDescription IDs.
func (*UserCareerDescriptionQuery) IDsX ¶
func (ucdq *UserCareerDescriptionQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*UserCareerDescriptionQuery) Limit ¶
func (ucdq *UserCareerDescriptionQuery) Limit(limit int) *UserCareerDescriptionQuery
Limit the number of records to be returned by this query.
func (*UserCareerDescriptionQuery) Offset ¶
func (ucdq *UserCareerDescriptionQuery) Offset(offset int) *UserCareerDescriptionQuery
Offset to start from.
func (*UserCareerDescriptionQuery) Only ¶
func (ucdq *UserCareerDescriptionQuery) Only(ctx context.Context) (*UserCareerDescription, error)
Only returns a single UserCareerDescription entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserCareerDescription entity is found. Returns a *NotFoundError when no UserCareerDescription entities are found.
func (*UserCareerDescriptionQuery) OnlyID ¶
func (ucdq *UserCareerDescriptionQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only UserCareerDescription ID in the query. Returns a *NotSingularError when more than one UserCareerDescription ID is found. Returns a *NotFoundError when no entities are found.
func (*UserCareerDescriptionQuery) OnlyIDX ¶
func (ucdq *UserCareerDescriptionQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserCareerDescriptionQuery) OnlyX ¶
func (ucdq *UserCareerDescriptionQuery) OnlyX(ctx context.Context) *UserCareerDescription
OnlyX is like Only, but panics if an error occurs.
func (*UserCareerDescriptionQuery) Order ¶
func (ucdq *UserCareerDescriptionQuery) Order(o ...usercareerdescription.OrderOption) *UserCareerDescriptionQuery
Order specifies how the records should be ordered.
func (*UserCareerDescriptionQuery) QueryCareer ¶
func (ucdq *UserCareerDescriptionQuery) QueryCareer() *UserCareerQuery
QueryCareer chains the current query on the "career" edge.
func (*UserCareerDescriptionQuery) Select ¶
func (ucdq *UserCareerDescriptionQuery) Select(fields ...string) *UserCareerDescriptionSelect
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 { Description string `json:"description,omitempty"` } client.UserCareerDescription.Query(). Select(usercareerdescription.FieldDescription). Scan(ctx, &v)
func (*UserCareerDescriptionQuery) Unique ¶
func (ucdq *UserCareerDescriptionQuery) Unique(unique bool) *UserCareerDescriptionQuery
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 (*UserCareerDescriptionQuery) Where ¶
func (ucdq *UserCareerDescriptionQuery) Where(ps ...predicate.UserCareerDescription) *UserCareerDescriptionQuery
Where adds a new predicate for the UserCareerDescriptionQuery builder.
func (*UserCareerDescriptionQuery) WithCareer ¶
func (ucdq *UserCareerDescriptionQuery) WithCareer(opts ...func(*UserCareerQuery)) *UserCareerDescriptionQuery
WithCareer tells the query-builder to eager-load the nodes that are connected to the "career" edge. The optional arguments are used to configure the query builder of the edge.
type UserCareerDescriptionSelect ¶
type UserCareerDescriptionSelect struct { *UserCareerDescriptionQuery // contains filtered or unexported fields }
UserCareerDescriptionSelect is the builder for selecting fields of UserCareerDescription entities.
func (*UserCareerDescriptionSelect) Aggregate ¶
func (ucds *UserCareerDescriptionSelect) Aggregate(fns ...AggregateFunc) *UserCareerDescriptionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserCareerDescriptionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionSelect) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*UserCareerDescriptionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*UserCareerDescriptionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionSelect) Scan ¶
func (ucds *UserCareerDescriptionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserCareerDescriptionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
func (*UserCareerDescriptionSelect) StringX ¶
StringX is like String, but panics if an error occurs.
type UserCareerDescriptionUpdate ¶
type UserCareerDescriptionUpdate struct {
// contains filtered or unexported fields
}
UserCareerDescriptionUpdate is the builder for updating UserCareerDescription entities.
func (*UserCareerDescriptionUpdate) ClearCareer ¶
func (ucdu *UserCareerDescriptionUpdate) ClearCareer() *UserCareerDescriptionUpdate
ClearCareer clears the "career" edge to the UserCareer entity.
func (*UserCareerDescriptionUpdate) Exec ¶
func (ucdu *UserCareerDescriptionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerDescriptionUpdate) ExecX ¶
func (ucdu *UserCareerDescriptionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDescriptionUpdate) Mutation ¶
func (ucdu *UserCareerDescriptionUpdate) Mutation() *UserCareerDescriptionMutation
Mutation returns the UserCareerDescriptionMutation object of the builder.
func (*UserCareerDescriptionUpdate) Save ¶
func (ucdu *UserCareerDescriptionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserCareerDescriptionUpdate) SaveX ¶
func (ucdu *UserCareerDescriptionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserCareerDescriptionUpdate) SetCareer ¶
func (ucdu *UserCareerDescriptionUpdate) SetCareer(u *UserCareer) *UserCareerDescriptionUpdate
SetCareer sets the "career" edge to the UserCareer entity.
func (*UserCareerDescriptionUpdate) SetCareerID ¶
func (ucdu *UserCareerDescriptionUpdate) SetCareerID(id int) *UserCareerDescriptionUpdate
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*UserCareerDescriptionUpdate) SetDescription ¶
func (ucdu *UserCareerDescriptionUpdate) SetDescription(s string) *UserCareerDescriptionUpdate
SetDescription sets the "description" field.
func (*UserCareerDescriptionUpdate) Where ¶
func (ucdu *UserCareerDescriptionUpdate) Where(ps ...predicate.UserCareerDescription) *UserCareerDescriptionUpdate
Where appends a list predicates to the UserCareerDescriptionUpdate builder.
type UserCareerDescriptionUpdateOne ¶
type UserCareerDescriptionUpdateOne struct {
// contains filtered or unexported fields
}
UserCareerDescriptionUpdateOne is the builder for updating a single UserCareerDescription entity.
func (*UserCareerDescriptionUpdateOne) ClearCareer ¶
func (ucduo *UserCareerDescriptionUpdateOne) ClearCareer() *UserCareerDescriptionUpdateOne
ClearCareer clears the "career" edge to the UserCareer entity.
func (*UserCareerDescriptionUpdateOne) Exec ¶
func (ucduo *UserCareerDescriptionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserCareerDescriptionUpdateOne) ExecX ¶
func (ucduo *UserCareerDescriptionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDescriptionUpdateOne) Mutation ¶
func (ucduo *UserCareerDescriptionUpdateOne) Mutation() *UserCareerDescriptionMutation
Mutation returns the UserCareerDescriptionMutation object of the builder.
func (*UserCareerDescriptionUpdateOne) Save ¶
func (ucduo *UserCareerDescriptionUpdateOne) Save(ctx context.Context) (*UserCareerDescription, error)
Save executes the query and returns the updated UserCareerDescription entity.
func (*UserCareerDescriptionUpdateOne) SaveX ¶
func (ucduo *UserCareerDescriptionUpdateOne) SaveX(ctx context.Context) *UserCareerDescription
SaveX is like Save, but panics if an error occurs.
func (*UserCareerDescriptionUpdateOne) Select ¶
func (ucduo *UserCareerDescriptionUpdateOne) Select(field string, fields ...string) *UserCareerDescriptionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserCareerDescriptionUpdateOne) SetCareer ¶
func (ucduo *UserCareerDescriptionUpdateOne) SetCareer(u *UserCareer) *UserCareerDescriptionUpdateOne
SetCareer sets the "career" edge to the UserCareer entity.
func (*UserCareerDescriptionUpdateOne) SetCareerID ¶
func (ucduo *UserCareerDescriptionUpdateOne) SetCareerID(id int) *UserCareerDescriptionUpdateOne
SetCareerID sets the "career" edge to the UserCareer entity by ID.
func (*UserCareerDescriptionUpdateOne) SetDescription ¶
func (ucduo *UserCareerDescriptionUpdateOne) SetDescription(s string) *UserCareerDescriptionUpdateOne
SetDescription sets the "description" field.
func (*UserCareerDescriptionUpdateOne) Where ¶
func (ucduo *UserCareerDescriptionUpdateOne) Where(ps ...predicate.UserCareerDescription) *UserCareerDescriptionUpdateOne
Where appends a list predicates to the UserCareerDescriptionUpdate builder.
type UserCareerDescriptionUpsert ¶
UserCareerDescriptionUpsert is the "OnConflict" setter.
func (*UserCareerDescriptionUpsert) SetDescription ¶
func (u *UserCareerDescriptionUpsert) SetDescription(v string) *UserCareerDescriptionUpsert
SetDescription sets the "description" field.
func (*UserCareerDescriptionUpsert) UpdateDescription ¶
func (u *UserCareerDescriptionUpsert) UpdateDescription() *UserCareerDescriptionUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
type UserCareerDescriptionUpsertBulk ¶
type UserCareerDescriptionUpsertBulk struct {
// contains filtered or unexported fields
}
UserCareerDescriptionUpsertBulk is the builder for "upsert"-ing a bulk of UserCareerDescription nodes.
func (*UserCareerDescriptionUpsertBulk) DoNothing ¶
func (u *UserCareerDescriptionUpsertBulk) DoNothing() *UserCareerDescriptionUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserCareerDescriptionUpsertBulk) Exec ¶
func (u *UserCareerDescriptionUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerDescriptionUpsertBulk) ExecX ¶
func (u *UserCareerDescriptionUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDescriptionUpsertBulk) Ignore ¶
func (u *UserCareerDescriptionUpsertBulk) Ignore() *UserCareerDescriptionUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserCareerDescription.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserCareerDescriptionUpsertBulk) SetDescription ¶
func (u *UserCareerDescriptionUpsertBulk) SetDescription(v string) *UserCareerDescriptionUpsertBulk
SetDescription sets the "description" field.
func (*UserCareerDescriptionUpsertBulk) Update ¶
func (u *UserCareerDescriptionUpsertBulk) Update(set func(*UserCareerDescriptionUpsert)) *UserCareerDescriptionUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserCareerDescriptionCreateBulk.OnConflict documentation for more info.
func (*UserCareerDescriptionUpsertBulk) UpdateDescription ¶
func (u *UserCareerDescriptionUpsertBulk) UpdateDescription() *UserCareerDescriptionUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*UserCareerDescriptionUpsertBulk) UpdateNewValues ¶
func (u *UserCareerDescriptionUpsertBulk) UpdateNewValues() *UserCareerDescriptionUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserCareerDescription.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type UserCareerDescriptionUpsertOne ¶
type UserCareerDescriptionUpsertOne struct {
// contains filtered or unexported fields
}
UserCareerDescriptionUpsertOne is the builder for "upsert"-ing
one UserCareerDescription node.
func (*UserCareerDescriptionUpsertOne) DoNothing ¶
func (u *UserCareerDescriptionUpsertOne) DoNothing() *UserCareerDescriptionUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserCareerDescriptionUpsertOne) Exec ¶
func (u *UserCareerDescriptionUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerDescriptionUpsertOne) ExecX ¶
func (u *UserCareerDescriptionUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerDescriptionUpsertOne) ID ¶
func (u *UserCareerDescriptionUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserCareerDescriptionUpsertOne) IDX ¶
func (u *UserCareerDescriptionUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*UserCareerDescriptionUpsertOne) Ignore ¶
func (u *UserCareerDescriptionUpsertOne) Ignore() *UserCareerDescriptionUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserCareerDescription.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserCareerDescriptionUpsertOne) SetDescription ¶
func (u *UserCareerDescriptionUpsertOne) SetDescription(v string) *UserCareerDescriptionUpsertOne
SetDescription sets the "description" field.
func (*UserCareerDescriptionUpsertOne) Update ¶
func (u *UserCareerDescriptionUpsertOne) Update(set func(*UserCareerDescriptionUpsert)) *UserCareerDescriptionUpsertOne
Update allows overriding fields `UPDATE` values. See the UserCareerDescriptionCreate.OnConflict documentation for more info.
func (*UserCareerDescriptionUpsertOne) UpdateDescription ¶
func (u *UserCareerDescriptionUpsertOne) UpdateDescription() *UserCareerDescriptionUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*UserCareerDescriptionUpsertOne) UpdateNewValues ¶
func (u *UserCareerDescriptionUpsertOne) UpdateNewValues() *UserCareerDescriptionUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserCareerDescription.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type UserCareerDescriptions ¶
type UserCareerDescriptions []*UserCareerDescription
UserCareerDescriptions is a parsable slice of UserCareerDescription.
type UserCareerEdges ¶
type UserCareerEdges struct { // CareerGroup holds the value of the careerGroup edge. CareerGroup *UserCareerGroup `json:"careerGroup,omitempty"` // CareerDescriptions holds the value of the careerDescriptions edge. CareerDescriptions []*UserCareerDescription `json:"careerDescriptions,omitempty"` // CareerTasks holds the value of the careerTasks edge. CareerTasks []*CareerTask `json:"careerTasks,omitempty"` // CareerSkillGroups holds the value of the careerSkillGroups edge. CareerSkillGroups []*CareerSkillGroup `json:"careerSkillGroups,omitempty"` // contains filtered or unexported fields }
UserCareerEdges holds the relations/edges for other nodes in the graph.
func (UserCareerEdges) CareerDescriptionsOrErr ¶
func (e UserCareerEdges) CareerDescriptionsOrErr() ([]*UserCareerDescription, error)
CareerDescriptionsOrErr returns the CareerDescriptions value or an error if the edge was not loaded in eager-loading.
func (UserCareerEdges) CareerGroupOrErr ¶
func (e UserCareerEdges) CareerGroupOrErr() (*UserCareerGroup, error)
CareerGroupOrErr returns the CareerGroup value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (UserCareerEdges) CareerSkillGroupsOrErr ¶
func (e UserCareerEdges) CareerSkillGroupsOrErr() ([]*CareerSkillGroup, error)
CareerSkillGroupsOrErr returns the CareerSkillGroups value or an error if the edge was not loaded in eager-loading.
func (UserCareerEdges) CareerTasksOrErr ¶
func (e UserCareerEdges) CareerTasksOrErr() ([]*CareerTask, error)
CareerTasksOrErr returns the CareerTasks value or an error if the edge was not loaded in eager-loading.
type UserCareerGroup ¶
type UserCareerGroup struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Label holds the value of the "label" field. Label string `json:"label,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserCareerGroupQuery when eager-loading is set. Edges UserCareerGroupEdges `json:"edges"` // contains filtered or unexported fields }
UserCareerGroup is the model entity for the UserCareerGroup schema.
func (*UserCareerGroup) QueryCareers ¶
func (ucg *UserCareerGroup) QueryCareers() *UserCareerQuery
QueryCareers queries the "careers" edge of the UserCareerGroup entity.
func (*UserCareerGroup) QueryUser ¶
func (ucg *UserCareerGroup) QueryUser() *UserQuery
QueryUser queries the "user" edge of the UserCareerGroup entity.
func (*UserCareerGroup) String ¶
func (ucg *UserCareerGroup) String() string
String implements the fmt.Stringer.
func (*UserCareerGroup) Unwrap ¶
func (ucg *UserCareerGroup) Unwrap() *UserCareerGroup
Unwrap unwraps the UserCareerGroup 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 (*UserCareerGroup) Update ¶
func (ucg *UserCareerGroup) Update() *UserCareerGroupUpdateOne
Update returns a builder for updating this UserCareerGroup. Note that you need to call UserCareerGroup.Unwrap() before calling this method if this UserCareerGroup was returned from a transaction, and the transaction was committed or rolled back.
type UserCareerGroupBy ¶
type UserCareerGroupBy struct {
// contains filtered or unexported fields
}
UserCareerGroupBy is the group-by builder for UserCareer entities.
func (*UserCareerGroupBy) Aggregate ¶
func (ucgb *UserCareerGroupBy) Aggregate(fns ...AggregateFunc) *UserCareerGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserCareerGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupBy) Scan ¶
func (ucgb *UserCareerGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserCareerGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserCareerGroupClient ¶
type UserCareerGroupClient struct {
// contains filtered or unexported fields
}
UserCareerGroupClient is a client for the UserCareerGroup schema.
func NewUserCareerGroupClient ¶
func NewUserCareerGroupClient(c config) *UserCareerGroupClient
NewUserCareerGroupClient returns a client for the UserCareerGroup from the given config.
func (*UserCareerGroupClient) Create ¶
func (c *UserCareerGroupClient) Create() *UserCareerGroupCreate
Create returns a builder for creating a UserCareerGroup entity.
func (*UserCareerGroupClient) CreateBulk ¶
func (c *UserCareerGroupClient) CreateBulk(builders ...*UserCareerGroupCreate) *UserCareerGroupCreateBulk
CreateBulk returns a builder for creating a bulk of UserCareerGroup entities.
func (*UserCareerGroupClient) Delete ¶
func (c *UserCareerGroupClient) Delete() *UserCareerGroupDelete
Delete returns a delete builder for UserCareerGroup.
func (*UserCareerGroupClient) DeleteOne ¶
func (c *UserCareerGroupClient) DeleteOne(ucg *UserCareerGroup) *UserCareerGroupDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserCareerGroupClient) DeleteOneID ¶
func (c *UserCareerGroupClient) DeleteOneID(id int) *UserCareerGroupDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserCareerGroupClient) Get ¶
func (c *UserCareerGroupClient) Get(ctx context.Context, id int) (*UserCareerGroup, error)
Get returns a UserCareerGroup entity by its id.
func (*UserCareerGroupClient) GetX ¶
func (c *UserCareerGroupClient) GetX(ctx context.Context, id int) *UserCareerGroup
GetX is like Get, but panics if an error occurs.
func (*UserCareerGroupClient) Hooks ¶
func (c *UserCareerGroupClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UserCareerGroupClient) Intercept ¶
func (c *UserCareerGroupClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usercareergroup.Intercept(f(g(h())))`.
func (*UserCareerGroupClient) Interceptors ¶
func (c *UserCareerGroupClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserCareerGroupClient) Query ¶
func (c *UserCareerGroupClient) Query() *UserCareerGroupQuery
Query returns a query builder for UserCareerGroup.
func (*UserCareerGroupClient) QueryCareers ¶
func (c *UserCareerGroupClient) QueryCareers(ucg *UserCareerGroup) *UserCareerQuery
QueryCareers queries the careers edge of a UserCareerGroup.
func (*UserCareerGroupClient) QueryUser ¶
func (c *UserCareerGroupClient) QueryUser(ucg *UserCareerGroup) *UserQuery
QueryUser queries the user edge of a UserCareerGroup.
func (*UserCareerGroupClient) Update ¶
func (c *UserCareerGroupClient) Update() *UserCareerGroupUpdate
Update returns an update builder for UserCareerGroup.
func (*UserCareerGroupClient) UpdateOne ¶
func (c *UserCareerGroupClient) UpdateOne(ucg *UserCareerGroup) *UserCareerGroupUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserCareerGroupClient) UpdateOneID ¶
func (c *UserCareerGroupClient) UpdateOneID(id int) *UserCareerGroupUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserCareerGroupClient) Use ¶
func (c *UserCareerGroupClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usercareergroup.Hooks(f(g(h())))`.
type UserCareerGroupCreate ¶
type UserCareerGroupCreate struct {
// contains filtered or unexported fields
}
UserCareerGroupCreate is the builder for creating a UserCareerGroup entity.
func (*UserCareerGroupCreate) AddCareerIDs ¶
func (ucgc *UserCareerGroupCreate) AddCareerIDs(ids ...int) *UserCareerGroupCreate
AddCareerIDs adds the "careers" edge to the UserCareer entity by IDs.
func (*UserCareerGroupCreate) AddCareers ¶
func (ucgc *UserCareerGroupCreate) AddCareers(u ...*UserCareer) *UserCareerGroupCreate
AddCareers adds the "careers" edges to the UserCareer entity.
func (*UserCareerGroupCreate) Exec ¶
func (ucgc *UserCareerGroupCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerGroupCreate) ExecX ¶
func (ucgc *UserCareerGroupCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerGroupCreate) Mutation ¶
func (ucgc *UserCareerGroupCreate) Mutation() *UserCareerGroupMutation
Mutation returns the UserCareerGroupMutation object of the builder.
func (*UserCareerGroupCreate) OnConflict ¶
func (ucgc *UserCareerGroupCreate) OnConflict(opts ...sql.ConflictOption) *UserCareerGroupUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserCareerGroup.Create(). SetCreateTime(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.UserCareerGroupUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserCareerGroupCreate) OnConflictColumns ¶
func (ucgc *UserCareerGroupCreate) OnConflictColumns(columns ...string) *UserCareerGroupUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserCareerGroup.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserCareerGroupCreate) Save ¶
func (ucgc *UserCareerGroupCreate) Save(ctx context.Context) (*UserCareerGroup, error)
Save creates the UserCareerGroup in the database.
func (*UserCareerGroupCreate) SaveX ¶
func (ucgc *UserCareerGroupCreate) SaveX(ctx context.Context) *UserCareerGroup
SaveX calls Save and panics if Save returns an error.
func (*UserCareerGroupCreate) SetCreateTime ¶
func (ucgc *UserCareerGroupCreate) SetCreateTime(t time.Time) *UserCareerGroupCreate
SetCreateTime sets the "create_time" field.
func (*UserCareerGroupCreate) SetLabel ¶
func (ucgc *UserCareerGroupCreate) SetLabel(s string) *UserCareerGroupCreate
SetLabel sets the "label" field.
func (*UserCareerGroupCreate) SetNillableCreateTime ¶
func (ucgc *UserCareerGroupCreate) SetNillableCreateTime(t *time.Time) *UserCareerGroupCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*UserCareerGroupCreate) SetNillableUpdateTime ¶
func (ucgc *UserCareerGroupCreate) SetNillableUpdateTime(t *time.Time) *UserCareerGroupCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*UserCareerGroupCreate) SetUpdateTime ¶
func (ucgc *UserCareerGroupCreate) SetUpdateTime(t time.Time) *UserCareerGroupCreate
SetUpdateTime sets the "update_time" field.
func (*UserCareerGroupCreate) SetUser ¶
func (ucgc *UserCareerGroupCreate) SetUser(u *User) *UserCareerGroupCreate
SetUser sets the "user" edge to the User entity.
func (*UserCareerGroupCreate) SetUserID ¶
func (ucgc *UserCareerGroupCreate) SetUserID(id int) *UserCareerGroupCreate
SetUserID sets the "user" edge to the User entity by ID.
type UserCareerGroupCreateBulk ¶
type UserCareerGroupCreateBulk struct {
// contains filtered or unexported fields
}
UserCareerGroupCreateBulk is the builder for creating many UserCareerGroup entities in bulk.
func (*UserCareerGroupCreateBulk) Exec ¶
func (ucgcb *UserCareerGroupCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerGroupCreateBulk) ExecX ¶
func (ucgcb *UserCareerGroupCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerGroupCreateBulk) OnConflict ¶
func (ucgcb *UserCareerGroupCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserCareerGroupUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserCareerGroup.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.UserCareerGroupUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserCareerGroupCreateBulk) OnConflictColumns ¶
func (ucgcb *UserCareerGroupCreateBulk) OnConflictColumns(columns ...string) *UserCareerGroupUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserCareerGroup.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserCareerGroupCreateBulk) Save ¶
func (ucgcb *UserCareerGroupCreateBulk) Save(ctx context.Context) ([]*UserCareerGroup, error)
Save creates the UserCareerGroup entities in the database.
func (*UserCareerGroupCreateBulk) SaveX ¶
func (ucgcb *UserCareerGroupCreateBulk) SaveX(ctx context.Context) []*UserCareerGroup
SaveX is like Save, but panics if an error occurs.
type UserCareerGroupDelete ¶
type UserCareerGroupDelete struct {
// contains filtered or unexported fields
}
UserCareerGroupDelete is the builder for deleting a UserCareerGroup entity.
func (*UserCareerGroupDelete) Exec ¶
func (ucgd *UserCareerGroupDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserCareerGroupDelete) ExecX ¶
func (ucgd *UserCareerGroupDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerGroupDelete) Where ¶
func (ucgd *UserCareerGroupDelete) Where(ps ...predicate.UserCareerGroup) *UserCareerGroupDelete
Where appends a list predicates to the UserCareerGroupDelete builder.
type UserCareerGroupDeleteOne ¶
type UserCareerGroupDeleteOne struct {
// contains filtered or unexported fields
}
UserCareerGroupDeleteOne is the builder for deleting a single UserCareerGroup entity.
func (*UserCareerGroupDeleteOne) Exec ¶
func (ucgdo *UserCareerGroupDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserCareerGroupDeleteOne) ExecX ¶
func (ucgdo *UserCareerGroupDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerGroupDeleteOne) Where ¶
func (ucgdo *UserCareerGroupDeleteOne) Where(ps ...predicate.UserCareerGroup) *UserCareerGroupDeleteOne
Where appends a list predicates to the UserCareerGroupDelete builder.
type UserCareerGroupEdges ¶
type UserCareerGroupEdges struct { // User holds the value of the user edge. User *User `json:"user,omitempty"` // Careers holds the value of the careers edge. Careers []*UserCareer `json:"careers,omitempty"` // contains filtered or unexported fields }
UserCareerGroupEdges holds the relations/edges for other nodes in the graph.
func (UserCareerGroupEdges) CareersOrErr ¶
func (e UserCareerGroupEdges) CareersOrErr() ([]*UserCareer, error)
CareersOrErr returns the Careers value or an error if the edge was not loaded in eager-loading.
func (UserCareerGroupEdges) UserOrErr ¶
func (e UserCareerGroupEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UserCareerGroupGroupBy ¶
type UserCareerGroupGroupBy struct {
// contains filtered or unexported fields
}
UserCareerGroupGroupBy is the group-by builder for UserCareerGroup entities.
func (*UserCareerGroupGroupBy) Aggregate ¶
func (ucggb *UserCareerGroupGroupBy) Aggregate(fns ...AggregateFunc) *UserCareerGroupGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserCareerGroupGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*UserCareerGroupGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupGroupBy) Scan ¶
func (ucggb *UserCareerGroupGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserCareerGroupGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserCareerGroupMutation ¶
type UserCareerGroupMutation struct {
// contains filtered or unexported fields
}
UserCareerGroupMutation represents an operation that mutates the UserCareerGroup nodes in the graph.
func (*UserCareerGroupMutation) AddCareerIDs ¶
func (m *UserCareerGroupMutation) AddCareerIDs(ids ...int)
AddCareerIDs adds the "careers" edge to the UserCareer entity by ids.
func (*UserCareerGroupMutation) AddField ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) AddedEdges ¶
func (m *UserCareerGroupMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserCareerGroupMutation) AddedField ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) AddedFields ¶
func (m *UserCareerGroupMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserCareerGroupMutation) AddedIDs ¶
func (m *UserCareerGroupMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserCareerGroupMutation) CareersCleared ¶
func (m *UserCareerGroupMutation) CareersCleared() bool
CareersCleared reports if the "careers" edge to the UserCareer entity was cleared.
func (*UserCareerGroupMutation) CareersIDs ¶
func (m *UserCareerGroupMutation) CareersIDs() (ids []int)
CareersIDs returns the "careers" edge IDs in the mutation.
func (*UserCareerGroupMutation) ClearCareers ¶
func (m *UserCareerGroupMutation) ClearCareers()
ClearCareers clears the "careers" edge to the UserCareer entity.
func (*UserCareerGroupMutation) ClearEdge ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) ClearField ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) ClearUser ¶
func (m *UserCareerGroupMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*UserCareerGroupMutation) ClearedEdges ¶
func (m *UserCareerGroupMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserCareerGroupMutation) ClearedFields ¶
func (m *UserCareerGroupMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserCareerGroupMutation) Client ¶
func (m UserCareerGroupMutation) 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 (*UserCareerGroupMutation) CreateTime ¶
func (m *UserCareerGroupMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*UserCareerGroupMutation) EdgeCleared ¶
func (m *UserCareerGroupMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserCareerGroupMutation) Field ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) FieldCleared ¶
func (m *UserCareerGroupMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserCareerGroupMutation) Fields ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) ID ¶
func (m *UserCareerGroupMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserCareerGroupMutation) IDs ¶
func (m *UserCareerGroupMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserCareerGroupMutation) Label ¶
func (m *UserCareerGroupMutation) Label() (r string, exists bool)
Label returns the value of the "label" field in the mutation.
func (*UserCareerGroupMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the UserCareerGroup entity. If the UserCareerGroup object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerGroupMutation) 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 (*UserCareerGroupMutation) OldLabel ¶
func (m *UserCareerGroupMutation) OldLabel(ctx context.Context) (v string, err error)
OldLabel returns the old "label" field's value of the UserCareerGroup entity. If the UserCareerGroup object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerGroupMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the UserCareerGroup entity. If the UserCareerGroup object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerGroupMutation) Op ¶
func (m *UserCareerGroupMutation) Op() Op
Op returns the operation name.
func (*UserCareerGroupMutation) RemoveCareerIDs ¶
func (m *UserCareerGroupMutation) RemoveCareerIDs(ids ...int)
RemoveCareerIDs removes the "careers" edge to the UserCareer entity by IDs.
func (*UserCareerGroupMutation) RemovedCareersIDs ¶
func (m *UserCareerGroupMutation) RemovedCareersIDs() (ids []int)
RemovedCareers returns the removed IDs of the "careers" edge to the UserCareer entity.
func (*UserCareerGroupMutation) RemovedEdges ¶
func (m *UserCareerGroupMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserCareerGroupMutation) RemovedIDs ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) ResetCareers ¶
func (m *UserCareerGroupMutation) ResetCareers()
ResetCareers resets all changes to the "careers" edge.
func (*UserCareerGroupMutation) ResetCreateTime ¶
func (m *UserCareerGroupMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*UserCareerGroupMutation) ResetEdge ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) ResetField ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) ResetLabel ¶
func (m *UserCareerGroupMutation) ResetLabel()
ResetLabel resets all changes to the "label" field.
func (*UserCareerGroupMutation) ResetUpdateTime ¶
func (m *UserCareerGroupMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*UserCareerGroupMutation) ResetUser ¶
func (m *UserCareerGroupMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*UserCareerGroupMutation) SetCreateTime ¶
func (m *UserCareerGroupMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*UserCareerGroupMutation) SetField ¶
func (m *UserCareerGroupMutation) 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 (*UserCareerGroupMutation) SetLabel ¶
func (m *UserCareerGroupMutation) SetLabel(s string)
SetLabel sets the "label" field.
func (*UserCareerGroupMutation) SetOp ¶
func (m *UserCareerGroupMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserCareerGroupMutation) SetUpdateTime ¶
func (m *UserCareerGroupMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*UserCareerGroupMutation) SetUserID ¶
func (m *UserCareerGroupMutation) SetUserID(id int)
SetUserID sets the "user" edge to the User entity by id.
func (UserCareerGroupMutation) Tx ¶
func (m UserCareerGroupMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserCareerGroupMutation) Type ¶
func (m *UserCareerGroupMutation) Type() string
Type returns the node type of this mutation (UserCareerGroup).
func (*UserCareerGroupMutation) UpdateTime ¶
func (m *UserCareerGroupMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*UserCareerGroupMutation) UserCleared ¶
func (m *UserCareerGroupMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*UserCareerGroupMutation) UserID ¶
func (m *UserCareerGroupMutation) UserID() (id int, exists bool)
UserID returns the "user" edge ID in the mutation.
func (*UserCareerGroupMutation) UserIDs ¶
func (m *UserCareerGroupMutation) UserIDs() (ids []int)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*UserCareerGroupMutation) Where ¶
func (m *UserCareerGroupMutation) Where(ps ...predicate.UserCareerGroup)
Where appends a list predicates to the UserCareerGroupMutation builder.
func (*UserCareerGroupMutation) WhereP ¶
func (m *UserCareerGroupMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserCareerGroupMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserCareerGroupQuery ¶
type UserCareerGroupQuery struct {
// contains filtered or unexported fields
}
UserCareerGroupQuery is the builder for querying UserCareerGroup entities.
func (*UserCareerGroupQuery) Aggregate ¶
func (ucgq *UserCareerGroupQuery) Aggregate(fns ...AggregateFunc) *UserCareerGroupSelect
Aggregate returns a UserCareerGroupSelect configured with the given aggregations.
func (*UserCareerGroupQuery) All ¶
func (ucgq *UserCareerGroupQuery) All(ctx context.Context) ([]*UserCareerGroup, error)
All executes the query and returns a list of UserCareerGroups.
func (*UserCareerGroupQuery) AllX ¶
func (ucgq *UserCareerGroupQuery) AllX(ctx context.Context) []*UserCareerGroup
AllX is like All, but panics if an error occurs.
func (*UserCareerGroupQuery) Clone ¶
func (ucgq *UserCareerGroupQuery) Clone() *UserCareerGroupQuery
Clone returns a duplicate of the UserCareerGroupQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserCareerGroupQuery) Count ¶
func (ucgq *UserCareerGroupQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UserCareerGroupQuery) CountX ¶
func (ucgq *UserCareerGroupQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UserCareerGroupQuery) Exist ¶
func (ucgq *UserCareerGroupQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UserCareerGroupQuery) ExistX ¶
func (ucgq *UserCareerGroupQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UserCareerGroupQuery) First ¶
func (ucgq *UserCareerGroupQuery) First(ctx context.Context) (*UserCareerGroup, error)
First returns the first UserCareerGroup entity from the query. Returns a *NotFoundError when no UserCareerGroup was found.
func (*UserCareerGroupQuery) FirstID ¶
func (ucgq *UserCareerGroupQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first UserCareerGroup ID from the query. Returns a *NotFoundError when no UserCareerGroup ID was found.
func (*UserCareerGroupQuery) FirstIDX ¶
func (ucgq *UserCareerGroupQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserCareerGroupQuery) FirstX ¶
func (ucgq *UserCareerGroupQuery) FirstX(ctx context.Context) *UserCareerGroup
FirstX is like First, but panics if an error occurs.
func (*UserCareerGroupQuery) GroupBy ¶
func (ucgq *UserCareerGroupQuery) GroupBy(field string, fields ...string) *UserCareerGroupGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.UserCareerGroup.Query(). GroupBy(usercareergroup.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserCareerGroupQuery) IDs ¶
func (ucgq *UserCareerGroupQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of UserCareerGroup IDs.
func (*UserCareerGroupQuery) IDsX ¶
func (ucgq *UserCareerGroupQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*UserCareerGroupQuery) Limit ¶
func (ucgq *UserCareerGroupQuery) Limit(limit int) *UserCareerGroupQuery
Limit the number of records to be returned by this query.
func (*UserCareerGroupQuery) Offset ¶
func (ucgq *UserCareerGroupQuery) Offset(offset int) *UserCareerGroupQuery
Offset to start from.
func (*UserCareerGroupQuery) Only ¶
func (ucgq *UserCareerGroupQuery) Only(ctx context.Context) (*UserCareerGroup, error)
Only returns a single UserCareerGroup entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserCareerGroup entity is found. Returns a *NotFoundError when no UserCareerGroup entities are found.
func (*UserCareerGroupQuery) OnlyID ¶
func (ucgq *UserCareerGroupQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only UserCareerGroup ID in the query. Returns a *NotSingularError when more than one UserCareerGroup ID is found. Returns a *NotFoundError when no entities are found.
func (*UserCareerGroupQuery) OnlyIDX ¶
func (ucgq *UserCareerGroupQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserCareerGroupQuery) OnlyX ¶
func (ucgq *UserCareerGroupQuery) OnlyX(ctx context.Context) *UserCareerGroup
OnlyX is like Only, but panics if an error occurs.
func (*UserCareerGroupQuery) Order ¶
func (ucgq *UserCareerGroupQuery) Order(o ...usercareergroup.OrderOption) *UserCareerGroupQuery
Order specifies how the records should be ordered.
func (*UserCareerGroupQuery) QueryCareers ¶
func (ucgq *UserCareerGroupQuery) QueryCareers() *UserCareerQuery
QueryCareers chains the current query on the "careers" edge.
func (*UserCareerGroupQuery) QueryUser ¶
func (ucgq *UserCareerGroupQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*UserCareerGroupQuery) Select ¶
func (ucgq *UserCareerGroupQuery) Select(fields ...string) *UserCareerGroupSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.UserCareerGroup.Query(). Select(usercareergroup.FieldCreateTime). Scan(ctx, &v)
func (*UserCareerGroupQuery) Unique ¶
func (ucgq *UserCareerGroupQuery) Unique(unique bool) *UserCareerGroupQuery
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 (*UserCareerGroupQuery) Where ¶
func (ucgq *UserCareerGroupQuery) Where(ps ...predicate.UserCareerGroup) *UserCareerGroupQuery
Where adds a new predicate for the UserCareerGroupQuery builder.
func (*UserCareerGroupQuery) WithCareers ¶
func (ucgq *UserCareerGroupQuery) WithCareers(opts ...func(*UserCareerQuery)) *UserCareerGroupQuery
WithCareers tells the query-builder to eager-load the nodes that are connected to the "careers" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserCareerGroupQuery) WithUser ¶
func (ucgq *UserCareerGroupQuery) WithUser(opts ...func(*UserQuery)) *UserCareerGroupQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
type UserCareerGroupSelect ¶
type UserCareerGroupSelect struct { *UserCareerGroupQuery // contains filtered or unexported fields }
UserCareerGroupSelect is the builder for selecting fields of UserCareerGroup entities.
func (*UserCareerGroupSelect) Aggregate ¶
func (ucgs *UserCareerGroupSelect) Aggregate(fns ...AggregateFunc) *UserCareerGroupSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserCareerGroupSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*UserCareerGroupSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserCareerGroupSelect) Scan ¶
func (ucgs *UserCareerGroupSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserCareerGroupSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserCareerGroupUpdate ¶
type UserCareerGroupUpdate struct {
// contains filtered or unexported fields
}
UserCareerGroupUpdate is the builder for updating UserCareerGroup entities.
func (*UserCareerGroupUpdate) AddCareerIDs ¶
func (ucgu *UserCareerGroupUpdate) AddCareerIDs(ids ...int) *UserCareerGroupUpdate
AddCareerIDs adds the "careers" edge to the UserCareer entity by IDs.
func (*UserCareerGroupUpdate) AddCareers ¶
func (ucgu *UserCareerGroupUpdate) AddCareers(u ...*UserCareer) *UserCareerGroupUpdate
AddCareers adds the "careers" edges to the UserCareer entity.
func (*UserCareerGroupUpdate) ClearCareers ¶
func (ucgu *UserCareerGroupUpdate) ClearCareers() *UserCareerGroupUpdate
ClearCareers clears all "careers" edges to the UserCareer entity.
func (*UserCareerGroupUpdate) ClearUser ¶
func (ucgu *UserCareerGroupUpdate) ClearUser() *UserCareerGroupUpdate
ClearUser clears the "user" edge to the User entity.
func (*UserCareerGroupUpdate) Exec ¶
func (ucgu *UserCareerGroupUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerGroupUpdate) ExecX ¶
func (ucgu *UserCareerGroupUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerGroupUpdate) Mutation ¶
func (ucgu *UserCareerGroupUpdate) Mutation() *UserCareerGroupMutation
Mutation returns the UserCareerGroupMutation object of the builder.
func (*UserCareerGroupUpdate) RemoveCareerIDs ¶
func (ucgu *UserCareerGroupUpdate) RemoveCareerIDs(ids ...int) *UserCareerGroupUpdate
RemoveCareerIDs removes the "careers" edge to UserCareer entities by IDs.
func (*UserCareerGroupUpdate) RemoveCareers ¶
func (ucgu *UserCareerGroupUpdate) RemoveCareers(u ...*UserCareer) *UserCareerGroupUpdate
RemoveCareers removes "careers" edges to UserCareer entities.
func (*UserCareerGroupUpdate) Save ¶
func (ucgu *UserCareerGroupUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserCareerGroupUpdate) SaveX ¶
func (ucgu *UserCareerGroupUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserCareerGroupUpdate) SetLabel ¶
func (ucgu *UserCareerGroupUpdate) SetLabel(s string) *UserCareerGroupUpdate
SetLabel sets the "label" field.
func (*UserCareerGroupUpdate) SetUpdateTime ¶
func (ucgu *UserCareerGroupUpdate) SetUpdateTime(t time.Time) *UserCareerGroupUpdate
SetUpdateTime sets the "update_time" field.
func (*UserCareerGroupUpdate) SetUser ¶
func (ucgu *UserCareerGroupUpdate) SetUser(u *User) *UserCareerGroupUpdate
SetUser sets the "user" edge to the User entity.
func (*UserCareerGroupUpdate) SetUserID ¶
func (ucgu *UserCareerGroupUpdate) SetUserID(id int) *UserCareerGroupUpdate
SetUserID sets the "user" edge to the User entity by ID.
func (*UserCareerGroupUpdate) Where ¶
func (ucgu *UserCareerGroupUpdate) Where(ps ...predicate.UserCareerGroup) *UserCareerGroupUpdate
Where appends a list predicates to the UserCareerGroupUpdate builder.
type UserCareerGroupUpdateOne ¶
type UserCareerGroupUpdateOne struct {
// contains filtered or unexported fields
}
UserCareerGroupUpdateOne is the builder for updating a single UserCareerGroup entity.
func (*UserCareerGroupUpdateOne) AddCareerIDs ¶
func (ucguo *UserCareerGroupUpdateOne) AddCareerIDs(ids ...int) *UserCareerGroupUpdateOne
AddCareerIDs adds the "careers" edge to the UserCareer entity by IDs.
func (*UserCareerGroupUpdateOne) AddCareers ¶
func (ucguo *UserCareerGroupUpdateOne) AddCareers(u ...*UserCareer) *UserCareerGroupUpdateOne
AddCareers adds the "careers" edges to the UserCareer entity.
func (*UserCareerGroupUpdateOne) ClearCareers ¶
func (ucguo *UserCareerGroupUpdateOne) ClearCareers() *UserCareerGroupUpdateOne
ClearCareers clears all "careers" edges to the UserCareer entity.
func (*UserCareerGroupUpdateOne) ClearUser ¶
func (ucguo *UserCareerGroupUpdateOne) ClearUser() *UserCareerGroupUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*UserCareerGroupUpdateOne) Exec ¶
func (ucguo *UserCareerGroupUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserCareerGroupUpdateOne) ExecX ¶
func (ucguo *UserCareerGroupUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerGroupUpdateOne) Mutation ¶
func (ucguo *UserCareerGroupUpdateOne) Mutation() *UserCareerGroupMutation
Mutation returns the UserCareerGroupMutation object of the builder.
func (*UserCareerGroupUpdateOne) RemoveCareerIDs ¶
func (ucguo *UserCareerGroupUpdateOne) RemoveCareerIDs(ids ...int) *UserCareerGroupUpdateOne
RemoveCareerIDs removes the "careers" edge to UserCareer entities by IDs.
func (*UserCareerGroupUpdateOne) RemoveCareers ¶
func (ucguo *UserCareerGroupUpdateOne) RemoveCareers(u ...*UserCareer) *UserCareerGroupUpdateOne
RemoveCareers removes "careers" edges to UserCareer entities.
func (*UserCareerGroupUpdateOne) Save ¶
func (ucguo *UserCareerGroupUpdateOne) Save(ctx context.Context) (*UserCareerGroup, error)
Save executes the query and returns the updated UserCareerGroup entity.
func (*UserCareerGroupUpdateOne) SaveX ¶
func (ucguo *UserCareerGroupUpdateOne) SaveX(ctx context.Context) *UserCareerGroup
SaveX is like Save, but panics if an error occurs.
func (*UserCareerGroupUpdateOne) Select ¶
func (ucguo *UserCareerGroupUpdateOne) Select(field string, fields ...string) *UserCareerGroupUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserCareerGroupUpdateOne) SetLabel ¶
func (ucguo *UserCareerGroupUpdateOne) SetLabel(s string) *UserCareerGroupUpdateOne
SetLabel sets the "label" field.
func (*UserCareerGroupUpdateOne) SetUpdateTime ¶
func (ucguo *UserCareerGroupUpdateOne) SetUpdateTime(t time.Time) *UserCareerGroupUpdateOne
SetUpdateTime sets the "update_time" field.
func (*UserCareerGroupUpdateOne) SetUser ¶
func (ucguo *UserCareerGroupUpdateOne) SetUser(u *User) *UserCareerGroupUpdateOne
SetUser sets the "user" edge to the User entity.
func (*UserCareerGroupUpdateOne) SetUserID ¶
func (ucguo *UserCareerGroupUpdateOne) SetUserID(id int) *UserCareerGroupUpdateOne
SetUserID sets the "user" edge to the User entity by ID.
func (*UserCareerGroupUpdateOne) Where ¶
func (ucguo *UserCareerGroupUpdateOne) Where(ps ...predicate.UserCareerGroup) *UserCareerGroupUpdateOne
Where appends a list predicates to the UserCareerGroupUpdate builder.
type UserCareerGroupUpsert ¶
UserCareerGroupUpsert is the "OnConflict" setter.
func (*UserCareerGroupUpsert) SetLabel ¶
func (u *UserCareerGroupUpsert) SetLabel(v string) *UserCareerGroupUpsert
SetLabel sets the "label" field.
func (*UserCareerGroupUpsert) SetUpdateTime ¶
func (u *UserCareerGroupUpsert) SetUpdateTime(v time.Time) *UserCareerGroupUpsert
SetUpdateTime sets the "update_time" field.
func (*UserCareerGroupUpsert) UpdateLabel ¶
func (u *UserCareerGroupUpsert) UpdateLabel() *UserCareerGroupUpsert
UpdateLabel sets the "label" field to the value that was provided on create.
func (*UserCareerGroupUpsert) UpdateUpdateTime ¶
func (u *UserCareerGroupUpsert) UpdateUpdateTime() *UserCareerGroupUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserCareerGroupUpsertBulk ¶
type UserCareerGroupUpsertBulk struct {
// contains filtered or unexported fields
}
UserCareerGroupUpsertBulk is the builder for "upsert"-ing a bulk of UserCareerGroup nodes.
func (*UserCareerGroupUpsertBulk) DoNothing ¶
func (u *UserCareerGroupUpsertBulk) DoNothing() *UserCareerGroupUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserCareerGroupUpsertBulk) Exec ¶
func (u *UserCareerGroupUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerGroupUpsertBulk) ExecX ¶
func (u *UserCareerGroupUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerGroupUpsertBulk) Ignore ¶
func (u *UserCareerGroupUpsertBulk) Ignore() *UserCareerGroupUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserCareerGroup.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserCareerGroupUpsertBulk) SetLabel ¶
func (u *UserCareerGroupUpsertBulk) SetLabel(v string) *UserCareerGroupUpsertBulk
SetLabel sets the "label" field.
func (*UserCareerGroupUpsertBulk) SetUpdateTime ¶
func (u *UserCareerGroupUpsertBulk) SetUpdateTime(v time.Time) *UserCareerGroupUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*UserCareerGroupUpsertBulk) Update ¶
func (u *UserCareerGroupUpsertBulk) Update(set func(*UserCareerGroupUpsert)) *UserCareerGroupUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserCareerGroupCreateBulk.OnConflict documentation for more info.
func (*UserCareerGroupUpsertBulk) UpdateLabel ¶
func (u *UserCareerGroupUpsertBulk) UpdateLabel() *UserCareerGroupUpsertBulk
UpdateLabel sets the "label" field to the value that was provided on create.
func (*UserCareerGroupUpsertBulk) UpdateNewValues ¶
func (u *UserCareerGroupUpsertBulk) UpdateNewValues() *UserCareerGroupUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserCareerGroup.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserCareerGroupUpsertBulk) UpdateUpdateTime ¶
func (u *UserCareerGroupUpsertBulk) UpdateUpdateTime() *UserCareerGroupUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserCareerGroupUpsertOne ¶
type UserCareerGroupUpsertOne struct {
// contains filtered or unexported fields
}
UserCareerGroupUpsertOne is the builder for "upsert"-ing
one UserCareerGroup node.
func (*UserCareerGroupUpsertOne) DoNothing ¶
func (u *UserCareerGroupUpsertOne) DoNothing() *UserCareerGroupUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserCareerGroupUpsertOne) Exec ¶
func (u *UserCareerGroupUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerGroupUpsertOne) ExecX ¶
func (u *UserCareerGroupUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerGroupUpsertOne) ID ¶
func (u *UserCareerGroupUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserCareerGroupUpsertOne) IDX ¶
func (u *UserCareerGroupUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*UserCareerGroupUpsertOne) Ignore ¶
func (u *UserCareerGroupUpsertOne) Ignore() *UserCareerGroupUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserCareerGroup.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserCareerGroupUpsertOne) SetLabel ¶
func (u *UserCareerGroupUpsertOne) SetLabel(v string) *UserCareerGroupUpsertOne
SetLabel sets the "label" field.
func (*UserCareerGroupUpsertOne) SetUpdateTime ¶
func (u *UserCareerGroupUpsertOne) SetUpdateTime(v time.Time) *UserCareerGroupUpsertOne
SetUpdateTime sets the "update_time" field.
func (*UserCareerGroupUpsertOne) Update ¶
func (u *UserCareerGroupUpsertOne) Update(set func(*UserCareerGroupUpsert)) *UserCareerGroupUpsertOne
Update allows overriding fields `UPDATE` values. See the UserCareerGroupCreate.OnConflict documentation for more info.
func (*UserCareerGroupUpsertOne) UpdateLabel ¶
func (u *UserCareerGroupUpsertOne) UpdateLabel() *UserCareerGroupUpsertOne
UpdateLabel sets the "label" field to the value that was provided on create.
func (*UserCareerGroupUpsertOne) UpdateNewValues ¶
func (u *UserCareerGroupUpsertOne) UpdateNewValues() *UserCareerGroupUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserCareerGroup.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserCareerGroupUpsertOne) UpdateUpdateTime ¶
func (u *UserCareerGroupUpsertOne) UpdateUpdateTime() *UserCareerGroupUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserCareerGroups ¶
type UserCareerGroups []*UserCareerGroup
UserCareerGroups is a parsable slice of UserCareerGroup.
type UserCareerMutation ¶
type UserCareerMutation struct {
// contains filtered or unexported fields
}
UserCareerMutation represents an operation that mutates the UserCareer nodes in the graph.
func (*UserCareerMutation) AddCareerDescriptionIDs ¶
func (m *UserCareerMutation) AddCareerDescriptionIDs(ids ...int)
AddCareerDescriptionIDs adds the "careerDescriptions" edge to the UserCareerDescription entity by ids.
func (*UserCareerMutation) AddCareerSkillGroupIDs ¶
func (m *UserCareerMutation) AddCareerSkillGroupIDs(ids ...int)
AddCareerSkillGroupIDs adds the "careerSkillGroups" edge to the CareerSkillGroup entity by ids.
func (*UserCareerMutation) AddCareerTaskIDs ¶
func (m *UserCareerMutation) AddCareerTaskIDs(ids ...int)
AddCareerTaskIDs adds the "careerTasks" edge to the CareerTask entity by ids.
func (*UserCareerMutation) AddField ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) AddedEdges ¶
func (m *UserCareerMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserCareerMutation) AddedField ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) AddedFields ¶
func (m *UserCareerMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserCareerMutation) AddedIDs ¶
func (m *UserCareerMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserCareerMutation) CareerDescriptionsCleared ¶
func (m *UserCareerMutation) CareerDescriptionsCleared() bool
CareerDescriptionsCleared reports if the "careerDescriptions" edge to the UserCareerDescription entity was cleared.
func (*UserCareerMutation) CareerDescriptionsIDs ¶
func (m *UserCareerMutation) CareerDescriptionsIDs() (ids []int)
CareerDescriptionsIDs returns the "careerDescriptions" edge IDs in the mutation.
func (*UserCareerMutation) CareerGroupCleared ¶
func (m *UserCareerMutation) CareerGroupCleared() bool
CareerGroupCleared reports if the "careerGroup" edge to the UserCareerGroup entity was cleared.
func (*UserCareerMutation) CareerGroupID ¶
func (m *UserCareerMutation) CareerGroupID() (id int, exists bool)
CareerGroupID returns the "careerGroup" edge ID in the mutation.
func (*UserCareerMutation) CareerGroupIDs ¶
func (m *UserCareerMutation) CareerGroupIDs() (ids []int)
CareerGroupIDs returns the "careerGroup" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CareerGroupID instead. It exists only for internal usage by the builders.
func (*UserCareerMutation) CareerSkillGroupsCleared ¶
func (m *UserCareerMutation) CareerSkillGroupsCleared() bool
CareerSkillGroupsCleared reports if the "careerSkillGroups" edge to the CareerSkillGroup entity was cleared.
func (*UserCareerMutation) CareerSkillGroupsIDs ¶
func (m *UserCareerMutation) CareerSkillGroupsIDs() (ids []int)
CareerSkillGroupsIDs returns the "careerSkillGroups" edge IDs in the mutation.
func (*UserCareerMutation) CareerTasksCleared ¶
func (m *UserCareerMutation) CareerTasksCleared() bool
CareerTasksCleared reports if the "careerTasks" edge to the CareerTask entity was cleared.
func (*UserCareerMutation) CareerTasksIDs ¶
func (m *UserCareerMutation) CareerTasksIDs() (ids []int)
CareerTasksIDs returns the "careerTasks" edge IDs in the mutation.
func (*UserCareerMutation) ClearCareerDescriptions ¶
func (m *UserCareerMutation) ClearCareerDescriptions()
ClearCareerDescriptions clears the "careerDescriptions" edge to the UserCareerDescription entity.
func (*UserCareerMutation) ClearCareerGroup ¶
func (m *UserCareerMutation) ClearCareerGroup()
ClearCareerGroup clears the "careerGroup" edge to the UserCareerGroup entity.
func (*UserCareerMutation) ClearCareerSkillGroups ¶
func (m *UserCareerMutation) ClearCareerSkillGroups()
ClearCareerSkillGroups clears the "careerSkillGroups" edge to the CareerSkillGroup entity.
func (*UserCareerMutation) ClearCareerTasks ¶
func (m *UserCareerMutation) ClearCareerTasks()
ClearCareerTasks clears the "careerTasks" edge to the CareerTask entity.
func (*UserCareerMutation) ClearEdge ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) ClearField ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) ClearTo ¶
func (m *UserCareerMutation) ClearTo()
ClearTo clears the value of the "to" field.
func (*UserCareerMutation) ClearedEdges ¶
func (m *UserCareerMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserCareerMutation) ClearedFields ¶
func (m *UserCareerMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserCareerMutation) Client ¶
func (m UserCareerMutation) 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 (*UserCareerMutation) CreateTime ¶
func (m *UserCareerMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*UserCareerMutation) EdgeCleared ¶
func (m *UserCareerMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserCareerMutation) Field ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) FieldCleared ¶
func (m *UserCareerMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserCareerMutation) Fields ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) From ¶
func (m *UserCareerMutation) From() (r string, exists bool)
From returns the value of the "from" field in the mutation.
func (*UserCareerMutation) ID ¶
func (m *UserCareerMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserCareerMutation) IDs ¶
func (m *UserCareerMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserCareerMutation) Name ¶
func (m *UserCareerMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*UserCareerMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the UserCareer entity. If the UserCareer object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerMutation) 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 (*UserCareerMutation) OldFrom ¶
func (m *UserCareerMutation) OldFrom(ctx context.Context) (v string, err error)
OldFrom returns the old "from" field's value of the UserCareer entity. If the UserCareer object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerMutation) OldName ¶
func (m *UserCareerMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the UserCareer entity. If the UserCareer object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerMutation) OldTo ¶
func (m *UserCareerMutation) OldTo(ctx context.Context) (v *string, err error)
OldTo returns the old "to" field's value of the UserCareer entity. If the UserCareer object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the UserCareer entity. If the UserCareer object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserCareerMutation) RemoveCareerDescriptionIDs ¶
func (m *UserCareerMutation) RemoveCareerDescriptionIDs(ids ...int)
RemoveCareerDescriptionIDs removes the "careerDescriptions" edge to the UserCareerDescription entity by IDs.
func (*UserCareerMutation) RemoveCareerSkillGroupIDs ¶
func (m *UserCareerMutation) RemoveCareerSkillGroupIDs(ids ...int)
RemoveCareerSkillGroupIDs removes the "careerSkillGroups" edge to the CareerSkillGroup entity by IDs.
func (*UserCareerMutation) RemoveCareerTaskIDs ¶
func (m *UserCareerMutation) RemoveCareerTaskIDs(ids ...int)
RemoveCareerTaskIDs removes the "careerTasks" edge to the CareerTask entity by IDs.
func (*UserCareerMutation) RemovedCareerDescriptionsIDs ¶
func (m *UserCareerMutation) RemovedCareerDescriptionsIDs() (ids []int)
RemovedCareerDescriptions returns the removed IDs of the "careerDescriptions" edge to the UserCareerDescription entity.
func (*UserCareerMutation) RemovedCareerSkillGroupsIDs ¶
func (m *UserCareerMutation) RemovedCareerSkillGroupsIDs() (ids []int)
RemovedCareerSkillGroups returns the removed IDs of the "careerSkillGroups" edge to the CareerSkillGroup entity.
func (*UserCareerMutation) RemovedCareerTasksIDs ¶
func (m *UserCareerMutation) RemovedCareerTasksIDs() (ids []int)
RemovedCareerTasks returns the removed IDs of the "careerTasks" edge to the CareerTask entity.
func (*UserCareerMutation) RemovedEdges ¶
func (m *UserCareerMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserCareerMutation) RemovedIDs ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) ResetCareerDescriptions ¶
func (m *UserCareerMutation) ResetCareerDescriptions()
ResetCareerDescriptions resets all changes to the "careerDescriptions" edge.
func (*UserCareerMutation) ResetCareerGroup ¶
func (m *UserCareerMutation) ResetCareerGroup()
ResetCareerGroup resets all changes to the "careerGroup" edge.
func (*UserCareerMutation) ResetCareerSkillGroups ¶
func (m *UserCareerMutation) ResetCareerSkillGroups()
ResetCareerSkillGroups resets all changes to the "careerSkillGroups" edge.
func (*UserCareerMutation) ResetCareerTasks ¶
func (m *UserCareerMutation) ResetCareerTasks()
ResetCareerTasks resets all changes to the "careerTasks" edge.
func (*UserCareerMutation) ResetCreateTime ¶
func (m *UserCareerMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*UserCareerMutation) ResetEdge ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) ResetField ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) ResetFrom ¶
func (m *UserCareerMutation) ResetFrom()
ResetFrom resets all changes to the "from" field.
func (*UserCareerMutation) ResetName ¶
func (m *UserCareerMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*UserCareerMutation) ResetTo ¶
func (m *UserCareerMutation) ResetTo()
ResetTo resets all changes to the "to" field.
func (*UserCareerMutation) ResetUpdateTime ¶
func (m *UserCareerMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*UserCareerMutation) SetCareerGroupID ¶
func (m *UserCareerMutation) SetCareerGroupID(id int)
SetCareerGroupID sets the "careerGroup" edge to the UserCareerGroup entity by id.
func (*UserCareerMutation) SetCreateTime ¶
func (m *UserCareerMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*UserCareerMutation) SetField ¶
func (m *UserCareerMutation) 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 (*UserCareerMutation) SetFrom ¶
func (m *UserCareerMutation) SetFrom(s string)
SetFrom sets the "from" field.
func (*UserCareerMutation) SetName ¶
func (m *UserCareerMutation) SetName(s string)
SetName sets the "name" field.
func (*UserCareerMutation) SetOp ¶
func (m *UserCareerMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserCareerMutation) SetTo ¶
func (m *UserCareerMutation) SetTo(s string)
SetTo sets the "to" field.
func (*UserCareerMutation) SetUpdateTime ¶
func (m *UserCareerMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*UserCareerMutation) To ¶
func (m *UserCareerMutation) To() (r string, exists bool)
To returns the value of the "to" field in the mutation.
func (*UserCareerMutation) ToCleared ¶
func (m *UserCareerMutation) ToCleared() bool
ToCleared returns if the "to" field was cleared in this mutation.
func (UserCareerMutation) Tx ¶
func (m UserCareerMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserCareerMutation) Type ¶
func (m *UserCareerMutation) Type() string
Type returns the node type of this mutation (UserCareer).
func (*UserCareerMutation) UpdateTime ¶
func (m *UserCareerMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*UserCareerMutation) Where ¶
func (m *UserCareerMutation) Where(ps ...predicate.UserCareer)
Where appends a list predicates to the UserCareerMutation builder.
func (*UserCareerMutation) WhereP ¶
func (m *UserCareerMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserCareerMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserCareerQuery ¶
type UserCareerQuery struct {
// contains filtered or unexported fields
}
UserCareerQuery is the builder for querying UserCareer entities.
func (*UserCareerQuery) Aggregate ¶
func (ucq *UserCareerQuery) Aggregate(fns ...AggregateFunc) *UserCareerSelect
Aggregate returns a UserCareerSelect configured with the given aggregations.
func (*UserCareerQuery) All ¶
func (ucq *UserCareerQuery) All(ctx context.Context) ([]*UserCareer, error)
All executes the query and returns a list of UserCareers.
func (*UserCareerQuery) AllX ¶
func (ucq *UserCareerQuery) AllX(ctx context.Context) []*UserCareer
AllX is like All, but panics if an error occurs.
func (*UserCareerQuery) Clone ¶
func (ucq *UserCareerQuery) Clone() *UserCareerQuery
Clone returns a duplicate of the UserCareerQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserCareerQuery) Count ¶
func (ucq *UserCareerQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UserCareerQuery) CountX ¶
func (ucq *UserCareerQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UserCareerQuery) Exist ¶
func (ucq *UserCareerQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UserCareerQuery) ExistX ¶
func (ucq *UserCareerQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UserCareerQuery) First ¶
func (ucq *UserCareerQuery) First(ctx context.Context) (*UserCareer, error)
First returns the first UserCareer entity from the query. Returns a *NotFoundError when no UserCareer was found.
func (*UserCareerQuery) FirstID ¶
func (ucq *UserCareerQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first UserCareer ID from the query. Returns a *NotFoundError when no UserCareer ID was found.
func (*UserCareerQuery) FirstIDX ¶
func (ucq *UserCareerQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserCareerQuery) FirstX ¶
func (ucq *UserCareerQuery) FirstX(ctx context.Context) *UserCareer
FirstX is like First, but panics if an error occurs.
func (*UserCareerQuery) GroupBy ¶
func (ucq *UserCareerQuery) GroupBy(field string, fields ...string) *UserCareerGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.UserCareer.Query(). GroupBy(usercareer.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserCareerQuery) IDs ¶
func (ucq *UserCareerQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of UserCareer IDs.
func (*UserCareerQuery) IDsX ¶
func (ucq *UserCareerQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*UserCareerQuery) Limit ¶
func (ucq *UserCareerQuery) Limit(limit int) *UserCareerQuery
Limit the number of records to be returned by this query.
func (*UserCareerQuery) Offset ¶
func (ucq *UserCareerQuery) Offset(offset int) *UserCareerQuery
Offset to start from.
func (*UserCareerQuery) Only ¶
func (ucq *UserCareerQuery) Only(ctx context.Context) (*UserCareer, error)
Only returns a single UserCareer entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserCareer entity is found. Returns a *NotFoundError when no UserCareer entities are found.
func (*UserCareerQuery) OnlyID ¶
func (ucq *UserCareerQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only UserCareer ID in the query. Returns a *NotSingularError when more than one UserCareer ID is found. Returns a *NotFoundError when no entities are found.
func (*UserCareerQuery) OnlyIDX ¶
func (ucq *UserCareerQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserCareerQuery) OnlyX ¶
func (ucq *UserCareerQuery) OnlyX(ctx context.Context) *UserCareer
OnlyX is like Only, but panics if an error occurs.
func (*UserCareerQuery) Order ¶
func (ucq *UserCareerQuery) Order(o ...usercareer.OrderOption) *UserCareerQuery
Order specifies how the records should be ordered.
func (*UserCareerQuery) QueryCareerDescriptions ¶
func (ucq *UserCareerQuery) QueryCareerDescriptions() *UserCareerDescriptionQuery
QueryCareerDescriptions chains the current query on the "careerDescriptions" edge.
func (*UserCareerQuery) QueryCareerGroup ¶
func (ucq *UserCareerQuery) QueryCareerGroup() *UserCareerGroupQuery
QueryCareerGroup chains the current query on the "careerGroup" edge.
func (*UserCareerQuery) QueryCareerSkillGroups ¶
func (ucq *UserCareerQuery) QueryCareerSkillGroups() *CareerSkillGroupQuery
QueryCareerSkillGroups chains the current query on the "careerSkillGroups" edge.
func (*UserCareerQuery) QueryCareerTasks ¶
func (ucq *UserCareerQuery) QueryCareerTasks() *CareerTaskQuery
QueryCareerTasks chains the current query on the "careerTasks" edge.
func (*UserCareerQuery) Select ¶
func (ucq *UserCareerQuery) Select(fields ...string) *UserCareerSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.UserCareer.Query(). Select(usercareer.FieldCreateTime). Scan(ctx, &v)
func (*UserCareerQuery) Unique ¶
func (ucq *UserCareerQuery) Unique(unique bool) *UserCareerQuery
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 (*UserCareerQuery) Where ¶
func (ucq *UserCareerQuery) Where(ps ...predicate.UserCareer) *UserCareerQuery
Where adds a new predicate for the UserCareerQuery builder.
func (*UserCareerQuery) WithCareerDescriptions ¶
func (ucq *UserCareerQuery) WithCareerDescriptions(opts ...func(*UserCareerDescriptionQuery)) *UserCareerQuery
WithCareerDescriptions tells the query-builder to eager-load the nodes that are connected to the "careerDescriptions" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserCareerQuery) WithCareerGroup ¶
func (ucq *UserCareerQuery) WithCareerGroup(opts ...func(*UserCareerGroupQuery)) *UserCareerQuery
WithCareerGroup tells the query-builder to eager-load the nodes that are connected to the "careerGroup" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserCareerQuery) WithCareerSkillGroups ¶
func (ucq *UserCareerQuery) WithCareerSkillGroups(opts ...func(*CareerSkillGroupQuery)) *UserCareerQuery
WithCareerSkillGroups tells the query-builder to eager-load the nodes that are connected to the "careerSkillGroups" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserCareerQuery) WithCareerTasks ¶
func (ucq *UserCareerQuery) WithCareerTasks(opts ...func(*CareerTaskQuery)) *UserCareerQuery
WithCareerTasks tells the query-builder to eager-load the nodes that are connected to the "careerTasks" edge. The optional arguments are used to configure the query builder of the edge.
type UserCareerSelect ¶
type UserCareerSelect struct { *UserCareerQuery // contains filtered or unexported fields }
UserCareerSelect is the builder for selecting fields of UserCareer entities.
func (*UserCareerSelect) Aggregate ¶
func (ucs *UserCareerSelect) Aggregate(fns ...AggregateFunc) *UserCareerSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserCareerSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserCareerSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserCareerSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserCareerSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserCareerSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserCareerSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserCareerSelect) Scan ¶
func (ucs *UserCareerSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserCareerSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserCareerUpdate ¶
type UserCareerUpdate struct {
// contains filtered or unexported fields
}
UserCareerUpdate is the builder for updating UserCareer entities.
func (*UserCareerUpdate) AddCareerDescriptionIDs ¶
func (ucu *UserCareerUpdate) AddCareerDescriptionIDs(ids ...int) *UserCareerUpdate
AddCareerDescriptionIDs adds the "careerDescriptions" edge to the UserCareerDescription entity by IDs.
func (*UserCareerUpdate) AddCareerDescriptions ¶
func (ucu *UserCareerUpdate) AddCareerDescriptions(u ...*UserCareerDescription) *UserCareerUpdate
AddCareerDescriptions adds the "careerDescriptions" edges to the UserCareerDescription entity.
func (*UserCareerUpdate) AddCareerSkillGroupIDs ¶
func (ucu *UserCareerUpdate) AddCareerSkillGroupIDs(ids ...int) *UserCareerUpdate
AddCareerSkillGroupIDs adds the "careerSkillGroups" edge to the CareerSkillGroup entity by IDs.
func (*UserCareerUpdate) AddCareerSkillGroups ¶
func (ucu *UserCareerUpdate) AddCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerUpdate
AddCareerSkillGroups adds the "careerSkillGroups" edges to the CareerSkillGroup entity.
func (*UserCareerUpdate) AddCareerTaskIDs ¶
func (ucu *UserCareerUpdate) AddCareerTaskIDs(ids ...int) *UserCareerUpdate
AddCareerTaskIDs adds the "careerTasks" edge to the CareerTask entity by IDs.
func (*UserCareerUpdate) AddCareerTasks ¶
func (ucu *UserCareerUpdate) AddCareerTasks(c ...*CareerTask) *UserCareerUpdate
AddCareerTasks adds the "careerTasks" edges to the CareerTask entity.
func (*UserCareerUpdate) ClearCareerDescriptions ¶
func (ucu *UserCareerUpdate) ClearCareerDescriptions() *UserCareerUpdate
ClearCareerDescriptions clears all "careerDescriptions" edges to the UserCareerDescription entity.
func (*UserCareerUpdate) ClearCareerGroup ¶
func (ucu *UserCareerUpdate) ClearCareerGroup() *UserCareerUpdate
ClearCareerGroup clears the "careerGroup" edge to the UserCareerGroup entity.
func (*UserCareerUpdate) ClearCareerSkillGroups ¶
func (ucu *UserCareerUpdate) ClearCareerSkillGroups() *UserCareerUpdate
ClearCareerSkillGroups clears all "careerSkillGroups" edges to the CareerSkillGroup entity.
func (*UserCareerUpdate) ClearCareerTasks ¶
func (ucu *UserCareerUpdate) ClearCareerTasks() *UserCareerUpdate
ClearCareerTasks clears all "careerTasks" edges to the CareerTask entity.
func (*UserCareerUpdate) ClearTo ¶
func (ucu *UserCareerUpdate) ClearTo() *UserCareerUpdate
ClearTo clears the value of the "to" field.
func (*UserCareerUpdate) Exec ¶
func (ucu *UserCareerUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerUpdate) ExecX ¶
func (ucu *UserCareerUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerUpdate) Mutation ¶
func (ucu *UserCareerUpdate) Mutation() *UserCareerMutation
Mutation returns the UserCareerMutation object of the builder.
func (*UserCareerUpdate) RemoveCareerDescriptionIDs ¶
func (ucu *UserCareerUpdate) RemoveCareerDescriptionIDs(ids ...int) *UserCareerUpdate
RemoveCareerDescriptionIDs removes the "careerDescriptions" edge to UserCareerDescription entities by IDs.
func (*UserCareerUpdate) RemoveCareerDescriptions ¶
func (ucu *UserCareerUpdate) RemoveCareerDescriptions(u ...*UserCareerDescription) *UserCareerUpdate
RemoveCareerDescriptions removes "careerDescriptions" edges to UserCareerDescription entities.
func (*UserCareerUpdate) RemoveCareerSkillGroupIDs ¶
func (ucu *UserCareerUpdate) RemoveCareerSkillGroupIDs(ids ...int) *UserCareerUpdate
RemoveCareerSkillGroupIDs removes the "careerSkillGroups" edge to CareerSkillGroup entities by IDs.
func (*UserCareerUpdate) RemoveCareerSkillGroups ¶
func (ucu *UserCareerUpdate) RemoveCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerUpdate
RemoveCareerSkillGroups removes "careerSkillGroups" edges to CareerSkillGroup entities.
func (*UserCareerUpdate) RemoveCareerTaskIDs ¶
func (ucu *UserCareerUpdate) RemoveCareerTaskIDs(ids ...int) *UserCareerUpdate
RemoveCareerTaskIDs removes the "careerTasks" edge to CareerTask entities by IDs.
func (*UserCareerUpdate) RemoveCareerTasks ¶
func (ucu *UserCareerUpdate) RemoveCareerTasks(c ...*CareerTask) *UserCareerUpdate
RemoveCareerTasks removes "careerTasks" edges to CareerTask entities.
func (*UserCareerUpdate) Save ¶
func (ucu *UserCareerUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserCareerUpdate) SaveX ¶
func (ucu *UserCareerUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserCareerUpdate) SetCareerGroup ¶
func (ucu *UserCareerUpdate) SetCareerGroup(u *UserCareerGroup) *UserCareerUpdate
SetCareerGroup sets the "careerGroup" edge to the UserCareerGroup entity.
func (*UserCareerUpdate) SetCareerGroupID ¶
func (ucu *UserCareerUpdate) SetCareerGroupID(id int) *UserCareerUpdate
SetCareerGroupID sets the "careerGroup" edge to the UserCareerGroup entity by ID.
func (*UserCareerUpdate) SetFrom ¶
func (ucu *UserCareerUpdate) SetFrom(s string) *UserCareerUpdate
SetFrom sets the "from" field.
func (*UserCareerUpdate) SetName ¶
func (ucu *UserCareerUpdate) SetName(s string) *UserCareerUpdate
SetName sets the "name" field.
func (*UserCareerUpdate) SetNillableTo ¶
func (ucu *UserCareerUpdate) SetNillableTo(s *string) *UserCareerUpdate
SetNillableTo sets the "to" field if the given value is not nil.
func (*UserCareerUpdate) SetTo ¶
func (ucu *UserCareerUpdate) SetTo(s string) *UserCareerUpdate
SetTo sets the "to" field.
func (*UserCareerUpdate) SetUpdateTime ¶
func (ucu *UserCareerUpdate) SetUpdateTime(t time.Time) *UserCareerUpdate
SetUpdateTime sets the "update_time" field.
func (*UserCareerUpdate) Where ¶
func (ucu *UserCareerUpdate) Where(ps ...predicate.UserCareer) *UserCareerUpdate
Where appends a list predicates to the UserCareerUpdate builder.
type UserCareerUpdateOne ¶
type UserCareerUpdateOne struct {
// contains filtered or unexported fields
}
UserCareerUpdateOne is the builder for updating a single UserCareer entity.
func (*UserCareerUpdateOne) AddCareerDescriptionIDs ¶
func (ucuo *UserCareerUpdateOne) AddCareerDescriptionIDs(ids ...int) *UserCareerUpdateOne
AddCareerDescriptionIDs adds the "careerDescriptions" edge to the UserCareerDescription entity by IDs.
func (*UserCareerUpdateOne) AddCareerDescriptions ¶
func (ucuo *UserCareerUpdateOne) AddCareerDescriptions(u ...*UserCareerDescription) *UserCareerUpdateOne
AddCareerDescriptions adds the "careerDescriptions" edges to the UserCareerDescription entity.
func (*UserCareerUpdateOne) AddCareerSkillGroupIDs ¶
func (ucuo *UserCareerUpdateOne) AddCareerSkillGroupIDs(ids ...int) *UserCareerUpdateOne
AddCareerSkillGroupIDs adds the "careerSkillGroups" edge to the CareerSkillGroup entity by IDs.
func (*UserCareerUpdateOne) AddCareerSkillGroups ¶
func (ucuo *UserCareerUpdateOne) AddCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerUpdateOne
AddCareerSkillGroups adds the "careerSkillGroups" edges to the CareerSkillGroup entity.
func (*UserCareerUpdateOne) AddCareerTaskIDs ¶
func (ucuo *UserCareerUpdateOne) AddCareerTaskIDs(ids ...int) *UserCareerUpdateOne
AddCareerTaskIDs adds the "careerTasks" edge to the CareerTask entity by IDs.
func (*UserCareerUpdateOne) AddCareerTasks ¶
func (ucuo *UserCareerUpdateOne) AddCareerTasks(c ...*CareerTask) *UserCareerUpdateOne
AddCareerTasks adds the "careerTasks" edges to the CareerTask entity.
func (*UserCareerUpdateOne) ClearCareerDescriptions ¶
func (ucuo *UserCareerUpdateOne) ClearCareerDescriptions() *UserCareerUpdateOne
ClearCareerDescriptions clears all "careerDescriptions" edges to the UserCareerDescription entity.
func (*UserCareerUpdateOne) ClearCareerGroup ¶
func (ucuo *UserCareerUpdateOne) ClearCareerGroup() *UserCareerUpdateOne
ClearCareerGroup clears the "careerGroup" edge to the UserCareerGroup entity.
func (*UserCareerUpdateOne) ClearCareerSkillGroups ¶
func (ucuo *UserCareerUpdateOne) ClearCareerSkillGroups() *UserCareerUpdateOne
ClearCareerSkillGroups clears all "careerSkillGroups" edges to the CareerSkillGroup entity.
func (*UserCareerUpdateOne) ClearCareerTasks ¶
func (ucuo *UserCareerUpdateOne) ClearCareerTasks() *UserCareerUpdateOne
ClearCareerTasks clears all "careerTasks" edges to the CareerTask entity.
func (*UserCareerUpdateOne) ClearTo ¶
func (ucuo *UserCareerUpdateOne) ClearTo() *UserCareerUpdateOne
ClearTo clears the value of the "to" field.
func (*UserCareerUpdateOne) Exec ¶
func (ucuo *UserCareerUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserCareerUpdateOne) ExecX ¶
func (ucuo *UserCareerUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerUpdateOne) Mutation ¶
func (ucuo *UserCareerUpdateOne) Mutation() *UserCareerMutation
Mutation returns the UserCareerMutation object of the builder.
func (*UserCareerUpdateOne) RemoveCareerDescriptionIDs ¶
func (ucuo *UserCareerUpdateOne) RemoveCareerDescriptionIDs(ids ...int) *UserCareerUpdateOne
RemoveCareerDescriptionIDs removes the "careerDescriptions" edge to UserCareerDescription entities by IDs.
func (*UserCareerUpdateOne) RemoveCareerDescriptions ¶
func (ucuo *UserCareerUpdateOne) RemoveCareerDescriptions(u ...*UserCareerDescription) *UserCareerUpdateOne
RemoveCareerDescriptions removes "careerDescriptions" edges to UserCareerDescription entities.
func (*UserCareerUpdateOne) RemoveCareerSkillGroupIDs ¶
func (ucuo *UserCareerUpdateOne) RemoveCareerSkillGroupIDs(ids ...int) *UserCareerUpdateOne
RemoveCareerSkillGroupIDs removes the "careerSkillGroups" edge to CareerSkillGroup entities by IDs.
func (*UserCareerUpdateOne) RemoveCareerSkillGroups ¶
func (ucuo *UserCareerUpdateOne) RemoveCareerSkillGroups(c ...*CareerSkillGroup) *UserCareerUpdateOne
RemoveCareerSkillGroups removes "careerSkillGroups" edges to CareerSkillGroup entities.
func (*UserCareerUpdateOne) RemoveCareerTaskIDs ¶
func (ucuo *UserCareerUpdateOne) RemoveCareerTaskIDs(ids ...int) *UserCareerUpdateOne
RemoveCareerTaskIDs removes the "careerTasks" edge to CareerTask entities by IDs.
func (*UserCareerUpdateOne) RemoveCareerTasks ¶
func (ucuo *UserCareerUpdateOne) RemoveCareerTasks(c ...*CareerTask) *UserCareerUpdateOne
RemoveCareerTasks removes "careerTasks" edges to CareerTask entities.
func (*UserCareerUpdateOne) Save ¶
func (ucuo *UserCareerUpdateOne) Save(ctx context.Context) (*UserCareer, error)
Save executes the query and returns the updated UserCareer entity.
func (*UserCareerUpdateOne) SaveX ¶
func (ucuo *UserCareerUpdateOne) SaveX(ctx context.Context) *UserCareer
SaveX is like Save, but panics if an error occurs.
func (*UserCareerUpdateOne) Select ¶
func (ucuo *UserCareerUpdateOne) Select(field string, fields ...string) *UserCareerUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserCareerUpdateOne) SetCareerGroup ¶
func (ucuo *UserCareerUpdateOne) SetCareerGroup(u *UserCareerGroup) *UserCareerUpdateOne
SetCareerGroup sets the "careerGroup" edge to the UserCareerGroup entity.
func (*UserCareerUpdateOne) SetCareerGroupID ¶
func (ucuo *UserCareerUpdateOne) SetCareerGroupID(id int) *UserCareerUpdateOne
SetCareerGroupID sets the "careerGroup" edge to the UserCareerGroup entity by ID.
func (*UserCareerUpdateOne) SetFrom ¶
func (ucuo *UserCareerUpdateOne) SetFrom(s string) *UserCareerUpdateOne
SetFrom sets the "from" field.
func (*UserCareerUpdateOne) SetName ¶
func (ucuo *UserCareerUpdateOne) SetName(s string) *UserCareerUpdateOne
SetName sets the "name" field.
func (*UserCareerUpdateOne) SetNillableTo ¶
func (ucuo *UserCareerUpdateOne) SetNillableTo(s *string) *UserCareerUpdateOne
SetNillableTo sets the "to" field if the given value is not nil.
func (*UserCareerUpdateOne) SetTo ¶
func (ucuo *UserCareerUpdateOne) SetTo(s string) *UserCareerUpdateOne
SetTo sets the "to" field.
func (*UserCareerUpdateOne) SetUpdateTime ¶
func (ucuo *UserCareerUpdateOne) SetUpdateTime(t time.Time) *UserCareerUpdateOne
SetUpdateTime sets the "update_time" field.
func (*UserCareerUpdateOne) Where ¶
func (ucuo *UserCareerUpdateOne) Where(ps ...predicate.UserCareer) *UserCareerUpdateOne
Where appends a list predicates to the UserCareerUpdate builder.
type UserCareerUpsert ¶
UserCareerUpsert is the "OnConflict" setter.
func (*UserCareerUpsert) ClearTo ¶
func (u *UserCareerUpsert) ClearTo() *UserCareerUpsert
ClearTo clears the value of the "to" field.
func (*UserCareerUpsert) SetFrom ¶
func (u *UserCareerUpsert) SetFrom(v string) *UserCareerUpsert
SetFrom sets the "from" field.
func (*UserCareerUpsert) SetName ¶
func (u *UserCareerUpsert) SetName(v string) *UserCareerUpsert
SetName sets the "name" field.
func (*UserCareerUpsert) SetTo ¶
func (u *UserCareerUpsert) SetTo(v string) *UserCareerUpsert
SetTo sets the "to" field.
func (*UserCareerUpsert) SetUpdateTime ¶
func (u *UserCareerUpsert) SetUpdateTime(v time.Time) *UserCareerUpsert
SetUpdateTime sets the "update_time" field.
func (*UserCareerUpsert) UpdateFrom ¶
func (u *UserCareerUpsert) UpdateFrom() *UserCareerUpsert
UpdateFrom sets the "from" field to the value that was provided on create.
func (*UserCareerUpsert) UpdateName ¶
func (u *UserCareerUpsert) UpdateName() *UserCareerUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*UserCareerUpsert) UpdateTo ¶
func (u *UserCareerUpsert) UpdateTo() *UserCareerUpsert
UpdateTo sets the "to" field to the value that was provided on create.
func (*UserCareerUpsert) UpdateUpdateTime ¶
func (u *UserCareerUpsert) UpdateUpdateTime() *UserCareerUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserCareerUpsertBulk ¶
type UserCareerUpsertBulk struct {
// contains filtered or unexported fields
}
UserCareerUpsertBulk is the builder for "upsert"-ing a bulk of UserCareer nodes.
func (*UserCareerUpsertBulk) ClearTo ¶
func (u *UserCareerUpsertBulk) ClearTo() *UserCareerUpsertBulk
ClearTo clears the value of the "to" field.
func (*UserCareerUpsertBulk) DoNothing ¶
func (u *UserCareerUpsertBulk) DoNothing() *UserCareerUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserCareerUpsertBulk) Exec ¶
func (u *UserCareerUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerUpsertBulk) ExecX ¶
func (u *UserCareerUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerUpsertBulk) Ignore ¶
func (u *UserCareerUpsertBulk) Ignore() *UserCareerUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserCareer.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserCareerUpsertBulk) SetFrom ¶
func (u *UserCareerUpsertBulk) SetFrom(v string) *UserCareerUpsertBulk
SetFrom sets the "from" field.
func (*UserCareerUpsertBulk) SetName ¶
func (u *UserCareerUpsertBulk) SetName(v string) *UserCareerUpsertBulk
SetName sets the "name" field.
func (*UserCareerUpsertBulk) SetTo ¶
func (u *UserCareerUpsertBulk) SetTo(v string) *UserCareerUpsertBulk
SetTo sets the "to" field.
func (*UserCareerUpsertBulk) SetUpdateTime ¶
func (u *UserCareerUpsertBulk) SetUpdateTime(v time.Time) *UserCareerUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*UserCareerUpsertBulk) Update ¶
func (u *UserCareerUpsertBulk) Update(set func(*UserCareerUpsert)) *UserCareerUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserCareerCreateBulk.OnConflict documentation for more info.
func (*UserCareerUpsertBulk) UpdateFrom ¶
func (u *UserCareerUpsertBulk) UpdateFrom() *UserCareerUpsertBulk
UpdateFrom sets the "from" field to the value that was provided on create.
func (*UserCareerUpsertBulk) UpdateName ¶
func (u *UserCareerUpsertBulk) UpdateName() *UserCareerUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*UserCareerUpsertBulk) UpdateNewValues ¶
func (u *UserCareerUpsertBulk) UpdateNewValues() *UserCareerUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserCareer.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserCareerUpsertBulk) UpdateTo ¶
func (u *UserCareerUpsertBulk) UpdateTo() *UserCareerUpsertBulk
UpdateTo sets the "to" field to the value that was provided on create.
func (*UserCareerUpsertBulk) UpdateUpdateTime ¶
func (u *UserCareerUpsertBulk) UpdateUpdateTime() *UserCareerUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserCareerUpsertOne ¶
type UserCareerUpsertOne struct {
// contains filtered or unexported fields
}
UserCareerUpsertOne is the builder for "upsert"-ing
one UserCareer node.
func (*UserCareerUpsertOne) ClearTo ¶
func (u *UserCareerUpsertOne) ClearTo() *UserCareerUpsertOne
ClearTo clears the value of the "to" field.
func (*UserCareerUpsertOne) DoNothing ¶
func (u *UserCareerUpsertOne) DoNothing() *UserCareerUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserCareerUpsertOne) Exec ¶
func (u *UserCareerUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCareerUpsertOne) ExecX ¶
func (u *UserCareerUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCareerUpsertOne) ID ¶
func (u *UserCareerUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserCareerUpsertOne) IDX ¶
func (u *UserCareerUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*UserCareerUpsertOne) Ignore ¶
func (u *UserCareerUpsertOne) Ignore() *UserCareerUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserCareer.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserCareerUpsertOne) SetFrom ¶
func (u *UserCareerUpsertOne) SetFrom(v string) *UserCareerUpsertOne
SetFrom sets the "from" field.
func (*UserCareerUpsertOne) SetName ¶
func (u *UserCareerUpsertOne) SetName(v string) *UserCareerUpsertOne
SetName sets the "name" field.
func (*UserCareerUpsertOne) SetTo ¶
func (u *UserCareerUpsertOne) SetTo(v string) *UserCareerUpsertOne
SetTo sets the "to" field.
func (*UserCareerUpsertOne) SetUpdateTime ¶
func (u *UserCareerUpsertOne) SetUpdateTime(v time.Time) *UserCareerUpsertOne
SetUpdateTime sets the "update_time" field.
func (*UserCareerUpsertOne) Update ¶
func (u *UserCareerUpsertOne) Update(set func(*UserCareerUpsert)) *UserCareerUpsertOne
Update allows overriding fields `UPDATE` values. See the UserCareerCreate.OnConflict documentation for more info.
func (*UserCareerUpsertOne) UpdateFrom ¶
func (u *UserCareerUpsertOne) UpdateFrom() *UserCareerUpsertOne
UpdateFrom sets the "from" field to the value that was provided on create.
func (*UserCareerUpsertOne) UpdateName ¶
func (u *UserCareerUpsertOne) UpdateName() *UserCareerUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*UserCareerUpsertOne) UpdateNewValues ¶
func (u *UserCareerUpsertOne) UpdateNewValues() *UserCareerUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserCareer.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserCareerUpsertOne) UpdateTo ¶
func (u *UserCareerUpsertOne) UpdateTo() *UserCareerUpsertOne
UpdateTo sets the "to" field to the value that was provided on create.
func (*UserCareerUpsertOne) UpdateUpdateTime ¶
func (u *UserCareerUpsertOne) UpdateUpdateTime() *UserCareerUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserClient ¶
type UserClient struct {
// contains filtered or unexported fields
}
UserClient is a client for the User schema.
func NewUserClient ¶
func NewUserClient(c config) *UserClient
NewUserClient returns a client for the User from the given config.
func (*UserClient) Create ¶
func (c *UserClient) Create() *UserCreate
Create returns a builder for creating a User entity.
func (*UserClient) CreateBulk ¶
func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk
CreateBulk returns a builder for creating a bulk of User entities.
func (*UserClient) Delete ¶
func (c *UserClient) Delete() *UserDelete
Delete returns a delete builder for User.
func (*UserClient) DeleteOne ¶
func (c *UserClient) DeleteOne(u *User) *UserDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserClient) DeleteOneID ¶
func (c *UserClient) DeleteOneID(id int) *UserDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserClient) GetX ¶
func (c *UserClient) GetX(ctx context.Context, id int) *User
GetX is like Get, but panics if an error occurs.
func (*UserClient) Intercept ¶
func (c *UserClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `user.Intercept(f(g(h())))`.
func (*UserClient) Interceptors ¶
func (c *UserClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserClient) Query ¶
func (c *UserClient) Query() *UserQuery
Query returns a query builder for User.
func (*UserClient) QueryActivities ¶
func (c *UserClient) QueryActivities(u *User) *UserActivityQuery
QueryActivities queries the activities edge of a User.
func (*UserClient) QueryCareerGroups ¶
func (c *UserClient) QueryCareerGroups(u *User) *UserCareerGroupQuery
QueryCareerGroups queries the careerGroups edge of a User.
func (*UserClient) QueryNotes ¶
func (c *UserClient) QueryNotes(u *User) *UserNoteQuery
QueryNotes queries the notes edge of a User.
func (*UserClient) QueryQualifications ¶
func (c *UserClient) QueryQualifications(u *User) *UserQualificationQuery
QueryQualifications queries the qualifications edge of a User.
func (*UserClient) Update ¶
func (c *UserClient) Update() *UserUpdate
Update returns an update builder for User.
func (*UserClient) UpdateOne ¶
func (c *UserClient) UpdateOne(u *User) *UserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserClient) UpdateOneID ¶
func (c *UserClient) UpdateOneID(id int) *UserUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserClient) Use ¶
func (c *UserClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `user.Hooks(f(g(h())))`.
type UserCreate ¶
type UserCreate struct {
// contains filtered or unexported fields
}
UserCreate is the builder for creating a User entity.
func (*UserCreate) AddActivities ¶
func (uc *UserCreate) AddActivities(u ...*UserActivity) *UserCreate
AddActivities adds the "activities" edges to the UserActivity entity.
func (*UserCreate) AddActivityIDs ¶
func (uc *UserCreate) AddActivityIDs(ids ...int) *UserCreate
AddActivityIDs adds the "activities" edge to the UserActivity entity by IDs.
func (*UserCreate) AddCareerGroupIDs ¶
func (uc *UserCreate) AddCareerGroupIDs(ids ...int) *UserCreate
AddCareerGroupIDs adds the "careerGroups" edge to the UserCareerGroup entity by IDs.
func (*UserCreate) AddCareerGroups ¶
func (uc *UserCreate) AddCareerGroups(u ...*UserCareerGroup) *UserCreate
AddCareerGroups adds the "careerGroups" edges to the UserCareerGroup entity.
func (*UserCreate) AddNoteIDs ¶
func (uc *UserCreate) AddNoteIDs(ids ...int) *UserCreate
AddNoteIDs adds the "notes" edge to the UserNote entity by IDs.
func (*UserCreate) AddNotes ¶
func (uc *UserCreate) AddNotes(u ...*UserNote) *UserCreate
AddNotes adds the "notes" edges to the UserNote entity.
func (*UserCreate) AddQualificationIDs ¶
func (uc *UserCreate) AddQualificationIDs(ids ...int) *UserCreate
AddQualificationIDs adds the "qualifications" edge to the UserQualification entity by IDs.
func (*UserCreate) AddQualifications ¶
func (uc *UserCreate) AddQualifications(u ...*UserQualification) *UserCreate
AddQualifications adds the "qualifications" edges to the UserQualification entity.
func (*UserCreate) Exec ¶
func (uc *UserCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreate) ExecX ¶
func (uc *UserCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCreate) Mutation ¶
func (uc *UserCreate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserCreate) OnConflict ¶
func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.User.Create(). SetCreateTime(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.UserUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserCreate) OnConflictColumns ¶
func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.User.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserCreate) Save ¶
func (uc *UserCreate) Save(ctx context.Context) (*User, error)
Save creates the User in the database.
func (*UserCreate) SaveX ¶
func (uc *UserCreate) SaveX(ctx context.Context) *User
SaveX calls Save and panics if Save returns an error.
func (*UserCreate) SetAvatarURL ¶
func (uc *UserCreate) SetAvatarURL(s string) *UserCreate
SetAvatarURL sets the "avatar_url" field.
func (*UserCreate) SetBelongTo ¶
func (uc *UserCreate) SetBelongTo(s string) *UserCreate
SetBelongTo sets the "belong_to" field.
func (*UserCreate) SetBirthdayDay ¶
func (uc *UserCreate) SetBirthdayDay(i int) *UserCreate
SetBirthdayDay sets the "birthday_day" field.
func (*UserCreate) SetBirthdayMonth ¶
func (uc *UserCreate) SetBirthdayMonth(i int) *UserCreate
SetBirthdayMonth sets the "birthday_month" field.
func (*UserCreate) SetBirthdayYear ¶
func (uc *UserCreate) SetBirthdayYear(i int) *UserCreate
SetBirthdayYear sets the "birthday_year" field.
func (*UserCreate) SetCreateTime ¶
func (uc *UserCreate) SetCreateTime(t time.Time) *UserCreate
SetCreateTime sets the "create_time" field.
func (*UserCreate) SetJob ¶
func (uc *UserCreate) SetJob(s string) *UserCreate
SetJob sets the "job" field.
func (*UserCreate) SetName ¶
func (uc *UserCreate) SetName(s string) *UserCreate
SetName sets the "name" field.
func (*UserCreate) SetNickname ¶
func (uc *UserCreate) SetNickname(s string) *UserCreate
SetNickname sets the "nickname" field.
func (*UserCreate) SetNillableAvatarURL ¶
func (uc *UserCreate) SetNillableAvatarURL(s *string) *UserCreate
SetNillableAvatarURL sets the "avatar_url" field if the given value is not nil.
func (*UserCreate) SetNillableBelongTo ¶
func (uc *UserCreate) SetNillableBelongTo(s *string) *UserCreate
SetNillableBelongTo sets the "belong_to" field if the given value is not nil.
func (*UserCreate) SetNillableCreateTime ¶
func (uc *UserCreate) SetNillableCreateTime(t *time.Time) *UserCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*UserCreate) SetNillableJob ¶
func (uc *UserCreate) SetNillableJob(s *string) *UserCreate
SetNillableJob sets the "job" field if the given value is not nil.
func (*UserCreate) SetNillableNickname ¶
func (uc *UserCreate) SetNillableNickname(s *string) *UserCreate
SetNillableNickname sets the "nickname" field if the given value is not nil.
func (*UserCreate) SetNillablePr ¶
func (uc *UserCreate) SetNillablePr(s *string) *UserCreate
SetNillablePr sets the "pr" field if the given value is not nil.
func (*UserCreate) SetNillableUpdateTime ¶
func (uc *UserCreate) SetNillableUpdateTime(t *time.Time) *UserCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*UserCreate) SetPr ¶
func (uc *UserCreate) SetPr(s string) *UserCreate
SetPr sets the "pr" field.
func (*UserCreate) SetUpdateTime ¶
func (uc *UserCreate) SetUpdateTime(t time.Time) *UserCreate
SetUpdateTime sets the "update_time" field.
type UserCreateBulk ¶
type UserCreateBulk struct {
// contains filtered or unexported fields
}
UserCreateBulk is the builder for creating many User entities in bulk.
func (*UserCreateBulk) Exec ¶
func (ucb *UserCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserCreateBulk) ExecX ¶
func (ucb *UserCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserCreateBulk) OnConflict ¶
func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.User.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.UserUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserCreateBulk) OnConflictColumns ¶
func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.User.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type UserDelete ¶
type UserDelete struct {
// contains filtered or unexported fields
}
UserDelete is the builder for deleting a User entity.
func (*UserDelete) Exec ¶
func (ud *UserDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserDelete) ExecX ¶
func (ud *UserDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserDelete) Where ¶
func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete
Where appends a list predicates to the UserDelete builder.
type UserDeleteOne ¶
type UserDeleteOne struct {
// contains filtered or unexported fields
}
UserDeleteOne is the builder for deleting a single User entity.
func (*UserDeleteOne) Exec ¶
func (udo *UserDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserDeleteOne) ExecX ¶
func (udo *UserDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserDeleteOne) Where ¶
func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne
Where appends a list predicates to the UserDelete builder.
type UserEdges ¶
type UserEdges struct { // Activities holds the value of the activities edge. Activities []*UserActivity `json:"activities,omitempty"` // Qualifications holds the value of the qualifications edge. Qualifications []*UserQualification `json:"qualifications,omitempty"` // CareerGroups holds the value of the careerGroups edge. CareerGroups []*UserCareerGroup `json:"careerGroups,omitempty"` // Notes holds the value of the notes edge. Notes []*UserNote `json:"notes,omitempty"` // contains filtered or unexported fields }
UserEdges holds the relations/edges for other nodes in the graph.
func (UserEdges) ActivitiesOrErr ¶
func (e UserEdges) ActivitiesOrErr() ([]*UserActivity, error)
ActivitiesOrErr returns the Activities value or an error if the edge was not loaded in eager-loading.
func (UserEdges) CareerGroupsOrErr ¶
func (e UserEdges) CareerGroupsOrErr() ([]*UserCareerGroup, error)
CareerGroupsOrErr returns the CareerGroups value or an error if the edge was not loaded in eager-loading.
func (UserEdges) NotesOrErr ¶
NotesOrErr returns the Notes value or an error if the edge was not loaded in eager-loading.
func (UserEdges) QualificationsOrErr ¶
func (e UserEdges) QualificationsOrErr() ([]*UserQualification, error)
QualificationsOrErr returns the Qualifications value or an error if the edge was not loaded in eager-loading.
type UserGroupBy ¶
type UserGroupBy struct {
// contains filtered or unexported fields
}
UserGroupBy is the group-by builder for User entities.
func (*UserGroupBy) Aggregate ¶
func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserGroupBy) Scan ¶
func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserMutation ¶
type UserMutation struct {
// contains filtered or unexported fields
}
UserMutation represents an operation that mutates the User nodes in the graph.
func (*UserMutation) ActivitiesCleared ¶
func (m *UserMutation) ActivitiesCleared() bool
ActivitiesCleared reports if the "activities" edge to the UserActivity entity was cleared.
func (*UserMutation) ActivitiesIDs ¶
func (m *UserMutation) ActivitiesIDs() (ids []int)
ActivitiesIDs returns the "activities" edge IDs in the mutation.
func (*UserMutation) AddActivityIDs ¶
func (m *UserMutation) AddActivityIDs(ids ...int)
AddActivityIDs adds the "activities" edge to the UserActivity entity by ids.
func (*UserMutation) AddBirthdayDay ¶
func (m *UserMutation) AddBirthdayDay(i int)
AddBirthdayDay adds i to the "birthday_day" field.
func (*UserMutation) AddBirthdayMonth ¶
func (m *UserMutation) AddBirthdayMonth(i int)
AddBirthdayMonth adds i to the "birthday_month" field.
func (*UserMutation) AddBirthdayYear ¶
func (m *UserMutation) AddBirthdayYear(i int)
AddBirthdayYear adds i to the "birthday_year" field.
func (*UserMutation) AddCareerGroupIDs ¶
func (m *UserMutation) AddCareerGroupIDs(ids ...int)
AddCareerGroupIDs adds the "careerGroups" edge to the UserCareerGroup entity by ids.
func (*UserMutation) AddField ¶
func (m *UserMutation) 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 (*UserMutation) AddNoteIDs ¶
func (m *UserMutation) AddNoteIDs(ids ...int)
AddNoteIDs adds the "notes" edge to the UserNote entity by ids.
func (*UserMutation) AddQualificationIDs ¶
func (m *UserMutation) AddQualificationIDs(ids ...int)
AddQualificationIDs adds the "qualifications" edge to the UserQualification entity by ids.
func (*UserMutation) AddedBirthdayDay ¶
func (m *UserMutation) AddedBirthdayDay() (r int, exists bool)
AddedBirthdayDay returns the value that was added to the "birthday_day" field in this mutation.
func (*UserMutation) AddedBirthdayMonth ¶
func (m *UserMutation) AddedBirthdayMonth() (r int, exists bool)
AddedBirthdayMonth returns the value that was added to the "birthday_month" field in this mutation.
func (*UserMutation) AddedBirthdayYear ¶
func (m *UserMutation) AddedBirthdayYear() (r int, exists bool)
AddedBirthdayYear returns the value that was added to the "birthday_year" field in this mutation.
func (*UserMutation) AddedEdges ¶
func (m *UserMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserMutation) AddedField ¶
func (m *UserMutation) 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 (*UserMutation) AddedFields ¶
func (m *UserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserMutation) AddedIDs ¶
func (m *UserMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserMutation) AvatarURL ¶
func (m *UserMutation) AvatarURL() (r string, exists bool)
AvatarURL returns the value of the "avatar_url" field in the mutation.
func (*UserMutation) AvatarURLCleared ¶
func (m *UserMutation) AvatarURLCleared() bool
AvatarURLCleared returns if the "avatar_url" field was cleared in this mutation.
func (*UserMutation) BelongTo ¶
func (m *UserMutation) BelongTo() (r string, exists bool)
BelongTo returns the value of the "belong_to" field in the mutation.
func (*UserMutation) BelongToCleared ¶
func (m *UserMutation) BelongToCleared() bool
BelongToCleared returns if the "belong_to" field was cleared in this mutation.
func (*UserMutation) BirthdayDay ¶
func (m *UserMutation) BirthdayDay() (r int, exists bool)
BirthdayDay returns the value of the "birthday_day" field in the mutation.
func (*UserMutation) BirthdayMonth ¶
func (m *UserMutation) BirthdayMonth() (r int, exists bool)
BirthdayMonth returns the value of the "birthday_month" field in the mutation.
func (*UserMutation) BirthdayYear ¶
func (m *UserMutation) BirthdayYear() (r int, exists bool)
BirthdayYear returns the value of the "birthday_year" field in the mutation.
func (*UserMutation) CareerGroupsCleared ¶
func (m *UserMutation) CareerGroupsCleared() bool
CareerGroupsCleared reports if the "careerGroups" edge to the UserCareerGroup entity was cleared.
func (*UserMutation) CareerGroupsIDs ¶
func (m *UserMutation) CareerGroupsIDs() (ids []int)
CareerGroupsIDs returns the "careerGroups" edge IDs in the mutation.
func (*UserMutation) ClearActivities ¶
func (m *UserMutation) ClearActivities()
ClearActivities clears the "activities" edge to the UserActivity entity.
func (*UserMutation) ClearAvatarURL ¶
func (m *UserMutation) ClearAvatarURL()
ClearAvatarURL clears the value of the "avatar_url" field.
func (*UserMutation) ClearBelongTo ¶
func (m *UserMutation) ClearBelongTo()
ClearBelongTo clears the value of the "belong_to" field.
func (*UserMutation) ClearCareerGroups ¶
func (m *UserMutation) ClearCareerGroups()
ClearCareerGroups clears the "careerGroups" edge to the UserCareerGroup entity.
func (*UserMutation) ClearEdge ¶
func (m *UserMutation) 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 (*UserMutation) ClearField ¶
func (m *UserMutation) 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 (*UserMutation) ClearJob ¶
func (m *UserMutation) ClearJob()
ClearJob clears the value of the "job" field.
func (*UserMutation) ClearNickname ¶
func (m *UserMutation) ClearNickname()
ClearNickname clears the value of the "nickname" field.
func (*UserMutation) ClearNotes ¶
func (m *UserMutation) ClearNotes()
ClearNotes clears the "notes" edge to the UserNote entity.
func (*UserMutation) ClearPr ¶
func (m *UserMutation) ClearPr()
ClearPr clears the value of the "pr" field.
func (*UserMutation) ClearQualifications ¶
func (m *UserMutation) ClearQualifications()
ClearQualifications clears the "qualifications" edge to the UserQualification entity.
func (*UserMutation) ClearedEdges ¶
func (m *UserMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserMutation) ClearedFields ¶
func (m *UserMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserMutation) Client ¶
func (m UserMutation) 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 (*UserMutation) CreateTime ¶
func (m *UserMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*UserMutation) EdgeCleared ¶
func (m *UserMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserMutation) Field ¶
func (m *UserMutation) 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 (*UserMutation) FieldCleared ¶
func (m *UserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserMutation) Fields ¶
func (m *UserMutation) 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 (*UserMutation) ID ¶
func (m *UserMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserMutation) IDs ¶
func (m *UserMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserMutation) Job ¶
func (m *UserMutation) Job() (r string, exists bool)
Job returns the value of the "job" field in the mutation.
func (*UserMutation) JobCleared ¶
func (m *UserMutation) JobCleared() bool
JobCleared returns if the "job" field was cleared in this mutation.
func (*UserMutation) Name ¶
func (m *UserMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*UserMutation) Nickname ¶
func (m *UserMutation) Nickname() (r string, exists bool)
Nickname returns the value of the "nickname" field in the mutation.
func (*UserMutation) NicknameCleared ¶
func (m *UserMutation) NicknameCleared() bool
NicknameCleared returns if the "nickname" field was cleared in this mutation.
func (*UserMutation) NotesCleared ¶
func (m *UserMutation) NotesCleared() bool
NotesCleared reports if the "notes" edge to the UserNote entity was cleared.
func (*UserMutation) NotesIDs ¶
func (m *UserMutation) NotesIDs() (ids []int)
NotesIDs returns the "notes" edge IDs in the mutation.
func (*UserMutation) OldAvatarURL ¶
func (m *UserMutation) OldAvatarURL(ctx context.Context) (v *string, err error)
OldAvatarURL returns the old "avatar_url" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldBelongTo ¶
func (m *UserMutation) OldBelongTo(ctx context.Context) (v *string, err error)
OldBelongTo returns the old "belong_to" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldBirthdayDay ¶
func (m *UserMutation) OldBirthdayDay(ctx context.Context) (v int, err error)
OldBirthdayDay returns the old "birthday_day" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldBirthdayMonth ¶
func (m *UserMutation) OldBirthdayMonth(ctx context.Context) (v int, err error)
OldBirthdayMonth returns the old "birthday_month" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldBirthdayYear ¶
func (m *UserMutation) OldBirthdayYear(ctx context.Context) (v int, err error)
OldBirthdayYear returns the old "birthday_year" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) 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 (*UserMutation) OldJob ¶
func (m *UserMutation) OldJob(ctx context.Context) (v *string, err error)
OldJob returns the old "job" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldName ¶
func (m *UserMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldNickname ¶
func (m *UserMutation) OldNickname(ctx context.Context) (v *string, err error)
OldNickname returns the old "nickname" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldPr ¶
func (m *UserMutation) OldPr(ctx context.Context) (v *string, err error)
OldPr returns the old "pr" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the User entity. If the User object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserMutation) Pr ¶
func (m *UserMutation) Pr() (r string, exists bool)
Pr returns the value of the "pr" field in the mutation.
func (*UserMutation) PrCleared ¶
func (m *UserMutation) PrCleared() bool
PrCleared returns if the "pr" field was cleared in this mutation.
func (*UserMutation) QualificationsCleared ¶
func (m *UserMutation) QualificationsCleared() bool
QualificationsCleared reports if the "qualifications" edge to the UserQualification entity was cleared.
func (*UserMutation) QualificationsIDs ¶
func (m *UserMutation) QualificationsIDs() (ids []int)
QualificationsIDs returns the "qualifications" edge IDs in the mutation.
func (*UserMutation) RemoveActivityIDs ¶
func (m *UserMutation) RemoveActivityIDs(ids ...int)
RemoveActivityIDs removes the "activities" edge to the UserActivity entity by IDs.
func (*UserMutation) RemoveCareerGroupIDs ¶
func (m *UserMutation) RemoveCareerGroupIDs(ids ...int)
RemoveCareerGroupIDs removes the "careerGroups" edge to the UserCareerGroup entity by IDs.
func (*UserMutation) RemoveNoteIDs ¶
func (m *UserMutation) RemoveNoteIDs(ids ...int)
RemoveNoteIDs removes the "notes" edge to the UserNote entity by IDs.
func (*UserMutation) RemoveQualificationIDs ¶
func (m *UserMutation) RemoveQualificationIDs(ids ...int)
RemoveQualificationIDs removes the "qualifications" edge to the UserQualification entity by IDs.
func (*UserMutation) RemovedActivitiesIDs ¶
func (m *UserMutation) RemovedActivitiesIDs() (ids []int)
RemovedActivities returns the removed IDs of the "activities" edge to the UserActivity entity.
func (*UserMutation) RemovedCareerGroupsIDs ¶
func (m *UserMutation) RemovedCareerGroupsIDs() (ids []int)
RemovedCareerGroups returns the removed IDs of the "careerGroups" edge to the UserCareerGroup entity.
func (*UserMutation) RemovedEdges ¶
func (m *UserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserMutation) RemovedIDs ¶
func (m *UserMutation) 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 (*UserMutation) RemovedNotesIDs ¶
func (m *UserMutation) RemovedNotesIDs() (ids []int)
RemovedNotes returns the removed IDs of the "notes" edge to the UserNote entity.
func (*UserMutation) RemovedQualificationsIDs ¶
func (m *UserMutation) RemovedQualificationsIDs() (ids []int)
RemovedQualifications returns the removed IDs of the "qualifications" edge to the UserQualification entity.
func (*UserMutation) ResetActivities ¶
func (m *UserMutation) ResetActivities()
ResetActivities resets all changes to the "activities" edge.
func (*UserMutation) ResetAvatarURL ¶
func (m *UserMutation) ResetAvatarURL()
ResetAvatarURL resets all changes to the "avatar_url" field.
func (*UserMutation) ResetBelongTo ¶
func (m *UserMutation) ResetBelongTo()
ResetBelongTo resets all changes to the "belong_to" field.
func (*UserMutation) ResetBirthdayDay ¶
func (m *UserMutation) ResetBirthdayDay()
ResetBirthdayDay resets all changes to the "birthday_day" field.
func (*UserMutation) ResetBirthdayMonth ¶
func (m *UserMutation) ResetBirthdayMonth()
ResetBirthdayMonth resets all changes to the "birthday_month" field.
func (*UserMutation) ResetBirthdayYear ¶
func (m *UserMutation) ResetBirthdayYear()
ResetBirthdayYear resets all changes to the "birthday_year" field.
func (*UserMutation) ResetCareerGroups ¶
func (m *UserMutation) ResetCareerGroups()
ResetCareerGroups resets all changes to the "careerGroups" edge.
func (*UserMutation) ResetCreateTime ¶
func (m *UserMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*UserMutation) ResetEdge ¶
func (m *UserMutation) 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 (*UserMutation) ResetField ¶
func (m *UserMutation) 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 (*UserMutation) ResetJob ¶
func (m *UserMutation) ResetJob()
ResetJob resets all changes to the "job" field.
func (*UserMutation) ResetName ¶
func (m *UserMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*UserMutation) ResetNickname ¶
func (m *UserMutation) ResetNickname()
ResetNickname resets all changes to the "nickname" field.
func (*UserMutation) ResetNotes ¶
func (m *UserMutation) ResetNotes()
ResetNotes resets all changes to the "notes" edge.
func (*UserMutation) ResetPr ¶
func (m *UserMutation) ResetPr()
ResetPr resets all changes to the "pr" field.
func (*UserMutation) ResetQualifications ¶
func (m *UserMutation) ResetQualifications()
ResetQualifications resets all changes to the "qualifications" edge.
func (*UserMutation) ResetUpdateTime ¶
func (m *UserMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*UserMutation) SetAvatarURL ¶
func (m *UserMutation) SetAvatarURL(s string)
SetAvatarURL sets the "avatar_url" field.
func (*UserMutation) SetBelongTo ¶
func (m *UserMutation) SetBelongTo(s string)
SetBelongTo sets the "belong_to" field.
func (*UserMutation) SetBirthdayDay ¶
func (m *UserMutation) SetBirthdayDay(i int)
SetBirthdayDay sets the "birthday_day" field.
func (*UserMutation) SetBirthdayMonth ¶
func (m *UserMutation) SetBirthdayMonth(i int)
SetBirthdayMonth sets the "birthday_month" field.
func (*UserMutation) SetBirthdayYear ¶
func (m *UserMutation) SetBirthdayYear(i int)
SetBirthdayYear sets the "birthday_year" field.
func (*UserMutation) SetCreateTime ¶
func (m *UserMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*UserMutation) SetField ¶
func (m *UserMutation) 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 (*UserMutation) SetName ¶
func (m *UserMutation) SetName(s string)
SetName sets the "name" field.
func (*UserMutation) SetNickname ¶
func (m *UserMutation) SetNickname(s string)
SetNickname sets the "nickname" field.
func (*UserMutation) SetOp ¶
func (m *UserMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserMutation) SetUpdateTime ¶
func (m *UserMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (UserMutation) Tx ¶
func (m UserMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserMutation) Type ¶
func (m *UserMutation) Type() string
Type returns the node type of this mutation (User).
func (*UserMutation) UpdateTime ¶
func (m *UserMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*UserMutation) Where ¶
func (m *UserMutation) Where(ps ...predicate.User)
Where appends a list predicates to the UserMutation builder.
func (*UserMutation) WhereP ¶
func (m *UserMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserNote ¶
type UserNote struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Label holds the value of the "label" field. Label string `json:"label,omitempty"` // Memo holds the value of the "memo" field. Memo *string `json:"memo,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserNoteQuery when eager-loading is set. Edges UserNoteEdges `json:"edges"` // contains filtered or unexported fields }
UserNote is the model entity for the UserNote schema.
func (*UserNote) QueryNoteItems ¶
func (un *UserNote) QueryNoteItems() *UserNoteItemQuery
QueryNoteItems queries the "noteItems" edge of the UserNote entity.
func (*UserNote) Unwrap ¶
Unwrap unwraps the UserNote 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 (*UserNote) Update ¶
func (un *UserNote) Update() *UserNoteUpdateOne
Update returns a builder for updating this UserNote. Note that you need to call UserNote.Unwrap() before calling this method if this UserNote was returned from a transaction, and the transaction was committed or rolled back.
type UserNoteClient ¶
type UserNoteClient struct {
// contains filtered or unexported fields
}
UserNoteClient is a client for the UserNote schema.
func NewUserNoteClient ¶
func NewUserNoteClient(c config) *UserNoteClient
NewUserNoteClient returns a client for the UserNote from the given config.
func (*UserNoteClient) Create ¶
func (c *UserNoteClient) Create() *UserNoteCreate
Create returns a builder for creating a UserNote entity.
func (*UserNoteClient) CreateBulk ¶
func (c *UserNoteClient) CreateBulk(builders ...*UserNoteCreate) *UserNoteCreateBulk
CreateBulk returns a builder for creating a bulk of UserNote entities.
func (*UserNoteClient) Delete ¶
func (c *UserNoteClient) Delete() *UserNoteDelete
Delete returns a delete builder for UserNote.
func (*UserNoteClient) DeleteOne ¶
func (c *UserNoteClient) DeleteOne(un *UserNote) *UserNoteDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserNoteClient) DeleteOneID ¶
func (c *UserNoteClient) DeleteOneID(id int) *UserNoteDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserNoteClient) GetX ¶
func (c *UserNoteClient) GetX(ctx context.Context, id int) *UserNote
GetX is like Get, but panics if an error occurs.
func (*UserNoteClient) Hooks ¶
func (c *UserNoteClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UserNoteClient) Intercept ¶
func (c *UserNoteClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usernote.Intercept(f(g(h())))`.
func (*UserNoteClient) Interceptors ¶
func (c *UserNoteClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserNoteClient) Query ¶
func (c *UserNoteClient) Query() *UserNoteQuery
Query returns a query builder for UserNote.
func (*UserNoteClient) QueryNoteItems ¶
func (c *UserNoteClient) QueryNoteItems(un *UserNote) *UserNoteItemQuery
QueryNoteItems queries the noteItems edge of a UserNote.
func (*UserNoteClient) QueryUser ¶
func (c *UserNoteClient) QueryUser(un *UserNote) *UserQuery
QueryUser queries the user edge of a UserNote.
func (*UserNoteClient) Update ¶
func (c *UserNoteClient) Update() *UserNoteUpdate
Update returns an update builder for UserNote.
func (*UserNoteClient) UpdateOne ¶
func (c *UserNoteClient) UpdateOne(un *UserNote) *UserNoteUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserNoteClient) UpdateOneID ¶
func (c *UserNoteClient) UpdateOneID(id int) *UserNoteUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserNoteClient) Use ¶
func (c *UserNoteClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usernote.Hooks(f(g(h())))`.
type UserNoteCreate ¶
type UserNoteCreate struct {
// contains filtered or unexported fields
}
UserNoteCreate is the builder for creating a UserNote entity.
func (*UserNoteCreate) AddNoteItemIDs ¶
func (unc *UserNoteCreate) AddNoteItemIDs(ids ...int) *UserNoteCreate
AddNoteItemIDs adds the "noteItems" edge to the UserNoteItem entity by IDs.
func (*UserNoteCreate) AddNoteItems ¶
func (unc *UserNoteCreate) AddNoteItems(u ...*UserNoteItem) *UserNoteCreate
AddNoteItems adds the "noteItems" edges to the UserNoteItem entity.
func (*UserNoteCreate) Exec ¶
func (unc *UserNoteCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteCreate) ExecX ¶
func (unc *UserNoteCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteCreate) Mutation ¶
func (unc *UserNoteCreate) Mutation() *UserNoteMutation
Mutation returns the UserNoteMutation object of the builder.
func (*UserNoteCreate) OnConflict ¶
func (unc *UserNoteCreate) OnConflict(opts ...sql.ConflictOption) *UserNoteUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserNote.Create(). SetCreateTime(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.UserNoteUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserNoteCreate) OnConflictColumns ¶
func (unc *UserNoteCreate) OnConflictColumns(columns ...string) *UserNoteUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserNote.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserNoteCreate) Save ¶
func (unc *UserNoteCreate) Save(ctx context.Context) (*UserNote, error)
Save creates the UserNote in the database.
func (*UserNoteCreate) SaveX ¶
func (unc *UserNoteCreate) SaveX(ctx context.Context) *UserNote
SaveX calls Save and panics if Save returns an error.
func (*UserNoteCreate) SetCreateTime ¶
func (unc *UserNoteCreate) SetCreateTime(t time.Time) *UserNoteCreate
SetCreateTime sets the "create_time" field.
func (*UserNoteCreate) SetLabel ¶
func (unc *UserNoteCreate) SetLabel(s string) *UserNoteCreate
SetLabel sets the "label" field.
func (*UserNoteCreate) SetMemo ¶
func (unc *UserNoteCreate) SetMemo(s string) *UserNoteCreate
SetMemo sets the "memo" field.
func (*UserNoteCreate) SetNillableCreateTime ¶
func (unc *UserNoteCreate) SetNillableCreateTime(t *time.Time) *UserNoteCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*UserNoteCreate) SetNillableMemo ¶
func (unc *UserNoteCreate) SetNillableMemo(s *string) *UserNoteCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*UserNoteCreate) SetNillableUpdateTime ¶
func (unc *UserNoteCreate) SetNillableUpdateTime(t *time.Time) *UserNoteCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*UserNoteCreate) SetUpdateTime ¶
func (unc *UserNoteCreate) SetUpdateTime(t time.Time) *UserNoteCreate
SetUpdateTime sets the "update_time" field.
func (*UserNoteCreate) SetUser ¶
func (unc *UserNoteCreate) SetUser(u *User) *UserNoteCreate
SetUser sets the "user" edge to the User entity.
func (*UserNoteCreate) SetUserID ¶
func (unc *UserNoteCreate) SetUserID(id int) *UserNoteCreate
SetUserID sets the "user" edge to the User entity by ID.
type UserNoteCreateBulk ¶
type UserNoteCreateBulk struct {
// contains filtered or unexported fields
}
UserNoteCreateBulk is the builder for creating many UserNote entities in bulk.
func (*UserNoteCreateBulk) Exec ¶
func (uncb *UserNoteCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteCreateBulk) ExecX ¶
func (uncb *UserNoteCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteCreateBulk) OnConflict ¶
func (uncb *UserNoteCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserNoteUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserNote.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.UserNoteUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserNoteCreateBulk) OnConflictColumns ¶
func (uncb *UserNoteCreateBulk) OnConflictColumns(columns ...string) *UserNoteUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserNote.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type UserNoteDelete ¶
type UserNoteDelete struct {
// contains filtered or unexported fields
}
UserNoteDelete is the builder for deleting a UserNote entity.
func (*UserNoteDelete) Exec ¶
func (und *UserNoteDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserNoteDelete) ExecX ¶
func (und *UserNoteDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteDelete) Where ¶
func (und *UserNoteDelete) Where(ps ...predicate.UserNote) *UserNoteDelete
Where appends a list predicates to the UserNoteDelete builder.
type UserNoteDeleteOne ¶
type UserNoteDeleteOne struct {
// contains filtered or unexported fields
}
UserNoteDeleteOne is the builder for deleting a single UserNote entity.
func (*UserNoteDeleteOne) Exec ¶
func (undo *UserNoteDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserNoteDeleteOne) ExecX ¶
func (undo *UserNoteDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteDeleteOne) Where ¶
func (undo *UserNoteDeleteOne) Where(ps ...predicate.UserNote) *UserNoteDeleteOne
Where appends a list predicates to the UserNoteDelete builder.
type UserNoteEdges ¶
type UserNoteEdges struct { // User holds the value of the user edge. User *User `json:"user,omitempty"` // NoteItems holds the value of the noteItems edge. NoteItems []*UserNoteItem `json:"noteItems,omitempty"` // contains filtered or unexported fields }
UserNoteEdges holds the relations/edges for other nodes in the graph.
func (UserNoteEdges) NoteItemsOrErr ¶
func (e UserNoteEdges) NoteItemsOrErr() ([]*UserNoteItem, error)
NoteItemsOrErr returns the NoteItems value or an error if the edge was not loaded in eager-loading.
func (UserNoteEdges) UserOrErr ¶
func (e UserNoteEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UserNoteGroupBy ¶
type UserNoteGroupBy struct {
// contains filtered or unexported fields
}
UserNoteGroupBy is the group-by builder for UserNote entities.
func (*UserNoteGroupBy) Aggregate ¶
func (ungb *UserNoteGroupBy) Aggregate(fns ...AggregateFunc) *UserNoteGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserNoteGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserNoteGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserNoteGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserNoteGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserNoteGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserNoteGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserNoteGroupBy) Scan ¶
func (ungb *UserNoteGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserNoteGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserNoteItem ¶
type UserNoteItem struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Text holds the value of the "text" field. Text string `json:"text,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserNoteItemQuery when eager-loading is set. Edges UserNoteItemEdges `json:"edges"` // contains filtered or unexported fields }
UserNoteItem is the model entity for the UserNoteItem schema.
func (*UserNoteItem) QueryNote ¶
func (uni *UserNoteItem) QueryNote() *UserNoteQuery
QueryNote queries the "note" edge of the UserNoteItem entity.
func (*UserNoteItem) String ¶
func (uni *UserNoteItem) String() string
String implements the fmt.Stringer.
func (*UserNoteItem) Unwrap ¶
func (uni *UserNoteItem) Unwrap() *UserNoteItem
Unwrap unwraps the UserNoteItem 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 (*UserNoteItem) Update ¶
func (uni *UserNoteItem) Update() *UserNoteItemUpdateOne
Update returns a builder for updating this UserNoteItem. Note that you need to call UserNoteItem.Unwrap() before calling this method if this UserNoteItem was returned from a transaction, and the transaction was committed or rolled back.
type UserNoteItemClient ¶
type UserNoteItemClient struct {
// contains filtered or unexported fields
}
UserNoteItemClient is a client for the UserNoteItem schema.
func NewUserNoteItemClient ¶
func NewUserNoteItemClient(c config) *UserNoteItemClient
NewUserNoteItemClient returns a client for the UserNoteItem from the given config.
func (*UserNoteItemClient) Create ¶
func (c *UserNoteItemClient) Create() *UserNoteItemCreate
Create returns a builder for creating a UserNoteItem entity.
func (*UserNoteItemClient) CreateBulk ¶
func (c *UserNoteItemClient) CreateBulk(builders ...*UserNoteItemCreate) *UserNoteItemCreateBulk
CreateBulk returns a builder for creating a bulk of UserNoteItem entities.
func (*UserNoteItemClient) Delete ¶
func (c *UserNoteItemClient) Delete() *UserNoteItemDelete
Delete returns a delete builder for UserNoteItem.
func (*UserNoteItemClient) DeleteOne ¶
func (c *UserNoteItemClient) DeleteOne(uni *UserNoteItem) *UserNoteItemDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserNoteItemClient) DeleteOneID ¶
func (c *UserNoteItemClient) DeleteOneID(id int) *UserNoteItemDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserNoteItemClient) Get ¶
func (c *UserNoteItemClient) Get(ctx context.Context, id int) (*UserNoteItem, error)
Get returns a UserNoteItem entity by its id.
func (*UserNoteItemClient) GetX ¶
func (c *UserNoteItemClient) GetX(ctx context.Context, id int) *UserNoteItem
GetX is like Get, but panics if an error occurs.
func (*UserNoteItemClient) Hooks ¶
func (c *UserNoteItemClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UserNoteItemClient) Intercept ¶
func (c *UserNoteItemClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `usernoteitem.Intercept(f(g(h())))`.
func (*UserNoteItemClient) Interceptors ¶
func (c *UserNoteItemClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserNoteItemClient) Query ¶
func (c *UserNoteItemClient) Query() *UserNoteItemQuery
Query returns a query builder for UserNoteItem.
func (*UserNoteItemClient) QueryNote ¶
func (c *UserNoteItemClient) QueryNote(uni *UserNoteItem) *UserNoteQuery
QueryNote queries the note edge of a UserNoteItem.
func (*UserNoteItemClient) Update ¶
func (c *UserNoteItemClient) Update() *UserNoteItemUpdate
Update returns an update builder for UserNoteItem.
func (*UserNoteItemClient) UpdateOne ¶
func (c *UserNoteItemClient) UpdateOne(uni *UserNoteItem) *UserNoteItemUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserNoteItemClient) UpdateOneID ¶
func (c *UserNoteItemClient) UpdateOneID(id int) *UserNoteItemUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserNoteItemClient) Use ¶
func (c *UserNoteItemClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `usernoteitem.Hooks(f(g(h())))`.
type UserNoteItemCreate ¶
type UserNoteItemCreate struct {
// contains filtered or unexported fields
}
UserNoteItemCreate is the builder for creating a UserNoteItem entity.
func (*UserNoteItemCreate) Exec ¶
func (unic *UserNoteItemCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteItemCreate) ExecX ¶
func (unic *UserNoteItemCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteItemCreate) Mutation ¶
func (unic *UserNoteItemCreate) Mutation() *UserNoteItemMutation
Mutation returns the UserNoteItemMutation object of the builder.
func (*UserNoteItemCreate) OnConflict ¶
func (unic *UserNoteItemCreate) OnConflict(opts ...sql.ConflictOption) *UserNoteItemUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserNoteItem.Create(). SetCreateTime(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.UserNoteItemUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserNoteItemCreate) OnConflictColumns ¶
func (unic *UserNoteItemCreate) OnConflictColumns(columns ...string) *UserNoteItemUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserNoteItem.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserNoteItemCreate) Save ¶
func (unic *UserNoteItemCreate) Save(ctx context.Context) (*UserNoteItem, error)
Save creates the UserNoteItem in the database.
func (*UserNoteItemCreate) SaveX ¶
func (unic *UserNoteItemCreate) SaveX(ctx context.Context) *UserNoteItem
SaveX calls Save and panics if Save returns an error.
func (*UserNoteItemCreate) SetCreateTime ¶
func (unic *UserNoteItemCreate) SetCreateTime(t time.Time) *UserNoteItemCreate
SetCreateTime sets the "create_time" field.
func (*UserNoteItemCreate) SetNillableCreateTime ¶
func (unic *UserNoteItemCreate) SetNillableCreateTime(t *time.Time) *UserNoteItemCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*UserNoteItemCreate) SetNillableUpdateTime ¶
func (unic *UserNoteItemCreate) SetNillableUpdateTime(t *time.Time) *UserNoteItemCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*UserNoteItemCreate) SetNote ¶
func (unic *UserNoteItemCreate) SetNote(u *UserNote) *UserNoteItemCreate
SetNote sets the "note" edge to the UserNote entity.
func (*UserNoteItemCreate) SetNoteID ¶
func (unic *UserNoteItemCreate) SetNoteID(id int) *UserNoteItemCreate
SetNoteID sets the "note" edge to the UserNote entity by ID.
func (*UserNoteItemCreate) SetText ¶
func (unic *UserNoteItemCreate) SetText(s string) *UserNoteItemCreate
SetText sets the "text" field.
func (*UserNoteItemCreate) SetUpdateTime ¶
func (unic *UserNoteItemCreate) SetUpdateTime(t time.Time) *UserNoteItemCreate
SetUpdateTime sets the "update_time" field.
type UserNoteItemCreateBulk ¶
type UserNoteItemCreateBulk struct {
// contains filtered or unexported fields
}
UserNoteItemCreateBulk is the builder for creating many UserNoteItem entities in bulk.
func (*UserNoteItemCreateBulk) Exec ¶
func (unicb *UserNoteItemCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteItemCreateBulk) ExecX ¶
func (unicb *UserNoteItemCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteItemCreateBulk) OnConflict ¶
func (unicb *UserNoteItemCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserNoteItemUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserNoteItem.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.UserNoteItemUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserNoteItemCreateBulk) OnConflictColumns ¶
func (unicb *UserNoteItemCreateBulk) OnConflictColumns(columns ...string) *UserNoteItemUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserNoteItem.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserNoteItemCreateBulk) Save ¶
func (unicb *UserNoteItemCreateBulk) Save(ctx context.Context) ([]*UserNoteItem, error)
Save creates the UserNoteItem entities in the database.
func (*UserNoteItemCreateBulk) SaveX ¶
func (unicb *UserNoteItemCreateBulk) SaveX(ctx context.Context) []*UserNoteItem
SaveX is like Save, but panics if an error occurs.
type UserNoteItemDelete ¶
type UserNoteItemDelete struct {
// contains filtered or unexported fields
}
UserNoteItemDelete is the builder for deleting a UserNoteItem entity.
func (*UserNoteItemDelete) Exec ¶
func (unid *UserNoteItemDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserNoteItemDelete) ExecX ¶
func (unid *UserNoteItemDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteItemDelete) Where ¶
func (unid *UserNoteItemDelete) Where(ps ...predicate.UserNoteItem) *UserNoteItemDelete
Where appends a list predicates to the UserNoteItemDelete builder.
type UserNoteItemDeleteOne ¶
type UserNoteItemDeleteOne struct {
// contains filtered or unexported fields
}
UserNoteItemDeleteOne is the builder for deleting a single UserNoteItem entity.
func (*UserNoteItemDeleteOne) Exec ¶
func (unido *UserNoteItemDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserNoteItemDeleteOne) ExecX ¶
func (unido *UserNoteItemDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteItemDeleteOne) Where ¶
func (unido *UserNoteItemDeleteOne) Where(ps ...predicate.UserNoteItem) *UserNoteItemDeleteOne
Where appends a list predicates to the UserNoteItemDelete builder.
type UserNoteItemEdges ¶
type UserNoteItemEdges struct { // Note holds the value of the note edge. Note *UserNote `json:"note,omitempty"` // contains filtered or unexported fields }
UserNoteItemEdges holds the relations/edges for other nodes in the graph.
func (UserNoteItemEdges) NoteOrErr ¶
func (e UserNoteItemEdges) NoteOrErr() (*UserNote, error)
NoteOrErr returns the Note value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UserNoteItemGroupBy ¶
type UserNoteItemGroupBy struct {
// contains filtered or unexported fields
}
UserNoteItemGroupBy is the group-by builder for UserNoteItem entities.
func (*UserNoteItemGroupBy) Aggregate ¶
func (unigb *UserNoteItemGroupBy) Aggregate(fns ...AggregateFunc) *UserNoteItemGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserNoteItemGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserNoteItemGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserNoteItemGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserNoteItemGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserNoteItemGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserNoteItemGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserNoteItemGroupBy) Scan ¶
func (unigb *UserNoteItemGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserNoteItemGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserNoteItemMutation ¶
type UserNoteItemMutation struct {
// contains filtered or unexported fields
}
UserNoteItemMutation represents an operation that mutates the UserNoteItem nodes in the graph.
func (*UserNoteItemMutation) AddField ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) AddedEdges ¶
func (m *UserNoteItemMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserNoteItemMutation) AddedField ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) AddedFields ¶
func (m *UserNoteItemMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserNoteItemMutation) AddedIDs ¶
func (m *UserNoteItemMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserNoteItemMutation) ClearEdge ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) ClearField ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) ClearNote ¶
func (m *UserNoteItemMutation) ClearNote()
ClearNote clears the "note" edge to the UserNote entity.
func (*UserNoteItemMutation) ClearedEdges ¶
func (m *UserNoteItemMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserNoteItemMutation) ClearedFields ¶
func (m *UserNoteItemMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserNoteItemMutation) Client ¶
func (m UserNoteItemMutation) 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 (*UserNoteItemMutation) CreateTime ¶
func (m *UserNoteItemMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*UserNoteItemMutation) EdgeCleared ¶
func (m *UserNoteItemMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserNoteItemMutation) Field ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) FieldCleared ¶
func (m *UserNoteItemMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserNoteItemMutation) Fields ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) ID ¶
func (m *UserNoteItemMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserNoteItemMutation) IDs ¶
func (m *UserNoteItemMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserNoteItemMutation) NoteCleared ¶
func (m *UserNoteItemMutation) NoteCleared() bool
NoteCleared reports if the "note" edge to the UserNote entity was cleared.
func (*UserNoteItemMutation) NoteID ¶
func (m *UserNoteItemMutation) NoteID() (id int, exists bool)
NoteID returns the "note" edge ID in the mutation.
func (*UserNoteItemMutation) NoteIDs ¶
func (m *UserNoteItemMutation) NoteIDs() (ids []int)
NoteIDs returns the "note" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use NoteID instead. It exists only for internal usage by the builders.
func (*UserNoteItemMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the UserNoteItem entity. If the UserNoteItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserNoteItemMutation) 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 (*UserNoteItemMutation) OldText ¶
func (m *UserNoteItemMutation) OldText(ctx context.Context) (v string, err error)
OldText returns the old "text" field's value of the UserNoteItem entity. If the UserNoteItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserNoteItemMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the UserNoteItem entity. If the UserNoteItem object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserNoteItemMutation) Op ¶
func (m *UserNoteItemMutation) Op() Op
Op returns the operation name.
func (*UserNoteItemMutation) RemovedEdges ¶
func (m *UserNoteItemMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserNoteItemMutation) RemovedIDs ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) ResetCreateTime ¶
func (m *UserNoteItemMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*UserNoteItemMutation) ResetEdge ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) ResetField ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) ResetNote ¶
func (m *UserNoteItemMutation) ResetNote()
ResetNote resets all changes to the "note" edge.
func (*UserNoteItemMutation) ResetText ¶
func (m *UserNoteItemMutation) ResetText()
ResetText resets all changes to the "text" field.
func (*UserNoteItemMutation) ResetUpdateTime ¶
func (m *UserNoteItemMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*UserNoteItemMutation) SetCreateTime ¶
func (m *UserNoteItemMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*UserNoteItemMutation) SetField ¶
func (m *UserNoteItemMutation) 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 (*UserNoteItemMutation) SetNoteID ¶
func (m *UserNoteItemMutation) SetNoteID(id int)
SetNoteID sets the "note" edge to the UserNote entity by id.
func (*UserNoteItemMutation) SetOp ¶
func (m *UserNoteItemMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserNoteItemMutation) SetText ¶
func (m *UserNoteItemMutation) SetText(s string)
SetText sets the "text" field.
func (*UserNoteItemMutation) SetUpdateTime ¶
func (m *UserNoteItemMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*UserNoteItemMutation) Text ¶
func (m *UserNoteItemMutation) Text() (r string, exists bool)
Text returns the value of the "text" field in the mutation.
func (UserNoteItemMutation) Tx ¶
func (m UserNoteItemMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserNoteItemMutation) Type ¶
func (m *UserNoteItemMutation) Type() string
Type returns the node type of this mutation (UserNoteItem).
func (*UserNoteItemMutation) UpdateTime ¶
func (m *UserNoteItemMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*UserNoteItemMutation) Where ¶
func (m *UserNoteItemMutation) Where(ps ...predicate.UserNoteItem)
Where appends a list predicates to the UserNoteItemMutation builder.
func (*UserNoteItemMutation) WhereP ¶
func (m *UserNoteItemMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserNoteItemMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserNoteItemQuery ¶
type UserNoteItemQuery struct {
// contains filtered or unexported fields
}
UserNoteItemQuery is the builder for querying UserNoteItem entities.
func (*UserNoteItemQuery) Aggregate ¶
func (uniq *UserNoteItemQuery) Aggregate(fns ...AggregateFunc) *UserNoteItemSelect
Aggregate returns a UserNoteItemSelect configured with the given aggregations.
func (*UserNoteItemQuery) All ¶
func (uniq *UserNoteItemQuery) All(ctx context.Context) ([]*UserNoteItem, error)
All executes the query and returns a list of UserNoteItems.
func (*UserNoteItemQuery) AllX ¶
func (uniq *UserNoteItemQuery) AllX(ctx context.Context) []*UserNoteItem
AllX is like All, but panics if an error occurs.
func (*UserNoteItemQuery) Clone ¶
func (uniq *UserNoteItemQuery) Clone() *UserNoteItemQuery
Clone returns a duplicate of the UserNoteItemQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserNoteItemQuery) Count ¶
func (uniq *UserNoteItemQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UserNoteItemQuery) CountX ¶
func (uniq *UserNoteItemQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UserNoteItemQuery) Exist ¶
func (uniq *UserNoteItemQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UserNoteItemQuery) ExistX ¶
func (uniq *UserNoteItemQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UserNoteItemQuery) First ¶
func (uniq *UserNoteItemQuery) First(ctx context.Context) (*UserNoteItem, error)
First returns the first UserNoteItem entity from the query. Returns a *NotFoundError when no UserNoteItem was found.
func (*UserNoteItemQuery) FirstID ¶
func (uniq *UserNoteItemQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first UserNoteItem ID from the query. Returns a *NotFoundError when no UserNoteItem ID was found.
func (*UserNoteItemQuery) FirstIDX ¶
func (uniq *UserNoteItemQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserNoteItemQuery) FirstX ¶
func (uniq *UserNoteItemQuery) FirstX(ctx context.Context) *UserNoteItem
FirstX is like First, but panics if an error occurs.
func (*UserNoteItemQuery) GroupBy ¶
func (uniq *UserNoteItemQuery) GroupBy(field string, fields ...string) *UserNoteItemGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.UserNoteItem.Query(). GroupBy(usernoteitem.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserNoteItemQuery) IDs ¶
func (uniq *UserNoteItemQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of UserNoteItem IDs.
func (*UserNoteItemQuery) IDsX ¶
func (uniq *UserNoteItemQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*UserNoteItemQuery) Limit ¶
func (uniq *UserNoteItemQuery) Limit(limit int) *UserNoteItemQuery
Limit the number of records to be returned by this query.
func (*UserNoteItemQuery) Offset ¶
func (uniq *UserNoteItemQuery) Offset(offset int) *UserNoteItemQuery
Offset to start from.
func (*UserNoteItemQuery) Only ¶
func (uniq *UserNoteItemQuery) Only(ctx context.Context) (*UserNoteItem, error)
Only returns a single UserNoteItem entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserNoteItem entity is found. Returns a *NotFoundError when no UserNoteItem entities are found.
func (*UserNoteItemQuery) OnlyID ¶
func (uniq *UserNoteItemQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only UserNoteItem ID in the query. Returns a *NotSingularError when more than one UserNoteItem ID is found. Returns a *NotFoundError when no entities are found.
func (*UserNoteItemQuery) OnlyIDX ¶
func (uniq *UserNoteItemQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserNoteItemQuery) OnlyX ¶
func (uniq *UserNoteItemQuery) OnlyX(ctx context.Context) *UserNoteItem
OnlyX is like Only, but panics if an error occurs.
func (*UserNoteItemQuery) Order ¶
func (uniq *UserNoteItemQuery) Order(o ...usernoteitem.OrderOption) *UserNoteItemQuery
Order specifies how the records should be ordered.
func (*UserNoteItemQuery) QueryNote ¶
func (uniq *UserNoteItemQuery) QueryNote() *UserNoteQuery
QueryNote chains the current query on the "note" edge.
func (*UserNoteItemQuery) Select ¶
func (uniq *UserNoteItemQuery) Select(fields ...string) *UserNoteItemSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.UserNoteItem.Query(). Select(usernoteitem.FieldCreateTime). Scan(ctx, &v)
func (*UserNoteItemQuery) Unique ¶
func (uniq *UserNoteItemQuery) Unique(unique bool) *UserNoteItemQuery
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 (*UserNoteItemQuery) Where ¶
func (uniq *UserNoteItemQuery) Where(ps ...predicate.UserNoteItem) *UserNoteItemQuery
Where adds a new predicate for the UserNoteItemQuery builder.
func (*UserNoteItemQuery) WithNote ¶
func (uniq *UserNoteItemQuery) WithNote(opts ...func(*UserNoteQuery)) *UserNoteItemQuery
WithNote tells the query-builder to eager-load the nodes that are connected to the "note" edge. The optional arguments are used to configure the query builder of the edge.
type UserNoteItemSelect ¶
type UserNoteItemSelect struct { *UserNoteItemQuery // contains filtered or unexported fields }
UserNoteItemSelect is the builder for selecting fields of UserNoteItem entities.
func (*UserNoteItemSelect) Aggregate ¶
func (unis *UserNoteItemSelect) Aggregate(fns ...AggregateFunc) *UserNoteItemSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserNoteItemSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserNoteItemSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserNoteItemSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserNoteItemSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserNoteItemSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserNoteItemSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserNoteItemSelect) Scan ¶
func (unis *UserNoteItemSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserNoteItemSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserNoteItemUpdate ¶
type UserNoteItemUpdate struct {
// contains filtered or unexported fields
}
UserNoteItemUpdate is the builder for updating UserNoteItem entities.
func (*UserNoteItemUpdate) ClearNote ¶
func (uniu *UserNoteItemUpdate) ClearNote() *UserNoteItemUpdate
ClearNote clears the "note" edge to the UserNote entity.
func (*UserNoteItemUpdate) Exec ¶
func (uniu *UserNoteItemUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteItemUpdate) ExecX ¶
func (uniu *UserNoteItemUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteItemUpdate) Mutation ¶
func (uniu *UserNoteItemUpdate) Mutation() *UserNoteItemMutation
Mutation returns the UserNoteItemMutation object of the builder.
func (*UserNoteItemUpdate) Save ¶
func (uniu *UserNoteItemUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserNoteItemUpdate) SaveX ¶
func (uniu *UserNoteItemUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserNoteItemUpdate) SetNote ¶
func (uniu *UserNoteItemUpdate) SetNote(u *UserNote) *UserNoteItemUpdate
SetNote sets the "note" edge to the UserNote entity.
func (*UserNoteItemUpdate) SetNoteID ¶
func (uniu *UserNoteItemUpdate) SetNoteID(id int) *UserNoteItemUpdate
SetNoteID sets the "note" edge to the UserNote entity by ID.
func (*UserNoteItemUpdate) SetText ¶
func (uniu *UserNoteItemUpdate) SetText(s string) *UserNoteItemUpdate
SetText sets the "text" field.
func (*UserNoteItemUpdate) SetUpdateTime ¶
func (uniu *UserNoteItemUpdate) SetUpdateTime(t time.Time) *UserNoteItemUpdate
SetUpdateTime sets the "update_time" field.
func (*UserNoteItemUpdate) Where ¶
func (uniu *UserNoteItemUpdate) Where(ps ...predicate.UserNoteItem) *UserNoteItemUpdate
Where appends a list predicates to the UserNoteItemUpdate builder.
type UserNoteItemUpdateOne ¶
type UserNoteItemUpdateOne struct {
// contains filtered or unexported fields
}
UserNoteItemUpdateOne is the builder for updating a single UserNoteItem entity.
func (*UserNoteItemUpdateOne) ClearNote ¶
func (uniuo *UserNoteItemUpdateOne) ClearNote() *UserNoteItemUpdateOne
ClearNote clears the "note" edge to the UserNote entity.
func (*UserNoteItemUpdateOne) Exec ¶
func (uniuo *UserNoteItemUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserNoteItemUpdateOne) ExecX ¶
func (uniuo *UserNoteItemUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteItemUpdateOne) Mutation ¶
func (uniuo *UserNoteItemUpdateOne) Mutation() *UserNoteItemMutation
Mutation returns the UserNoteItemMutation object of the builder.
func (*UserNoteItemUpdateOne) Save ¶
func (uniuo *UserNoteItemUpdateOne) Save(ctx context.Context) (*UserNoteItem, error)
Save executes the query and returns the updated UserNoteItem entity.
func (*UserNoteItemUpdateOne) SaveX ¶
func (uniuo *UserNoteItemUpdateOne) SaveX(ctx context.Context) *UserNoteItem
SaveX is like Save, but panics if an error occurs.
func (*UserNoteItemUpdateOne) Select ¶
func (uniuo *UserNoteItemUpdateOne) Select(field string, fields ...string) *UserNoteItemUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserNoteItemUpdateOne) SetNote ¶
func (uniuo *UserNoteItemUpdateOne) SetNote(u *UserNote) *UserNoteItemUpdateOne
SetNote sets the "note" edge to the UserNote entity.
func (*UserNoteItemUpdateOne) SetNoteID ¶
func (uniuo *UserNoteItemUpdateOne) SetNoteID(id int) *UserNoteItemUpdateOne
SetNoteID sets the "note" edge to the UserNote entity by ID.
func (*UserNoteItemUpdateOne) SetText ¶
func (uniuo *UserNoteItemUpdateOne) SetText(s string) *UserNoteItemUpdateOne
SetText sets the "text" field.
func (*UserNoteItemUpdateOne) SetUpdateTime ¶
func (uniuo *UserNoteItemUpdateOne) SetUpdateTime(t time.Time) *UserNoteItemUpdateOne
SetUpdateTime sets the "update_time" field.
func (*UserNoteItemUpdateOne) Where ¶
func (uniuo *UserNoteItemUpdateOne) Where(ps ...predicate.UserNoteItem) *UserNoteItemUpdateOne
Where appends a list predicates to the UserNoteItemUpdate builder.
type UserNoteItemUpsert ¶
UserNoteItemUpsert is the "OnConflict" setter.
func (*UserNoteItemUpsert) SetText ¶
func (u *UserNoteItemUpsert) SetText(v string) *UserNoteItemUpsert
SetText sets the "text" field.
func (*UserNoteItemUpsert) SetUpdateTime ¶
func (u *UserNoteItemUpsert) SetUpdateTime(v time.Time) *UserNoteItemUpsert
SetUpdateTime sets the "update_time" field.
func (*UserNoteItemUpsert) UpdateText ¶
func (u *UserNoteItemUpsert) UpdateText() *UserNoteItemUpsert
UpdateText sets the "text" field to the value that was provided on create.
func (*UserNoteItemUpsert) UpdateUpdateTime ¶
func (u *UserNoteItemUpsert) UpdateUpdateTime() *UserNoteItemUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserNoteItemUpsertBulk ¶
type UserNoteItemUpsertBulk struct {
// contains filtered or unexported fields
}
UserNoteItemUpsertBulk is the builder for "upsert"-ing a bulk of UserNoteItem nodes.
func (*UserNoteItemUpsertBulk) DoNothing ¶
func (u *UserNoteItemUpsertBulk) DoNothing() *UserNoteItemUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserNoteItemUpsertBulk) Exec ¶
func (u *UserNoteItemUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteItemUpsertBulk) ExecX ¶
func (u *UserNoteItemUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteItemUpsertBulk) Ignore ¶
func (u *UserNoteItemUpsertBulk) Ignore() *UserNoteItemUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserNoteItem.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserNoteItemUpsertBulk) SetText ¶
func (u *UserNoteItemUpsertBulk) SetText(v string) *UserNoteItemUpsertBulk
SetText sets the "text" field.
func (*UserNoteItemUpsertBulk) SetUpdateTime ¶
func (u *UserNoteItemUpsertBulk) SetUpdateTime(v time.Time) *UserNoteItemUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*UserNoteItemUpsertBulk) Update ¶
func (u *UserNoteItemUpsertBulk) Update(set func(*UserNoteItemUpsert)) *UserNoteItemUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserNoteItemCreateBulk.OnConflict documentation for more info.
func (*UserNoteItemUpsertBulk) UpdateNewValues ¶
func (u *UserNoteItemUpsertBulk) UpdateNewValues() *UserNoteItemUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserNoteItem.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserNoteItemUpsertBulk) UpdateText ¶
func (u *UserNoteItemUpsertBulk) UpdateText() *UserNoteItemUpsertBulk
UpdateText sets the "text" field to the value that was provided on create.
func (*UserNoteItemUpsertBulk) UpdateUpdateTime ¶
func (u *UserNoteItemUpsertBulk) UpdateUpdateTime() *UserNoteItemUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserNoteItemUpsertOne ¶
type UserNoteItemUpsertOne struct {
// contains filtered or unexported fields
}
UserNoteItemUpsertOne is the builder for "upsert"-ing
one UserNoteItem node.
func (*UserNoteItemUpsertOne) DoNothing ¶
func (u *UserNoteItemUpsertOne) DoNothing() *UserNoteItemUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserNoteItemUpsertOne) Exec ¶
func (u *UserNoteItemUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteItemUpsertOne) ExecX ¶
func (u *UserNoteItemUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteItemUpsertOne) ID ¶
func (u *UserNoteItemUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserNoteItemUpsertOne) IDX ¶
func (u *UserNoteItemUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*UserNoteItemUpsertOne) Ignore ¶
func (u *UserNoteItemUpsertOne) Ignore() *UserNoteItemUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserNoteItem.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserNoteItemUpsertOne) SetText ¶
func (u *UserNoteItemUpsertOne) SetText(v string) *UserNoteItemUpsertOne
SetText sets the "text" field.
func (*UserNoteItemUpsertOne) SetUpdateTime ¶
func (u *UserNoteItemUpsertOne) SetUpdateTime(v time.Time) *UserNoteItemUpsertOne
SetUpdateTime sets the "update_time" field.
func (*UserNoteItemUpsertOne) Update ¶
func (u *UserNoteItemUpsertOne) Update(set func(*UserNoteItemUpsert)) *UserNoteItemUpsertOne
Update allows overriding fields `UPDATE` values. See the UserNoteItemCreate.OnConflict documentation for more info.
func (*UserNoteItemUpsertOne) UpdateNewValues ¶
func (u *UserNoteItemUpsertOne) UpdateNewValues() *UserNoteItemUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserNoteItem.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserNoteItemUpsertOne) UpdateText ¶
func (u *UserNoteItemUpsertOne) UpdateText() *UserNoteItemUpsertOne
UpdateText sets the "text" field to the value that was provided on create.
func (*UserNoteItemUpsertOne) UpdateUpdateTime ¶
func (u *UserNoteItemUpsertOne) UpdateUpdateTime() *UserNoteItemUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserNoteItems ¶
type UserNoteItems []*UserNoteItem
UserNoteItems is a parsable slice of UserNoteItem.
type UserNoteMutation ¶
type UserNoteMutation struct {
// contains filtered or unexported fields
}
UserNoteMutation represents an operation that mutates the UserNote nodes in the graph.
func (*UserNoteMutation) AddField ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) AddNoteItemIDs ¶
func (m *UserNoteMutation) AddNoteItemIDs(ids ...int)
AddNoteItemIDs adds the "noteItems" edge to the UserNoteItem entity by ids.
func (*UserNoteMutation) AddedEdges ¶
func (m *UserNoteMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserNoteMutation) AddedField ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) AddedFields ¶
func (m *UserNoteMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserNoteMutation) AddedIDs ¶
func (m *UserNoteMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserNoteMutation) ClearEdge ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) ClearField ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) ClearMemo ¶
func (m *UserNoteMutation) ClearMemo()
ClearMemo clears the value of the "memo" field.
func (*UserNoteMutation) ClearNoteItems ¶
func (m *UserNoteMutation) ClearNoteItems()
ClearNoteItems clears the "noteItems" edge to the UserNoteItem entity.
func (*UserNoteMutation) ClearUser ¶
func (m *UserNoteMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*UserNoteMutation) ClearedEdges ¶
func (m *UserNoteMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserNoteMutation) ClearedFields ¶
func (m *UserNoteMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserNoteMutation) Client ¶
func (m UserNoteMutation) 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 (*UserNoteMutation) CreateTime ¶
func (m *UserNoteMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*UserNoteMutation) EdgeCleared ¶
func (m *UserNoteMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserNoteMutation) Field ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) FieldCleared ¶
func (m *UserNoteMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserNoteMutation) Fields ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) ID ¶
func (m *UserNoteMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserNoteMutation) IDs ¶
func (m *UserNoteMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserNoteMutation) Label ¶
func (m *UserNoteMutation) Label() (r string, exists bool)
Label returns the value of the "label" field in the mutation.
func (*UserNoteMutation) Memo ¶
func (m *UserNoteMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*UserNoteMutation) MemoCleared ¶
func (m *UserNoteMutation) MemoCleared() bool
MemoCleared returns if the "memo" field was cleared in this mutation.
func (*UserNoteMutation) NoteItemsCleared ¶
func (m *UserNoteMutation) NoteItemsCleared() bool
NoteItemsCleared reports if the "noteItems" edge to the UserNoteItem entity was cleared.
func (*UserNoteMutation) NoteItemsIDs ¶
func (m *UserNoteMutation) NoteItemsIDs() (ids []int)
NoteItemsIDs returns the "noteItems" edge IDs in the mutation.
func (*UserNoteMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the UserNote entity. If the UserNote object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserNoteMutation) 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 (*UserNoteMutation) OldLabel ¶
func (m *UserNoteMutation) OldLabel(ctx context.Context) (v string, err error)
OldLabel returns the old "label" field's value of the UserNote entity. If the UserNote object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserNoteMutation) OldMemo ¶
func (m *UserNoteMutation) OldMemo(ctx context.Context) (v *string, err error)
OldMemo returns the old "memo" field's value of the UserNote entity. If the UserNote object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserNoteMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the UserNote entity. If the UserNote object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserNoteMutation) RemoveNoteItemIDs ¶
func (m *UserNoteMutation) RemoveNoteItemIDs(ids ...int)
RemoveNoteItemIDs removes the "noteItems" edge to the UserNoteItem entity by IDs.
func (*UserNoteMutation) RemovedEdges ¶
func (m *UserNoteMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserNoteMutation) RemovedIDs ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) RemovedNoteItemsIDs ¶
func (m *UserNoteMutation) RemovedNoteItemsIDs() (ids []int)
RemovedNoteItems returns the removed IDs of the "noteItems" edge to the UserNoteItem entity.
func (*UserNoteMutation) ResetCreateTime ¶
func (m *UserNoteMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*UserNoteMutation) ResetEdge ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) ResetField ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) ResetLabel ¶
func (m *UserNoteMutation) ResetLabel()
ResetLabel resets all changes to the "label" field.
func (*UserNoteMutation) ResetMemo ¶
func (m *UserNoteMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*UserNoteMutation) ResetNoteItems ¶
func (m *UserNoteMutation) ResetNoteItems()
ResetNoteItems resets all changes to the "noteItems" edge.
func (*UserNoteMutation) ResetUpdateTime ¶
func (m *UserNoteMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*UserNoteMutation) ResetUser ¶
func (m *UserNoteMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*UserNoteMutation) SetCreateTime ¶
func (m *UserNoteMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*UserNoteMutation) SetField ¶
func (m *UserNoteMutation) 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 (*UserNoteMutation) SetLabel ¶
func (m *UserNoteMutation) SetLabel(s string)
SetLabel sets the "label" field.
func (*UserNoteMutation) SetMemo ¶
func (m *UserNoteMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*UserNoteMutation) SetOp ¶
func (m *UserNoteMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserNoteMutation) SetUpdateTime ¶
func (m *UserNoteMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*UserNoteMutation) SetUserID ¶
func (m *UserNoteMutation) SetUserID(id int)
SetUserID sets the "user" edge to the User entity by id.
func (UserNoteMutation) Tx ¶
func (m UserNoteMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserNoteMutation) Type ¶
func (m *UserNoteMutation) Type() string
Type returns the node type of this mutation (UserNote).
func (*UserNoteMutation) UpdateTime ¶
func (m *UserNoteMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*UserNoteMutation) UserCleared ¶
func (m *UserNoteMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*UserNoteMutation) UserID ¶
func (m *UserNoteMutation) UserID() (id int, exists bool)
UserID returns the "user" edge ID in the mutation.
func (*UserNoteMutation) UserIDs ¶
func (m *UserNoteMutation) UserIDs() (ids []int)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*UserNoteMutation) Where ¶
func (m *UserNoteMutation) Where(ps ...predicate.UserNote)
Where appends a list predicates to the UserNoteMutation builder.
func (*UserNoteMutation) WhereP ¶
func (m *UserNoteMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserNoteMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserNoteQuery ¶
type UserNoteQuery struct {
// contains filtered or unexported fields
}
UserNoteQuery is the builder for querying UserNote entities.
func (*UserNoteQuery) Aggregate ¶
func (unq *UserNoteQuery) Aggregate(fns ...AggregateFunc) *UserNoteSelect
Aggregate returns a UserNoteSelect configured with the given aggregations.
func (*UserNoteQuery) All ¶
func (unq *UserNoteQuery) All(ctx context.Context) ([]*UserNote, error)
All executes the query and returns a list of UserNotes.
func (*UserNoteQuery) AllX ¶
func (unq *UserNoteQuery) AllX(ctx context.Context) []*UserNote
AllX is like All, but panics if an error occurs.
func (*UserNoteQuery) Clone ¶
func (unq *UserNoteQuery) Clone() *UserNoteQuery
Clone returns a duplicate of the UserNoteQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserNoteQuery) Count ¶
func (unq *UserNoteQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UserNoteQuery) CountX ¶
func (unq *UserNoteQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UserNoteQuery) Exist ¶
func (unq *UserNoteQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UserNoteQuery) ExistX ¶
func (unq *UserNoteQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UserNoteQuery) First ¶
func (unq *UserNoteQuery) First(ctx context.Context) (*UserNote, error)
First returns the first UserNote entity from the query. Returns a *NotFoundError when no UserNote was found.
func (*UserNoteQuery) FirstID ¶
func (unq *UserNoteQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first UserNote ID from the query. Returns a *NotFoundError when no UserNote ID was found.
func (*UserNoteQuery) FirstIDX ¶
func (unq *UserNoteQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserNoteQuery) FirstX ¶
func (unq *UserNoteQuery) FirstX(ctx context.Context) *UserNote
FirstX is like First, but panics if an error occurs.
func (*UserNoteQuery) GroupBy ¶
func (unq *UserNoteQuery) GroupBy(field string, fields ...string) *UserNoteGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.UserNote.Query(). GroupBy(usernote.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserNoteQuery) IDs ¶
func (unq *UserNoteQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of UserNote IDs.
func (*UserNoteQuery) IDsX ¶
func (unq *UserNoteQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*UserNoteQuery) Limit ¶
func (unq *UserNoteQuery) Limit(limit int) *UserNoteQuery
Limit the number of records to be returned by this query.
func (*UserNoteQuery) Offset ¶
func (unq *UserNoteQuery) Offset(offset int) *UserNoteQuery
Offset to start from.
func (*UserNoteQuery) Only ¶
func (unq *UserNoteQuery) Only(ctx context.Context) (*UserNote, error)
Only returns a single UserNote entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserNote entity is found. Returns a *NotFoundError when no UserNote entities are found.
func (*UserNoteQuery) OnlyID ¶
func (unq *UserNoteQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only UserNote ID in the query. Returns a *NotSingularError when more than one UserNote ID is found. Returns a *NotFoundError when no entities are found.
func (*UserNoteQuery) OnlyIDX ¶
func (unq *UserNoteQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserNoteQuery) OnlyX ¶
func (unq *UserNoteQuery) OnlyX(ctx context.Context) *UserNote
OnlyX is like Only, but panics if an error occurs.
func (*UserNoteQuery) Order ¶
func (unq *UserNoteQuery) Order(o ...usernote.OrderOption) *UserNoteQuery
Order specifies how the records should be ordered.
func (*UserNoteQuery) QueryNoteItems ¶
func (unq *UserNoteQuery) QueryNoteItems() *UserNoteItemQuery
QueryNoteItems chains the current query on the "noteItems" edge.
func (*UserNoteQuery) QueryUser ¶
func (unq *UserNoteQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*UserNoteQuery) Select ¶
func (unq *UserNoteQuery) Select(fields ...string) *UserNoteSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.UserNote.Query(). Select(usernote.FieldCreateTime). Scan(ctx, &v)
func (*UserNoteQuery) Unique ¶
func (unq *UserNoteQuery) Unique(unique bool) *UserNoteQuery
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 (*UserNoteQuery) Where ¶
func (unq *UserNoteQuery) Where(ps ...predicate.UserNote) *UserNoteQuery
Where adds a new predicate for the UserNoteQuery builder.
func (*UserNoteQuery) WithNoteItems ¶
func (unq *UserNoteQuery) WithNoteItems(opts ...func(*UserNoteItemQuery)) *UserNoteQuery
WithNoteItems tells the query-builder to eager-load the nodes that are connected to the "noteItems" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserNoteQuery) WithUser ¶
func (unq *UserNoteQuery) WithUser(opts ...func(*UserQuery)) *UserNoteQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
type UserNoteSelect ¶
type UserNoteSelect struct { *UserNoteQuery // contains filtered or unexported fields }
UserNoteSelect is the builder for selecting fields of UserNote entities.
func (*UserNoteSelect) Aggregate ¶
func (uns *UserNoteSelect) Aggregate(fns ...AggregateFunc) *UserNoteSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserNoteSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserNoteSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserNoteSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserNoteSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserNoteSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserNoteSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserNoteSelect) Scan ¶
func (uns *UserNoteSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserNoteSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserNoteUpdate ¶
type UserNoteUpdate struct {
// contains filtered or unexported fields
}
UserNoteUpdate is the builder for updating UserNote entities.
func (*UserNoteUpdate) AddNoteItemIDs ¶
func (unu *UserNoteUpdate) AddNoteItemIDs(ids ...int) *UserNoteUpdate
AddNoteItemIDs adds the "noteItems" edge to the UserNoteItem entity by IDs.
func (*UserNoteUpdate) AddNoteItems ¶
func (unu *UserNoteUpdate) AddNoteItems(u ...*UserNoteItem) *UserNoteUpdate
AddNoteItems adds the "noteItems" edges to the UserNoteItem entity.
func (*UserNoteUpdate) ClearMemo ¶
func (unu *UserNoteUpdate) ClearMemo() *UserNoteUpdate
ClearMemo clears the value of the "memo" field.
func (*UserNoteUpdate) ClearNoteItems ¶
func (unu *UserNoteUpdate) ClearNoteItems() *UserNoteUpdate
ClearNoteItems clears all "noteItems" edges to the UserNoteItem entity.
func (*UserNoteUpdate) ClearUser ¶
func (unu *UserNoteUpdate) ClearUser() *UserNoteUpdate
ClearUser clears the "user" edge to the User entity.
func (*UserNoteUpdate) Exec ¶
func (unu *UserNoteUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteUpdate) ExecX ¶
func (unu *UserNoteUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteUpdate) Mutation ¶
func (unu *UserNoteUpdate) Mutation() *UserNoteMutation
Mutation returns the UserNoteMutation object of the builder.
func (*UserNoteUpdate) RemoveNoteItemIDs ¶
func (unu *UserNoteUpdate) RemoveNoteItemIDs(ids ...int) *UserNoteUpdate
RemoveNoteItemIDs removes the "noteItems" edge to UserNoteItem entities by IDs.
func (*UserNoteUpdate) RemoveNoteItems ¶
func (unu *UserNoteUpdate) RemoveNoteItems(u ...*UserNoteItem) *UserNoteUpdate
RemoveNoteItems removes "noteItems" edges to UserNoteItem entities.
func (*UserNoteUpdate) Save ¶
func (unu *UserNoteUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserNoteUpdate) SaveX ¶
func (unu *UserNoteUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserNoteUpdate) SetLabel ¶
func (unu *UserNoteUpdate) SetLabel(s string) *UserNoteUpdate
SetLabel sets the "label" field.
func (*UserNoteUpdate) SetMemo ¶
func (unu *UserNoteUpdate) SetMemo(s string) *UserNoteUpdate
SetMemo sets the "memo" field.
func (*UserNoteUpdate) SetNillableMemo ¶
func (unu *UserNoteUpdate) SetNillableMemo(s *string) *UserNoteUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*UserNoteUpdate) SetUpdateTime ¶
func (unu *UserNoteUpdate) SetUpdateTime(t time.Time) *UserNoteUpdate
SetUpdateTime sets the "update_time" field.
func (*UserNoteUpdate) SetUser ¶
func (unu *UserNoteUpdate) SetUser(u *User) *UserNoteUpdate
SetUser sets the "user" edge to the User entity.
func (*UserNoteUpdate) SetUserID ¶
func (unu *UserNoteUpdate) SetUserID(id int) *UserNoteUpdate
SetUserID sets the "user" edge to the User entity by ID.
func (*UserNoteUpdate) Where ¶
func (unu *UserNoteUpdate) Where(ps ...predicate.UserNote) *UserNoteUpdate
Where appends a list predicates to the UserNoteUpdate builder.
type UserNoteUpdateOne ¶
type UserNoteUpdateOne struct {
// contains filtered or unexported fields
}
UserNoteUpdateOne is the builder for updating a single UserNote entity.
func (*UserNoteUpdateOne) AddNoteItemIDs ¶
func (unuo *UserNoteUpdateOne) AddNoteItemIDs(ids ...int) *UserNoteUpdateOne
AddNoteItemIDs adds the "noteItems" edge to the UserNoteItem entity by IDs.
func (*UserNoteUpdateOne) AddNoteItems ¶
func (unuo *UserNoteUpdateOne) AddNoteItems(u ...*UserNoteItem) *UserNoteUpdateOne
AddNoteItems adds the "noteItems" edges to the UserNoteItem entity.
func (*UserNoteUpdateOne) ClearMemo ¶
func (unuo *UserNoteUpdateOne) ClearMemo() *UserNoteUpdateOne
ClearMemo clears the value of the "memo" field.
func (*UserNoteUpdateOne) ClearNoteItems ¶
func (unuo *UserNoteUpdateOne) ClearNoteItems() *UserNoteUpdateOne
ClearNoteItems clears all "noteItems" edges to the UserNoteItem entity.
func (*UserNoteUpdateOne) ClearUser ¶
func (unuo *UserNoteUpdateOne) ClearUser() *UserNoteUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*UserNoteUpdateOne) Exec ¶
func (unuo *UserNoteUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserNoteUpdateOne) ExecX ¶
func (unuo *UserNoteUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteUpdateOne) Mutation ¶
func (unuo *UserNoteUpdateOne) Mutation() *UserNoteMutation
Mutation returns the UserNoteMutation object of the builder.
func (*UserNoteUpdateOne) RemoveNoteItemIDs ¶
func (unuo *UserNoteUpdateOne) RemoveNoteItemIDs(ids ...int) *UserNoteUpdateOne
RemoveNoteItemIDs removes the "noteItems" edge to UserNoteItem entities by IDs.
func (*UserNoteUpdateOne) RemoveNoteItems ¶
func (unuo *UserNoteUpdateOne) RemoveNoteItems(u ...*UserNoteItem) *UserNoteUpdateOne
RemoveNoteItems removes "noteItems" edges to UserNoteItem entities.
func (*UserNoteUpdateOne) Save ¶
func (unuo *UserNoteUpdateOne) Save(ctx context.Context) (*UserNote, error)
Save executes the query and returns the updated UserNote entity.
func (*UserNoteUpdateOne) SaveX ¶
func (unuo *UserNoteUpdateOne) SaveX(ctx context.Context) *UserNote
SaveX is like Save, but panics if an error occurs.
func (*UserNoteUpdateOne) Select ¶
func (unuo *UserNoteUpdateOne) Select(field string, fields ...string) *UserNoteUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserNoteUpdateOne) SetLabel ¶
func (unuo *UserNoteUpdateOne) SetLabel(s string) *UserNoteUpdateOne
SetLabel sets the "label" field.
func (*UserNoteUpdateOne) SetMemo ¶
func (unuo *UserNoteUpdateOne) SetMemo(s string) *UserNoteUpdateOne
SetMemo sets the "memo" field.
func (*UserNoteUpdateOne) SetNillableMemo ¶
func (unuo *UserNoteUpdateOne) SetNillableMemo(s *string) *UserNoteUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*UserNoteUpdateOne) SetUpdateTime ¶
func (unuo *UserNoteUpdateOne) SetUpdateTime(t time.Time) *UserNoteUpdateOne
SetUpdateTime sets the "update_time" field.
func (*UserNoteUpdateOne) SetUser ¶
func (unuo *UserNoteUpdateOne) SetUser(u *User) *UserNoteUpdateOne
SetUser sets the "user" edge to the User entity.
func (*UserNoteUpdateOne) SetUserID ¶
func (unuo *UserNoteUpdateOne) SetUserID(id int) *UserNoteUpdateOne
SetUserID sets the "user" edge to the User entity by ID.
func (*UserNoteUpdateOne) Where ¶
func (unuo *UserNoteUpdateOne) Where(ps ...predicate.UserNote) *UserNoteUpdateOne
Where appends a list predicates to the UserNoteUpdate builder.
type UserNoteUpsert ¶
UserNoteUpsert is the "OnConflict" setter.
func (*UserNoteUpsert) ClearMemo ¶
func (u *UserNoteUpsert) ClearMemo() *UserNoteUpsert
ClearMemo clears the value of the "memo" field.
func (*UserNoteUpsert) SetLabel ¶
func (u *UserNoteUpsert) SetLabel(v string) *UserNoteUpsert
SetLabel sets the "label" field.
func (*UserNoteUpsert) SetMemo ¶
func (u *UserNoteUpsert) SetMemo(v string) *UserNoteUpsert
SetMemo sets the "memo" field.
func (*UserNoteUpsert) SetUpdateTime ¶
func (u *UserNoteUpsert) SetUpdateTime(v time.Time) *UserNoteUpsert
SetUpdateTime sets the "update_time" field.
func (*UserNoteUpsert) UpdateLabel ¶
func (u *UserNoteUpsert) UpdateLabel() *UserNoteUpsert
UpdateLabel sets the "label" field to the value that was provided on create.
func (*UserNoteUpsert) UpdateMemo ¶
func (u *UserNoteUpsert) UpdateMemo() *UserNoteUpsert
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*UserNoteUpsert) UpdateUpdateTime ¶
func (u *UserNoteUpsert) UpdateUpdateTime() *UserNoteUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserNoteUpsertBulk ¶
type UserNoteUpsertBulk struct {
// contains filtered or unexported fields
}
UserNoteUpsertBulk is the builder for "upsert"-ing a bulk of UserNote nodes.
func (*UserNoteUpsertBulk) ClearMemo ¶
func (u *UserNoteUpsertBulk) ClearMemo() *UserNoteUpsertBulk
ClearMemo clears the value of the "memo" field.
func (*UserNoteUpsertBulk) DoNothing ¶
func (u *UserNoteUpsertBulk) DoNothing() *UserNoteUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserNoteUpsertBulk) Exec ¶
func (u *UserNoteUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteUpsertBulk) ExecX ¶
func (u *UserNoteUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteUpsertBulk) Ignore ¶
func (u *UserNoteUpsertBulk) Ignore() *UserNoteUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserNote.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserNoteUpsertBulk) SetLabel ¶
func (u *UserNoteUpsertBulk) SetLabel(v string) *UserNoteUpsertBulk
SetLabel sets the "label" field.
func (*UserNoteUpsertBulk) SetMemo ¶
func (u *UserNoteUpsertBulk) SetMemo(v string) *UserNoteUpsertBulk
SetMemo sets the "memo" field.
func (*UserNoteUpsertBulk) SetUpdateTime ¶
func (u *UserNoteUpsertBulk) SetUpdateTime(v time.Time) *UserNoteUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*UserNoteUpsertBulk) Update ¶
func (u *UserNoteUpsertBulk) Update(set func(*UserNoteUpsert)) *UserNoteUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserNoteCreateBulk.OnConflict documentation for more info.
func (*UserNoteUpsertBulk) UpdateLabel ¶
func (u *UserNoteUpsertBulk) UpdateLabel() *UserNoteUpsertBulk
UpdateLabel sets the "label" field to the value that was provided on create.
func (*UserNoteUpsertBulk) UpdateMemo ¶
func (u *UserNoteUpsertBulk) UpdateMemo() *UserNoteUpsertBulk
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*UserNoteUpsertBulk) UpdateNewValues ¶
func (u *UserNoteUpsertBulk) UpdateNewValues() *UserNoteUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserNote.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserNoteUpsertBulk) UpdateUpdateTime ¶
func (u *UserNoteUpsertBulk) UpdateUpdateTime() *UserNoteUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserNoteUpsertOne ¶
type UserNoteUpsertOne struct {
// contains filtered or unexported fields
}
UserNoteUpsertOne is the builder for "upsert"-ing
one UserNote node.
func (*UserNoteUpsertOne) ClearMemo ¶
func (u *UserNoteUpsertOne) ClearMemo() *UserNoteUpsertOne
ClearMemo clears the value of the "memo" field.
func (*UserNoteUpsertOne) DoNothing ¶
func (u *UserNoteUpsertOne) DoNothing() *UserNoteUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserNoteUpsertOne) Exec ¶
func (u *UserNoteUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserNoteUpsertOne) ExecX ¶
func (u *UserNoteUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserNoteUpsertOne) ID ¶
func (u *UserNoteUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserNoteUpsertOne) IDX ¶
func (u *UserNoteUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*UserNoteUpsertOne) Ignore ¶
func (u *UserNoteUpsertOne) Ignore() *UserNoteUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserNote.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserNoteUpsertOne) SetLabel ¶
func (u *UserNoteUpsertOne) SetLabel(v string) *UserNoteUpsertOne
SetLabel sets the "label" field.
func (*UserNoteUpsertOne) SetMemo ¶
func (u *UserNoteUpsertOne) SetMemo(v string) *UserNoteUpsertOne
SetMemo sets the "memo" field.
func (*UserNoteUpsertOne) SetUpdateTime ¶
func (u *UserNoteUpsertOne) SetUpdateTime(v time.Time) *UserNoteUpsertOne
SetUpdateTime sets the "update_time" field.
func (*UserNoteUpsertOne) Update ¶
func (u *UserNoteUpsertOne) Update(set func(*UserNoteUpsert)) *UserNoteUpsertOne
Update allows overriding fields `UPDATE` values. See the UserNoteCreate.OnConflict documentation for more info.
func (*UserNoteUpsertOne) UpdateLabel ¶
func (u *UserNoteUpsertOne) UpdateLabel() *UserNoteUpsertOne
UpdateLabel sets the "label" field to the value that was provided on create.
func (*UserNoteUpsertOne) UpdateMemo ¶
func (u *UserNoteUpsertOne) UpdateMemo() *UserNoteUpsertOne
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*UserNoteUpsertOne) UpdateNewValues ¶
func (u *UserNoteUpsertOne) UpdateNewValues() *UserNoteUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserNote.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserNoteUpsertOne) UpdateUpdateTime ¶
func (u *UserNoteUpsertOne) UpdateUpdateTime() *UserNoteUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserQualification ¶
type UserQualification struct { // ID of the ent. ID int `json:"id,omitempty"` // CreateTime holds the value of the "create_time" field. CreateTime time.Time `json:"create_time,omitempty"` // UpdateTime holds the value of the "update_time" field. UpdateTime time.Time `json:"update_time,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Organization holds the value of the "organization" field. Organization *string `json:"organization,omitempty"` // URL holds the value of the "url" field. URL *string `json:"url,omitempty"` // GotDate holds the value of the "got_date" field. GotDate *string `json:"got_date,omitempty"` // Memo holds the value of the "memo" field. Memo *string `json:"memo,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the UserQualificationQuery when eager-loading is set. Edges UserQualificationEdges `json:"edges"` // contains filtered or unexported fields }
UserQualification is the model entity for the UserQualification schema.
func (*UserQualification) QueryUser ¶
func (uq *UserQualification) QueryUser() *UserQuery
QueryUser queries the "user" edge of the UserQualification entity.
func (*UserQualification) String ¶
func (uq *UserQualification) String() string
String implements the fmt.Stringer.
func (*UserQualification) Unwrap ¶
func (uq *UserQualification) Unwrap() *UserQualification
Unwrap unwraps the UserQualification 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 (*UserQualification) Update ¶
func (uq *UserQualification) Update() *UserQualificationUpdateOne
Update returns a builder for updating this UserQualification. Note that you need to call UserQualification.Unwrap() before calling this method if this UserQualification was returned from a transaction, and the transaction was committed or rolled back.
type UserQualificationClient ¶
type UserQualificationClient struct {
// contains filtered or unexported fields
}
UserQualificationClient is a client for the UserQualification schema.
func NewUserQualificationClient ¶
func NewUserQualificationClient(c config) *UserQualificationClient
NewUserQualificationClient returns a client for the UserQualification from the given config.
func (*UserQualificationClient) Create ¶
func (c *UserQualificationClient) Create() *UserQualificationCreate
Create returns a builder for creating a UserQualification entity.
func (*UserQualificationClient) CreateBulk ¶
func (c *UserQualificationClient) CreateBulk(builders ...*UserQualificationCreate) *UserQualificationCreateBulk
CreateBulk returns a builder for creating a bulk of UserQualification entities.
func (*UserQualificationClient) Delete ¶
func (c *UserQualificationClient) Delete() *UserQualificationDelete
Delete returns a delete builder for UserQualification.
func (*UserQualificationClient) DeleteOne ¶
func (c *UserQualificationClient) DeleteOne(uq *UserQualification) *UserQualificationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*UserQualificationClient) DeleteOneID ¶
func (c *UserQualificationClient) DeleteOneID(id int) *UserQualificationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*UserQualificationClient) Get ¶
func (c *UserQualificationClient) Get(ctx context.Context, id int) (*UserQualification, error)
Get returns a UserQualification entity by its id.
func (*UserQualificationClient) GetX ¶
func (c *UserQualificationClient) GetX(ctx context.Context, id int) *UserQualification
GetX is like Get, but panics if an error occurs.
func (*UserQualificationClient) Hooks ¶
func (c *UserQualificationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*UserQualificationClient) Intercept ¶
func (c *UserQualificationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `userqualification.Intercept(f(g(h())))`.
func (*UserQualificationClient) Interceptors ¶
func (c *UserQualificationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*UserQualificationClient) Query ¶
func (c *UserQualificationClient) Query() *UserQualificationQuery
Query returns a query builder for UserQualification.
func (*UserQualificationClient) QueryUser ¶
func (c *UserQualificationClient) QueryUser(uq *UserQualification) *UserQuery
QueryUser queries the user edge of a UserQualification.
func (*UserQualificationClient) Update ¶
func (c *UserQualificationClient) Update() *UserQualificationUpdate
Update returns an update builder for UserQualification.
func (*UserQualificationClient) UpdateOne ¶
func (c *UserQualificationClient) UpdateOne(uq *UserQualification) *UserQualificationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*UserQualificationClient) UpdateOneID ¶
func (c *UserQualificationClient) UpdateOneID(id int) *UserQualificationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*UserQualificationClient) Use ¶
func (c *UserQualificationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `userqualification.Hooks(f(g(h())))`.
type UserQualificationCreate ¶
type UserQualificationCreate struct {
// contains filtered or unexported fields
}
UserQualificationCreate is the builder for creating a UserQualification entity.
func (*UserQualificationCreate) Exec ¶
func (uqc *UserQualificationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserQualificationCreate) ExecX ¶
func (uqc *UserQualificationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserQualificationCreate) Mutation ¶
func (uqc *UserQualificationCreate) Mutation() *UserQualificationMutation
Mutation returns the UserQualificationMutation object of the builder.
func (*UserQualificationCreate) OnConflict ¶
func (uqc *UserQualificationCreate) OnConflict(opts ...sql.ConflictOption) *UserQualificationUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserQualification.Create(). SetCreateTime(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.UserQualificationUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserQualificationCreate) OnConflictColumns ¶
func (uqc *UserQualificationCreate) OnConflictColumns(columns ...string) *UserQualificationUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserQualification.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserQualificationCreate) Save ¶
func (uqc *UserQualificationCreate) Save(ctx context.Context) (*UserQualification, error)
Save creates the UserQualification in the database.
func (*UserQualificationCreate) SaveX ¶
func (uqc *UserQualificationCreate) SaveX(ctx context.Context) *UserQualification
SaveX calls Save and panics if Save returns an error.
func (*UserQualificationCreate) SetCreateTime ¶
func (uqc *UserQualificationCreate) SetCreateTime(t time.Time) *UserQualificationCreate
SetCreateTime sets the "create_time" field.
func (*UserQualificationCreate) SetGotDate ¶
func (uqc *UserQualificationCreate) SetGotDate(s string) *UserQualificationCreate
SetGotDate sets the "got_date" field.
func (*UserQualificationCreate) SetMemo ¶
func (uqc *UserQualificationCreate) SetMemo(s string) *UserQualificationCreate
SetMemo sets the "memo" field.
func (*UserQualificationCreate) SetName ¶
func (uqc *UserQualificationCreate) SetName(s string) *UserQualificationCreate
SetName sets the "name" field.
func (*UserQualificationCreate) SetNillableCreateTime ¶
func (uqc *UserQualificationCreate) SetNillableCreateTime(t *time.Time) *UserQualificationCreate
SetNillableCreateTime sets the "create_time" field if the given value is not nil.
func (*UserQualificationCreate) SetNillableGotDate ¶
func (uqc *UserQualificationCreate) SetNillableGotDate(s *string) *UserQualificationCreate
SetNillableGotDate sets the "got_date" field if the given value is not nil.
func (*UserQualificationCreate) SetNillableMemo ¶
func (uqc *UserQualificationCreate) SetNillableMemo(s *string) *UserQualificationCreate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*UserQualificationCreate) SetNillableOrganization ¶
func (uqc *UserQualificationCreate) SetNillableOrganization(s *string) *UserQualificationCreate
SetNillableOrganization sets the "organization" field if the given value is not nil.
func (*UserQualificationCreate) SetNillableURL ¶
func (uqc *UserQualificationCreate) SetNillableURL(s *string) *UserQualificationCreate
SetNillableURL sets the "url" field if the given value is not nil.
func (*UserQualificationCreate) SetNillableUpdateTime ¶
func (uqc *UserQualificationCreate) SetNillableUpdateTime(t *time.Time) *UserQualificationCreate
SetNillableUpdateTime sets the "update_time" field if the given value is not nil.
func (*UserQualificationCreate) SetOrganization ¶
func (uqc *UserQualificationCreate) SetOrganization(s string) *UserQualificationCreate
SetOrganization sets the "organization" field.
func (*UserQualificationCreate) SetURL ¶
func (uqc *UserQualificationCreate) SetURL(s string) *UserQualificationCreate
SetURL sets the "url" field.
func (*UserQualificationCreate) SetUpdateTime ¶
func (uqc *UserQualificationCreate) SetUpdateTime(t time.Time) *UserQualificationCreate
SetUpdateTime sets the "update_time" field.
func (*UserQualificationCreate) SetUser ¶
func (uqc *UserQualificationCreate) SetUser(u *User) *UserQualificationCreate
SetUser sets the "user" edge to the User entity.
func (*UserQualificationCreate) SetUserID ¶
func (uqc *UserQualificationCreate) SetUserID(id int) *UserQualificationCreate
SetUserID sets the "user" edge to the User entity by ID.
type UserQualificationCreateBulk ¶
type UserQualificationCreateBulk struct {
// contains filtered or unexported fields
}
UserQualificationCreateBulk is the builder for creating many UserQualification entities in bulk.
func (*UserQualificationCreateBulk) Exec ¶
func (uqcb *UserQualificationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserQualificationCreateBulk) ExecX ¶
func (uqcb *UserQualificationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserQualificationCreateBulk) OnConflict ¶
func (uqcb *UserQualificationCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserQualificationUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.UserQualification.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.UserQualificationUpsert) { SetCreateTime(v+v). }). Exec(ctx)
func (*UserQualificationCreateBulk) OnConflictColumns ¶
func (uqcb *UserQualificationCreateBulk) OnConflictColumns(columns ...string) *UserQualificationUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.UserQualification.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*UserQualificationCreateBulk) Save ¶
func (uqcb *UserQualificationCreateBulk) Save(ctx context.Context) ([]*UserQualification, error)
Save creates the UserQualification entities in the database.
func (*UserQualificationCreateBulk) SaveX ¶
func (uqcb *UserQualificationCreateBulk) SaveX(ctx context.Context) []*UserQualification
SaveX is like Save, but panics if an error occurs.
type UserQualificationDelete ¶
type UserQualificationDelete struct {
// contains filtered or unexported fields
}
UserQualificationDelete is the builder for deleting a UserQualification entity.
func (*UserQualificationDelete) Exec ¶
func (uqd *UserQualificationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*UserQualificationDelete) ExecX ¶
func (uqd *UserQualificationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*UserQualificationDelete) Where ¶
func (uqd *UserQualificationDelete) Where(ps ...predicate.UserQualification) *UserQualificationDelete
Where appends a list predicates to the UserQualificationDelete builder.
type UserQualificationDeleteOne ¶
type UserQualificationDeleteOne struct {
// contains filtered or unexported fields
}
UserQualificationDeleteOne is the builder for deleting a single UserQualification entity.
func (*UserQualificationDeleteOne) Exec ¶
func (uqdo *UserQualificationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*UserQualificationDeleteOne) ExecX ¶
func (uqdo *UserQualificationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserQualificationDeleteOne) Where ¶
func (uqdo *UserQualificationDeleteOne) Where(ps ...predicate.UserQualification) *UserQualificationDeleteOne
Where appends a list predicates to the UserQualificationDelete builder.
type UserQualificationEdges ¶
type UserQualificationEdges struct { // User holds the value of the user edge. User *User `json:"user,omitempty"` // contains filtered or unexported fields }
UserQualificationEdges holds the relations/edges for other nodes in the graph.
func (UserQualificationEdges) UserOrErr ¶
func (e UserQualificationEdges) UserOrErr() (*User, error)
UserOrErr returns the User value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type UserQualificationGroupBy ¶
type UserQualificationGroupBy struct {
// contains filtered or unexported fields
}
UserQualificationGroupBy is the group-by builder for UserQualification entities.
func (*UserQualificationGroupBy) Aggregate ¶
func (uqgb *UserQualificationGroupBy) Aggregate(fns ...AggregateFunc) *UserQualificationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*UserQualificationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserQualificationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserQualificationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserQualificationGroupBy) Float64X ¶
Float64X is like Float64, but panics if an error occurs.
func (*UserQualificationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserQualificationGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*UserQualificationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserQualificationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserQualificationGroupBy) Scan ¶
func (uqgb *UserQualificationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserQualificationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserQualificationMutation ¶
type UserQualificationMutation struct {
// contains filtered or unexported fields
}
UserQualificationMutation represents an operation that mutates the UserQualification nodes in the graph.
func (*UserQualificationMutation) AddField ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) AddedEdges ¶
func (m *UserQualificationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*UserQualificationMutation) AddedField ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) AddedFields ¶
func (m *UserQualificationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*UserQualificationMutation) AddedIDs ¶
func (m *UserQualificationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*UserQualificationMutation) ClearEdge ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) ClearField ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) ClearGotDate ¶
func (m *UserQualificationMutation) ClearGotDate()
ClearGotDate clears the value of the "got_date" field.
func (*UserQualificationMutation) ClearMemo ¶
func (m *UserQualificationMutation) ClearMemo()
ClearMemo clears the value of the "memo" field.
func (*UserQualificationMutation) ClearOrganization ¶
func (m *UserQualificationMutation) ClearOrganization()
ClearOrganization clears the value of the "organization" field.
func (*UserQualificationMutation) ClearURL ¶
func (m *UserQualificationMutation) ClearURL()
ClearURL clears the value of the "url" field.
func (*UserQualificationMutation) ClearUser ¶
func (m *UserQualificationMutation) ClearUser()
ClearUser clears the "user" edge to the User entity.
func (*UserQualificationMutation) ClearedEdges ¶
func (m *UserQualificationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*UserQualificationMutation) ClearedFields ¶
func (m *UserQualificationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (UserQualificationMutation) Client ¶
func (m UserQualificationMutation) 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 (*UserQualificationMutation) CreateTime ¶
func (m *UserQualificationMutation) CreateTime() (r time.Time, exists bool)
CreateTime returns the value of the "create_time" field in the mutation.
func (*UserQualificationMutation) EdgeCleared ¶
func (m *UserQualificationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*UserQualificationMutation) Field ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) FieldCleared ¶
func (m *UserQualificationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*UserQualificationMutation) Fields ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) GotDate ¶
func (m *UserQualificationMutation) GotDate() (r string, exists bool)
GotDate returns the value of the "got_date" field in the mutation.
func (*UserQualificationMutation) GotDateCleared ¶
func (m *UserQualificationMutation) GotDateCleared() bool
GotDateCleared returns if the "got_date" field was cleared in this mutation.
func (*UserQualificationMutation) ID ¶
func (m *UserQualificationMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*UserQualificationMutation) IDs ¶
func (m *UserQualificationMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*UserQualificationMutation) Memo ¶
func (m *UserQualificationMutation) Memo() (r string, exists bool)
Memo returns the value of the "memo" field in the mutation.
func (*UserQualificationMutation) MemoCleared ¶
func (m *UserQualificationMutation) MemoCleared() bool
MemoCleared returns if the "memo" field was cleared in this mutation.
func (*UserQualificationMutation) Name ¶
func (m *UserQualificationMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*UserQualificationMutation) OldCreateTime ¶
OldCreateTime returns the old "create_time" field's value of the UserQualification entity. If the UserQualification object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserQualificationMutation) 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 (*UserQualificationMutation) OldGotDate ¶
func (m *UserQualificationMutation) OldGotDate(ctx context.Context) (v *string, err error)
OldGotDate returns the old "got_date" field's value of the UserQualification entity. If the UserQualification object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserQualificationMutation) OldMemo ¶
func (m *UserQualificationMutation) OldMemo(ctx context.Context) (v *string, err error)
OldMemo returns the old "memo" field's value of the UserQualification entity. If the UserQualification object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserQualificationMutation) OldName ¶
func (m *UserQualificationMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the UserQualification entity. If the UserQualification object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserQualificationMutation) OldOrganization ¶
func (m *UserQualificationMutation) OldOrganization(ctx context.Context) (v *string, err error)
OldOrganization returns the old "organization" field's value of the UserQualification entity. If the UserQualification object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserQualificationMutation) OldURL ¶
func (m *UserQualificationMutation) OldURL(ctx context.Context) (v *string, err error)
OldURL returns the old "url" field's value of the UserQualification entity. If the UserQualification object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserQualificationMutation) OldUpdateTime ¶
OldUpdateTime returns the old "update_time" field's value of the UserQualification entity. If the UserQualification object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*UserQualificationMutation) Op ¶
func (m *UserQualificationMutation) Op() Op
Op returns the operation name.
func (*UserQualificationMutation) Organization ¶
func (m *UserQualificationMutation) Organization() (r string, exists bool)
Organization returns the value of the "organization" field in the mutation.
func (*UserQualificationMutation) OrganizationCleared ¶
func (m *UserQualificationMutation) OrganizationCleared() bool
OrganizationCleared returns if the "organization" field was cleared in this mutation.
func (*UserQualificationMutation) RemovedEdges ¶
func (m *UserQualificationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*UserQualificationMutation) RemovedIDs ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) ResetCreateTime ¶
func (m *UserQualificationMutation) ResetCreateTime()
ResetCreateTime resets all changes to the "create_time" field.
func (*UserQualificationMutation) ResetEdge ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) ResetField ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) ResetGotDate ¶
func (m *UserQualificationMutation) ResetGotDate()
ResetGotDate resets all changes to the "got_date" field.
func (*UserQualificationMutation) ResetMemo ¶
func (m *UserQualificationMutation) ResetMemo()
ResetMemo resets all changes to the "memo" field.
func (*UserQualificationMutation) ResetName ¶
func (m *UserQualificationMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*UserQualificationMutation) ResetOrganization ¶
func (m *UserQualificationMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" field.
func (*UserQualificationMutation) ResetURL ¶
func (m *UserQualificationMutation) ResetURL()
ResetURL resets all changes to the "url" field.
func (*UserQualificationMutation) ResetUpdateTime ¶
func (m *UserQualificationMutation) ResetUpdateTime()
ResetUpdateTime resets all changes to the "update_time" field.
func (*UserQualificationMutation) ResetUser ¶
func (m *UserQualificationMutation) ResetUser()
ResetUser resets all changes to the "user" edge.
func (*UserQualificationMutation) SetCreateTime ¶
func (m *UserQualificationMutation) SetCreateTime(t time.Time)
SetCreateTime sets the "create_time" field.
func (*UserQualificationMutation) SetField ¶
func (m *UserQualificationMutation) 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 (*UserQualificationMutation) SetGotDate ¶
func (m *UserQualificationMutation) SetGotDate(s string)
SetGotDate sets the "got_date" field.
func (*UserQualificationMutation) SetMemo ¶
func (m *UserQualificationMutation) SetMemo(s string)
SetMemo sets the "memo" field.
func (*UserQualificationMutation) SetName ¶
func (m *UserQualificationMutation) SetName(s string)
SetName sets the "name" field.
func (*UserQualificationMutation) SetOp ¶
func (m *UserQualificationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*UserQualificationMutation) SetOrganization ¶
func (m *UserQualificationMutation) SetOrganization(s string)
SetOrganization sets the "organization" field.
func (*UserQualificationMutation) SetURL ¶
func (m *UserQualificationMutation) SetURL(s string)
SetURL sets the "url" field.
func (*UserQualificationMutation) SetUpdateTime ¶
func (m *UserQualificationMutation) SetUpdateTime(t time.Time)
SetUpdateTime sets the "update_time" field.
func (*UserQualificationMutation) SetUserID ¶
func (m *UserQualificationMutation) SetUserID(id int)
SetUserID sets the "user" edge to the User entity by id.
func (UserQualificationMutation) Tx ¶
func (m UserQualificationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*UserQualificationMutation) Type ¶
func (m *UserQualificationMutation) Type() string
Type returns the node type of this mutation (UserQualification).
func (*UserQualificationMutation) URL ¶
func (m *UserQualificationMutation) URL() (r string, exists bool)
URL returns the value of the "url" field in the mutation.
func (*UserQualificationMutation) URLCleared ¶
func (m *UserQualificationMutation) URLCleared() bool
URLCleared returns if the "url" field was cleared in this mutation.
func (*UserQualificationMutation) UpdateTime ¶
func (m *UserQualificationMutation) UpdateTime() (r time.Time, exists bool)
UpdateTime returns the value of the "update_time" field in the mutation.
func (*UserQualificationMutation) UserCleared ¶
func (m *UserQualificationMutation) UserCleared() bool
UserCleared reports if the "user" edge to the User entity was cleared.
func (*UserQualificationMutation) UserID ¶
func (m *UserQualificationMutation) UserID() (id int, exists bool)
UserID returns the "user" edge ID in the mutation.
func (*UserQualificationMutation) UserIDs ¶
func (m *UserQualificationMutation) UserIDs() (ids []int)
UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.
func (*UserQualificationMutation) Where ¶
func (m *UserQualificationMutation) Where(ps ...predicate.UserQualification)
Where appends a list predicates to the UserQualificationMutation builder.
func (*UserQualificationMutation) WhereP ¶
func (m *UserQualificationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the UserQualificationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type UserQualificationQuery ¶
type UserQualificationQuery struct {
// contains filtered or unexported fields
}
UserQualificationQuery is the builder for querying UserQualification entities.
func (*UserQualificationQuery) Aggregate ¶
func (uqq *UserQualificationQuery) Aggregate(fns ...AggregateFunc) *UserQualificationSelect
Aggregate returns a UserQualificationSelect configured with the given aggregations.
func (*UserQualificationQuery) All ¶
func (uqq *UserQualificationQuery) All(ctx context.Context) ([]*UserQualification, error)
All executes the query and returns a list of UserQualifications.
func (*UserQualificationQuery) AllX ¶
func (uqq *UserQualificationQuery) AllX(ctx context.Context) []*UserQualification
AllX is like All, but panics if an error occurs.
func (*UserQualificationQuery) Clone ¶
func (uqq *UserQualificationQuery) Clone() *UserQualificationQuery
Clone returns a duplicate of the UserQualificationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserQualificationQuery) Count ¶
func (uqq *UserQualificationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*UserQualificationQuery) CountX ¶
func (uqq *UserQualificationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*UserQualificationQuery) Exist ¶
func (uqq *UserQualificationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*UserQualificationQuery) ExistX ¶
func (uqq *UserQualificationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*UserQualificationQuery) First ¶
func (uqq *UserQualificationQuery) First(ctx context.Context) (*UserQualification, error)
First returns the first UserQualification entity from the query. Returns a *NotFoundError when no UserQualification was found.
func (*UserQualificationQuery) FirstID ¶
func (uqq *UserQualificationQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first UserQualification ID from the query. Returns a *NotFoundError when no UserQualification ID was found.
func (*UserQualificationQuery) FirstIDX ¶
func (uqq *UserQualificationQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*UserQualificationQuery) FirstX ¶
func (uqq *UserQualificationQuery) FirstX(ctx context.Context) *UserQualification
FirstX is like First, but panics if an error occurs.
func (*UserQualificationQuery) GroupBy ¶
func (uqq *UserQualificationQuery) GroupBy(field string, fields ...string) *UserQualificationGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.UserQualification.Query(). GroupBy(userqualification.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserQualificationQuery) IDs ¶
func (uqq *UserQualificationQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of UserQualification IDs.
func (*UserQualificationQuery) IDsX ¶
func (uqq *UserQualificationQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*UserQualificationQuery) Limit ¶
func (uqq *UserQualificationQuery) Limit(limit int) *UserQualificationQuery
Limit the number of records to be returned by this query.
func (*UserQualificationQuery) Offset ¶
func (uqq *UserQualificationQuery) Offset(offset int) *UserQualificationQuery
Offset to start from.
func (*UserQualificationQuery) Only ¶
func (uqq *UserQualificationQuery) Only(ctx context.Context) (*UserQualification, error)
Only returns a single UserQualification entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one UserQualification entity is found. Returns a *NotFoundError when no UserQualification entities are found.
func (*UserQualificationQuery) OnlyID ¶
func (uqq *UserQualificationQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only UserQualification ID in the query. Returns a *NotSingularError when more than one UserQualification ID is found. Returns a *NotFoundError when no entities are found.
func (*UserQualificationQuery) OnlyIDX ¶
func (uqq *UserQualificationQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*UserQualificationQuery) OnlyX ¶
func (uqq *UserQualificationQuery) OnlyX(ctx context.Context) *UserQualification
OnlyX is like Only, but panics if an error occurs.
func (*UserQualificationQuery) Order ¶
func (uqq *UserQualificationQuery) Order(o ...userqualification.OrderOption) *UserQualificationQuery
Order specifies how the records should be ordered.
func (*UserQualificationQuery) QueryUser ¶
func (uqq *UserQualificationQuery) QueryUser() *UserQuery
QueryUser chains the current query on the "user" edge.
func (*UserQualificationQuery) Select ¶
func (uqq *UserQualificationQuery) Select(fields ...string) *UserQualificationSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.UserQualification.Query(). Select(userqualification.FieldCreateTime). Scan(ctx, &v)
func (*UserQualificationQuery) Unique ¶
func (uqq *UserQualificationQuery) Unique(unique bool) *UserQualificationQuery
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 (*UserQualificationQuery) Where ¶
func (uqq *UserQualificationQuery) Where(ps ...predicate.UserQualification) *UserQualificationQuery
Where adds a new predicate for the UserQualificationQuery builder.
func (*UserQualificationQuery) WithUser ¶
func (uqq *UserQualificationQuery) WithUser(opts ...func(*UserQuery)) *UserQualificationQuery
WithUser tells the query-builder to eager-load the nodes that are connected to the "user" edge. The optional arguments are used to configure the query builder of the edge.
type UserQualificationSelect ¶
type UserQualificationSelect struct { *UserQualificationQuery // contains filtered or unexported fields }
UserQualificationSelect is the builder for selecting fields of UserQualification entities.
func (*UserQualificationSelect) Aggregate ¶
func (uqs *UserQualificationSelect) Aggregate(fns ...AggregateFunc) *UserQualificationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserQualificationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserQualificationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserQualificationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserQualificationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserQualificationSelect) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*UserQualificationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserQualificationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserQualificationSelect) Scan ¶
func (uqs *UserQualificationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserQualificationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserQualificationUpdate ¶
type UserQualificationUpdate struct {
// contains filtered or unexported fields
}
UserQualificationUpdate is the builder for updating UserQualification entities.
func (*UserQualificationUpdate) ClearGotDate ¶
func (uqu *UserQualificationUpdate) ClearGotDate() *UserQualificationUpdate
ClearGotDate clears the value of the "got_date" field.
func (*UserQualificationUpdate) ClearMemo ¶
func (uqu *UserQualificationUpdate) ClearMemo() *UserQualificationUpdate
ClearMemo clears the value of the "memo" field.
func (*UserQualificationUpdate) ClearOrganization ¶
func (uqu *UserQualificationUpdate) ClearOrganization() *UserQualificationUpdate
ClearOrganization clears the value of the "organization" field.
func (*UserQualificationUpdate) ClearURL ¶
func (uqu *UserQualificationUpdate) ClearURL() *UserQualificationUpdate
ClearURL clears the value of the "url" field.
func (*UserQualificationUpdate) ClearUser ¶
func (uqu *UserQualificationUpdate) ClearUser() *UserQualificationUpdate
ClearUser clears the "user" edge to the User entity.
func (*UserQualificationUpdate) Exec ¶
func (uqu *UserQualificationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserQualificationUpdate) ExecX ¶
func (uqu *UserQualificationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserQualificationUpdate) Mutation ¶
func (uqu *UserQualificationUpdate) Mutation() *UserQualificationMutation
Mutation returns the UserQualificationMutation object of the builder.
func (*UserQualificationUpdate) Save ¶
func (uqu *UserQualificationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserQualificationUpdate) SaveX ¶
func (uqu *UserQualificationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserQualificationUpdate) SetGotDate ¶
func (uqu *UserQualificationUpdate) SetGotDate(s string) *UserQualificationUpdate
SetGotDate sets the "got_date" field.
func (*UserQualificationUpdate) SetMemo ¶
func (uqu *UserQualificationUpdate) SetMemo(s string) *UserQualificationUpdate
SetMemo sets the "memo" field.
func (*UserQualificationUpdate) SetName ¶
func (uqu *UserQualificationUpdate) SetName(s string) *UserQualificationUpdate
SetName sets the "name" field.
func (*UserQualificationUpdate) SetNillableGotDate ¶
func (uqu *UserQualificationUpdate) SetNillableGotDate(s *string) *UserQualificationUpdate
SetNillableGotDate sets the "got_date" field if the given value is not nil.
func (*UserQualificationUpdate) SetNillableMemo ¶
func (uqu *UserQualificationUpdate) SetNillableMemo(s *string) *UserQualificationUpdate
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*UserQualificationUpdate) SetNillableOrganization ¶
func (uqu *UserQualificationUpdate) SetNillableOrganization(s *string) *UserQualificationUpdate
SetNillableOrganization sets the "organization" field if the given value is not nil.
func (*UserQualificationUpdate) SetNillableURL ¶
func (uqu *UserQualificationUpdate) SetNillableURL(s *string) *UserQualificationUpdate
SetNillableURL sets the "url" field if the given value is not nil.
func (*UserQualificationUpdate) SetOrganization ¶
func (uqu *UserQualificationUpdate) SetOrganization(s string) *UserQualificationUpdate
SetOrganization sets the "organization" field.
func (*UserQualificationUpdate) SetURL ¶
func (uqu *UserQualificationUpdate) SetURL(s string) *UserQualificationUpdate
SetURL sets the "url" field.
func (*UserQualificationUpdate) SetUpdateTime ¶
func (uqu *UserQualificationUpdate) SetUpdateTime(t time.Time) *UserQualificationUpdate
SetUpdateTime sets the "update_time" field.
func (*UserQualificationUpdate) SetUser ¶
func (uqu *UserQualificationUpdate) SetUser(u *User) *UserQualificationUpdate
SetUser sets the "user" edge to the User entity.
func (*UserQualificationUpdate) SetUserID ¶
func (uqu *UserQualificationUpdate) SetUserID(id int) *UserQualificationUpdate
SetUserID sets the "user" edge to the User entity by ID.
func (*UserQualificationUpdate) Where ¶
func (uqu *UserQualificationUpdate) Where(ps ...predicate.UserQualification) *UserQualificationUpdate
Where appends a list predicates to the UserQualificationUpdate builder.
type UserQualificationUpdateOne ¶
type UserQualificationUpdateOne struct {
// contains filtered or unexported fields
}
UserQualificationUpdateOne is the builder for updating a single UserQualification entity.
func (*UserQualificationUpdateOne) ClearGotDate ¶
func (uquo *UserQualificationUpdateOne) ClearGotDate() *UserQualificationUpdateOne
ClearGotDate clears the value of the "got_date" field.
func (*UserQualificationUpdateOne) ClearMemo ¶
func (uquo *UserQualificationUpdateOne) ClearMemo() *UserQualificationUpdateOne
ClearMemo clears the value of the "memo" field.
func (*UserQualificationUpdateOne) ClearOrganization ¶
func (uquo *UserQualificationUpdateOne) ClearOrganization() *UserQualificationUpdateOne
ClearOrganization clears the value of the "organization" field.
func (*UserQualificationUpdateOne) ClearURL ¶
func (uquo *UserQualificationUpdateOne) ClearURL() *UserQualificationUpdateOne
ClearURL clears the value of the "url" field.
func (*UserQualificationUpdateOne) ClearUser ¶
func (uquo *UserQualificationUpdateOne) ClearUser() *UserQualificationUpdateOne
ClearUser clears the "user" edge to the User entity.
func (*UserQualificationUpdateOne) Exec ¶
func (uquo *UserQualificationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserQualificationUpdateOne) ExecX ¶
func (uquo *UserQualificationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserQualificationUpdateOne) Mutation ¶
func (uquo *UserQualificationUpdateOne) Mutation() *UserQualificationMutation
Mutation returns the UserQualificationMutation object of the builder.
func (*UserQualificationUpdateOne) Save ¶
func (uquo *UserQualificationUpdateOne) Save(ctx context.Context) (*UserQualification, error)
Save executes the query and returns the updated UserQualification entity.
func (*UserQualificationUpdateOne) SaveX ¶
func (uquo *UserQualificationUpdateOne) SaveX(ctx context.Context) *UserQualification
SaveX is like Save, but panics if an error occurs.
func (*UserQualificationUpdateOne) Select ¶
func (uquo *UserQualificationUpdateOne) Select(field string, fields ...string) *UserQualificationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserQualificationUpdateOne) SetGotDate ¶
func (uquo *UserQualificationUpdateOne) SetGotDate(s string) *UserQualificationUpdateOne
SetGotDate sets the "got_date" field.
func (*UserQualificationUpdateOne) SetMemo ¶
func (uquo *UserQualificationUpdateOne) SetMemo(s string) *UserQualificationUpdateOne
SetMemo sets the "memo" field.
func (*UserQualificationUpdateOne) SetName ¶
func (uquo *UserQualificationUpdateOne) SetName(s string) *UserQualificationUpdateOne
SetName sets the "name" field.
func (*UserQualificationUpdateOne) SetNillableGotDate ¶
func (uquo *UserQualificationUpdateOne) SetNillableGotDate(s *string) *UserQualificationUpdateOne
SetNillableGotDate sets the "got_date" field if the given value is not nil.
func (*UserQualificationUpdateOne) SetNillableMemo ¶
func (uquo *UserQualificationUpdateOne) SetNillableMemo(s *string) *UserQualificationUpdateOne
SetNillableMemo sets the "memo" field if the given value is not nil.
func (*UserQualificationUpdateOne) SetNillableOrganization ¶
func (uquo *UserQualificationUpdateOne) SetNillableOrganization(s *string) *UserQualificationUpdateOne
SetNillableOrganization sets the "organization" field if the given value is not nil.
func (*UserQualificationUpdateOne) SetNillableURL ¶
func (uquo *UserQualificationUpdateOne) SetNillableURL(s *string) *UserQualificationUpdateOne
SetNillableURL sets the "url" field if the given value is not nil.
func (*UserQualificationUpdateOne) SetOrganization ¶
func (uquo *UserQualificationUpdateOne) SetOrganization(s string) *UserQualificationUpdateOne
SetOrganization sets the "organization" field.
func (*UserQualificationUpdateOne) SetURL ¶
func (uquo *UserQualificationUpdateOne) SetURL(s string) *UserQualificationUpdateOne
SetURL sets the "url" field.
func (*UserQualificationUpdateOne) SetUpdateTime ¶
func (uquo *UserQualificationUpdateOne) SetUpdateTime(t time.Time) *UserQualificationUpdateOne
SetUpdateTime sets the "update_time" field.
func (*UserQualificationUpdateOne) SetUser ¶
func (uquo *UserQualificationUpdateOne) SetUser(u *User) *UserQualificationUpdateOne
SetUser sets the "user" edge to the User entity.
func (*UserQualificationUpdateOne) SetUserID ¶
func (uquo *UserQualificationUpdateOne) SetUserID(id int) *UserQualificationUpdateOne
SetUserID sets the "user" edge to the User entity by ID.
func (*UserQualificationUpdateOne) Where ¶
func (uquo *UserQualificationUpdateOne) Where(ps ...predicate.UserQualification) *UserQualificationUpdateOne
Where appends a list predicates to the UserQualificationUpdate builder.
type UserQualificationUpsert ¶
UserQualificationUpsert is the "OnConflict" setter.
func (*UserQualificationUpsert) ClearGotDate ¶
func (u *UserQualificationUpsert) ClearGotDate() *UserQualificationUpsert
ClearGotDate clears the value of the "got_date" field.
func (*UserQualificationUpsert) ClearMemo ¶
func (u *UserQualificationUpsert) ClearMemo() *UserQualificationUpsert
ClearMemo clears the value of the "memo" field.
func (*UserQualificationUpsert) ClearOrganization ¶
func (u *UserQualificationUpsert) ClearOrganization() *UserQualificationUpsert
ClearOrganization clears the value of the "organization" field.
func (*UserQualificationUpsert) ClearURL ¶
func (u *UserQualificationUpsert) ClearURL() *UserQualificationUpsert
ClearURL clears the value of the "url" field.
func (*UserQualificationUpsert) SetGotDate ¶
func (u *UserQualificationUpsert) SetGotDate(v string) *UserQualificationUpsert
SetGotDate sets the "got_date" field.
func (*UserQualificationUpsert) SetMemo ¶
func (u *UserQualificationUpsert) SetMemo(v string) *UserQualificationUpsert
SetMemo sets the "memo" field.
func (*UserQualificationUpsert) SetName ¶
func (u *UserQualificationUpsert) SetName(v string) *UserQualificationUpsert
SetName sets the "name" field.
func (*UserQualificationUpsert) SetOrganization ¶
func (u *UserQualificationUpsert) SetOrganization(v string) *UserQualificationUpsert
SetOrganization sets the "organization" field.
func (*UserQualificationUpsert) SetURL ¶
func (u *UserQualificationUpsert) SetURL(v string) *UserQualificationUpsert
SetURL sets the "url" field.
func (*UserQualificationUpsert) SetUpdateTime ¶
func (u *UserQualificationUpsert) SetUpdateTime(v time.Time) *UserQualificationUpsert
SetUpdateTime sets the "update_time" field.
func (*UserQualificationUpsert) UpdateGotDate ¶
func (u *UserQualificationUpsert) UpdateGotDate() *UserQualificationUpsert
UpdateGotDate sets the "got_date" field to the value that was provided on create.
func (*UserQualificationUpsert) UpdateMemo ¶
func (u *UserQualificationUpsert) UpdateMemo() *UserQualificationUpsert
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*UserQualificationUpsert) UpdateName ¶
func (u *UserQualificationUpsert) UpdateName() *UserQualificationUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*UserQualificationUpsert) UpdateOrganization ¶
func (u *UserQualificationUpsert) UpdateOrganization() *UserQualificationUpsert
UpdateOrganization sets the "organization" field to the value that was provided on create.
func (*UserQualificationUpsert) UpdateURL ¶
func (u *UserQualificationUpsert) UpdateURL() *UserQualificationUpsert
UpdateURL sets the "url" field to the value that was provided on create.
func (*UserQualificationUpsert) UpdateUpdateTime ¶
func (u *UserQualificationUpsert) UpdateUpdateTime() *UserQualificationUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserQualificationUpsertBulk ¶
type UserQualificationUpsertBulk struct {
// contains filtered or unexported fields
}
UserQualificationUpsertBulk is the builder for "upsert"-ing a bulk of UserQualification nodes.
func (*UserQualificationUpsertBulk) ClearGotDate ¶
func (u *UserQualificationUpsertBulk) ClearGotDate() *UserQualificationUpsertBulk
ClearGotDate clears the value of the "got_date" field.
func (*UserQualificationUpsertBulk) ClearMemo ¶
func (u *UserQualificationUpsertBulk) ClearMemo() *UserQualificationUpsertBulk
ClearMemo clears the value of the "memo" field.
func (*UserQualificationUpsertBulk) ClearOrganization ¶
func (u *UserQualificationUpsertBulk) ClearOrganization() *UserQualificationUpsertBulk
ClearOrganization clears the value of the "organization" field.
func (*UserQualificationUpsertBulk) ClearURL ¶
func (u *UserQualificationUpsertBulk) ClearURL() *UserQualificationUpsertBulk
ClearURL clears the value of the "url" field.
func (*UserQualificationUpsertBulk) DoNothing ¶
func (u *UserQualificationUpsertBulk) DoNothing() *UserQualificationUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserQualificationUpsertBulk) Exec ¶
func (u *UserQualificationUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserQualificationUpsertBulk) ExecX ¶
func (u *UserQualificationUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserQualificationUpsertBulk) Ignore ¶
func (u *UserQualificationUpsertBulk) Ignore() *UserQualificationUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserQualification.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserQualificationUpsertBulk) SetGotDate ¶
func (u *UserQualificationUpsertBulk) SetGotDate(v string) *UserQualificationUpsertBulk
SetGotDate sets the "got_date" field.
func (*UserQualificationUpsertBulk) SetMemo ¶
func (u *UserQualificationUpsertBulk) SetMemo(v string) *UserQualificationUpsertBulk
SetMemo sets the "memo" field.
func (*UserQualificationUpsertBulk) SetName ¶
func (u *UserQualificationUpsertBulk) SetName(v string) *UserQualificationUpsertBulk
SetName sets the "name" field.
func (*UserQualificationUpsertBulk) SetOrganization ¶
func (u *UserQualificationUpsertBulk) SetOrganization(v string) *UserQualificationUpsertBulk
SetOrganization sets the "organization" field.
func (*UserQualificationUpsertBulk) SetURL ¶
func (u *UserQualificationUpsertBulk) SetURL(v string) *UserQualificationUpsertBulk
SetURL sets the "url" field.
func (*UserQualificationUpsertBulk) SetUpdateTime ¶
func (u *UserQualificationUpsertBulk) SetUpdateTime(v time.Time) *UserQualificationUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*UserQualificationUpsertBulk) Update ¶
func (u *UserQualificationUpsertBulk) Update(set func(*UserQualificationUpsert)) *UserQualificationUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserQualificationCreateBulk.OnConflict documentation for more info.
func (*UserQualificationUpsertBulk) UpdateGotDate ¶
func (u *UserQualificationUpsertBulk) UpdateGotDate() *UserQualificationUpsertBulk
UpdateGotDate sets the "got_date" field to the value that was provided on create.
func (*UserQualificationUpsertBulk) UpdateMemo ¶
func (u *UserQualificationUpsertBulk) UpdateMemo() *UserQualificationUpsertBulk
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*UserQualificationUpsertBulk) UpdateName ¶
func (u *UserQualificationUpsertBulk) UpdateName() *UserQualificationUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*UserQualificationUpsertBulk) UpdateNewValues ¶
func (u *UserQualificationUpsertBulk) UpdateNewValues() *UserQualificationUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserQualification.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserQualificationUpsertBulk) UpdateOrganization ¶
func (u *UserQualificationUpsertBulk) UpdateOrganization() *UserQualificationUpsertBulk
UpdateOrganization sets the "organization" field to the value that was provided on create.
func (*UserQualificationUpsertBulk) UpdateURL ¶
func (u *UserQualificationUpsertBulk) UpdateURL() *UserQualificationUpsertBulk
UpdateURL sets the "url" field to the value that was provided on create.
func (*UserQualificationUpsertBulk) UpdateUpdateTime ¶
func (u *UserQualificationUpsertBulk) UpdateUpdateTime() *UserQualificationUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserQualificationUpsertOne ¶
type UserQualificationUpsertOne struct {
// contains filtered or unexported fields
}
UserQualificationUpsertOne is the builder for "upsert"-ing
one UserQualification node.
func (*UserQualificationUpsertOne) ClearGotDate ¶
func (u *UserQualificationUpsertOne) ClearGotDate() *UserQualificationUpsertOne
ClearGotDate clears the value of the "got_date" field.
func (*UserQualificationUpsertOne) ClearMemo ¶
func (u *UserQualificationUpsertOne) ClearMemo() *UserQualificationUpsertOne
ClearMemo clears the value of the "memo" field.
func (*UserQualificationUpsertOne) ClearOrganization ¶
func (u *UserQualificationUpsertOne) ClearOrganization() *UserQualificationUpsertOne
ClearOrganization clears the value of the "organization" field.
func (*UserQualificationUpsertOne) ClearURL ¶
func (u *UserQualificationUpsertOne) ClearURL() *UserQualificationUpsertOne
ClearURL clears the value of the "url" field.
func (*UserQualificationUpsertOne) DoNothing ¶
func (u *UserQualificationUpsertOne) DoNothing() *UserQualificationUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserQualificationUpsertOne) Exec ¶
func (u *UserQualificationUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserQualificationUpsertOne) ExecX ¶
func (u *UserQualificationUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserQualificationUpsertOne) ID ¶
func (u *UserQualificationUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserQualificationUpsertOne) IDX ¶
func (u *UserQualificationUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*UserQualificationUpsertOne) Ignore ¶
func (u *UserQualificationUpsertOne) Ignore() *UserQualificationUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.UserQualification.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserQualificationUpsertOne) SetGotDate ¶
func (u *UserQualificationUpsertOne) SetGotDate(v string) *UserQualificationUpsertOne
SetGotDate sets the "got_date" field.
func (*UserQualificationUpsertOne) SetMemo ¶
func (u *UserQualificationUpsertOne) SetMemo(v string) *UserQualificationUpsertOne
SetMemo sets the "memo" field.
func (*UserQualificationUpsertOne) SetName ¶
func (u *UserQualificationUpsertOne) SetName(v string) *UserQualificationUpsertOne
SetName sets the "name" field.
func (*UserQualificationUpsertOne) SetOrganization ¶
func (u *UserQualificationUpsertOne) SetOrganization(v string) *UserQualificationUpsertOne
SetOrganization sets the "organization" field.
func (*UserQualificationUpsertOne) SetURL ¶
func (u *UserQualificationUpsertOne) SetURL(v string) *UserQualificationUpsertOne
SetURL sets the "url" field.
func (*UserQualificationUpsertOne) SetUpdateTime ¶
func (u *UserQualificationUpsertOne) SetUpdateTime(v time.Time) *UserQualificationUpsertOne
SetUpdateTime sets the "update_time" field.
func (*UserQualificationUpsertOne) Update ¶
func (u *UserQualificationUpsertOne) Update(set func(*UserQualificationUpsert)) *UserQualificationUpsertOne
Update allows overriding fields `UPDATE` values. See the UserQualificationCreate.OnConflict documentation for more info.
func (*UserQualificationUpsertOne) UpdateGotDate ¶
func (u *UserQualificationUpsertOne) UpdateGotDate() *UserQualificationUpsertOne
UpdateGotDate sets the "got_date" field to the value that was provided on create.
func (*UserQualificationUpsertOne) UpdateMemo ¶
func (u *UserQualificationUpsertOne) UpdateMemo() *UserQualificationUpsertOne
UpdateMemo sets the "memo" field to the value that was provided on create.
func (*UserQualificationUpsertOne) UpdateName ¶
func (u *UserQualificationUpsertOne) UpdateName() *UserQualificationUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*UserQualificationUpsertOne) UpdateNewValues ¶
func (u *UserQualificationUpsertOne) UpdateNewValues() *UserQualificationUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.UserQualification.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserQualificationUpsertOne) UpdateOrganization ¶
func (u *UserQualificationUpsertOne) UpdateOrganization() *UserQualificationUpsertOne
UpdateOrganization sets the "organization" field to the value that was provided on create.
func (*UserQualificationUpsertOne) UpdateURL ¶
func (u *UserQualificationUpsertOne) UpdateURL() *UserQualificationUpsertOne
UpdateURL sets the "url" field to the value that was provided on create.
func (*UserQualificationUpsertOne) UpdateUpdateTime ¶
func (u *UserQualificationUpsertOne) UpdateUpdateTime() *UserQualificationUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserQualifications ¶
type UserQualifications []*UserQualification
UserQualifications is a parsable slice of UserQualification.
type UserQuery ¶
type UserQuery struct {
// contains filtered or unexported fields
}
UserQuery is the builder for querying User entities.
func (*UserQuery) Aggregate ¶
func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate returns a UserSelect configured with the given aggregations.
func (*UserQuery) Clone ¶
Clone returns a duplicate of the UserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*UserQuery) First ¶
First returns the first User entity from the query. Returns a *NotFoundError when no User was found.
func (*UserQuery) FirstID ¶
FirstID returns the first User ID from the query. Returns a *NotFoundError when no User ID was found.
func (*UserQuery) GroupBy ¶
func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy
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 { CreateTime time.Time `json:"create_time,omitempty"` Count int `json:"count,omitempty"` } client.User.Query(). GroupBy(user.FieldCreateTime). Aggregate(ent.Count()). Scan(ctx, &v)
func (*UserQuery) Only ¶
Only returns a single User entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one User entity is found. Returns a *NotFoundError when no User entities are found.
func (*UserQuery) OnlyID ¶
OnlyID is like Only, but returns the only User ID in the query. Returns a *NotSingularError when more than one User ID is found. Returns a *NotFoundError when no entities are found.
func (*UserQuery) Order ¶
func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery
Order specifies how the records should be ordered.
func (*UserQuery) QueryActivities ¶
func (uq *UserQuery) QueryActivities() *UserActivityQuery
QueryActivities chains the current query on the "activities" edge.
func (*UserQuery) QueryCareerGroups ¶
func (uq *UserQuery) QueryCareerGroups() *UserCareerGroupQuery
QueryCareerGroups chains the current query on the "careerGroups" edge.
func (*UserQuery) QueryNotes ¶
func (uq *UserQuery) QueryNotes() *UserNoteQuery
QueryNotes chains the current query on the "notes" edge.
func (*UserQuery) QueryQualifications ¶
func (uq *UserQuery) QueryQualifications() *UserQualificationQuery
QueryQualifications chains the current query on the "qualifications" edge.
func (*UserQuery) Select ¶
func (uq *UserQuery) Select(fields ...string) *UserSelect
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 { CreateTime time.Time `json:"create_time,omitempty"` } client.User.Query(). Select(user.FieldCreateTime). Scan(ctx, &v)
func (*UserQuery) Unique ¶
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 (*UserQuery) WithActivities ¶
func (uq *UserQuery) WithActivities(opts ...func(*UserActivityQuery)) *UserQuery
WithActivities tells the query-builder to eager-load the nodes that are connected to the "activities" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithCareerGroups ¶
func (uq *UserQuery) WithCareerGroups(opts ...func(*UserCareerGroupQuery)) *UserQuery
WithCareerGroups tells the query-builder to eager-load the nodes that are connected to the "careerGroups" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithNotes ¶
func (uq *UserQuery) WithNotes(opts ...func(*UserNoteQuery)) *UserQuery
WithNotes tells the query-builder to eager-load the nodes that are connected to the "notes" edge. The optional arguments are used to configure the query builder of the edge.
func (*UserQuery) WithQualifications ¶
func (uq *UserQuery) WithQualifications(opts ...func(*UserQualificationQuery)) *UserQuery
WithQualifications tells the query-builder to eager-load the nodes that are connected to the "qualifications" edge. The optional arguments are used to configure the query builder of the edge.
type UserSelect ¶
type UserSelect struct { *UserQuery // contains filtered or unexported fields }
UserSelect is the builder for selecting fields of User entities.
func (*UserSelect) Aggregate ¶
func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect
Aggregate adds the given aggregation functions to the selector query.
func (*UserSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*UserSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*UserSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*UserSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*UserSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*UserSelect) Scan ¶
func (us *UserSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*UserSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type UserUpdate ¶
type UserUpdate struct {
// contains filtered or unexported fields
}
UserUpdate is the builder for updating User entities.
func (*UserUpdate) AddActivities ¶
func (uu *UserUpdate) AddActivities(u ...*UserActivity) *UserUpdate
AddActivities adds the "activities" edges to the UserActivity entity.
func (*UserUpdate) AddActivityIDs ¶
func (uu *UserUpdate) AddActivityIDs(ids ...int) *UserUpdate
AddActivityIDs adds the "activities" edge to the UserActivity entity by IDs.
func (*UserUpdate) AddBirthdayDay ¶
func (uu *UserUpdate) AddBirthdayDay(i int) *UserUpdate
AddBirthdayDay adds i to the "birthday_day" field.
func (*UserUpdate) AddBirthdayMonth ¶
func (uu *UserUpdate) AddBirthdayMonth(i int) *UserUpdate
AddBirthdayMonth adds i to the "birthday_month" field.
func (*UserUpdate) AddBirthdayYear ¶
func (uu *UserUpdate) AddBirthdayYear(i int) *UserUpdate
AddBirthdayYear adds i to the "birthday_year" field.
func (*UserUpdate) AddCareerGroupIDs ¶
func (uu *UserUpdate) AddCareerGroupIDs(ids ...int) *UserUpdate
AddCareerGroupIDs adds the "careerGroups" edge to the UserCareerGroup entity by IDs.
func (*UserUpdate) AddCareerGroups ¶
func (uu *UserUpdate) AddCareerGroups(u ...*UserCareerGroup) *UserUpdate
AddCareerGroups adds the "careerGroups" edges to the UserCareerGroup entity.
func (*UserUpdate) AddNoteIDs ¶
func (uu *UserUpdate) AddNoteIDs(ids ...int) *UserUpdate
AddNoteIDs adds the "notes" edge to the UserNote entity by IDs.
func (*UserUpdate) AddNotes ¶
func (uu *UserUpdate) AddNotes(u ...*UserNote) *UserUpdate
AddNotes adds the "notes" edges to the UserNote entity.
func (*UserUpdate) AddQualificationIDs ¶
func (uu *UserUpdate) AddQualificationIDs(ids ...int) *UserUpdate
AddQualificationIDs adds the "qualifications" edge to the UserQualification entity by IDs.
func (*UserUpdate) AddQualifications ¶
func (uu *UserUpdate) AddQualifications(u ...*UserQualification) *UserUpdate
AddQualifications adds the "qualifications" edges to the UserQualification entity.
func (*UserUpdate) ClearActivities ¶
func (uu *UserUpdate) ClearActivities() *UserUpdate
ClearActivities clears all "activities" edges to the UserActivity entity.
func (*UserUpdate) ClearAvatarURL ¶
func (uu *UserUpdate) ClearAvatarURL() *UserUpdate
ClearAvatarURL clears the value of the "avatar_url" field.
func (*UserUpdate) ClearBelongTo ¶
func (uu *UserUpdate) ClearBelongTo() *UserUpdate
ClearBelongTo clears the value of the "belong_to" field.
func (*UserUpdate) ClearCareerGroups ¶
func (uu *UserUpdate) ClearCareerGroups() *UserUpdate
ClearCareerGroups clears all "careerGroups" edges to the UserCareerGroup entity.
func (*UserUpdate) ClearJob ¶
func (uu *UserUpdate) ClearJob() *UserUpdate
ClearJob clears the value of the "job" field.
func (*UserUpdate) ClearNickname ¶
func (uu *UserUpdate) ClearNickname() *UserUpdate
ClearNickname clears the value of the "nickname" field.
func (*UserUpdate) ClearNotes ¶
func (uu *UserUpdate) ClearNotes() *UserUpdate
ClearNotes clears all "notes" edges to the UserNote entity.
func (*UserUpdate) ClearPr ¶
func (uu *UserUpdate) ClearPr() *UserUpdate
ClearPr clears the value of the "pr" field.
func (*UserUpdate) ClearQualifications ¶
func (uu *UserUpdate) ClearQualifications() *UserUpdate
ClearQualifications clears all "qualifications" edges to the UserQualification entity.
func (*UserUpdate) Exec ¶
func (uu *UserUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpdate) ExecX ¶
func (uu *UserUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdate) Mutation ¶
func (uu *UserUpdate) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdate) RemoveActivities ¶
func (uu *UserUpdate) RemoveActivities(u ...*UserActivity) *UserUpdate
RemoveActivities removes "activities" edges to UserActivity entities.
func (*UserUpdate) RemoveActivityIDs ¶
func (uu *UserUpdate) RemoveActivityIDs(ids ...int) *UserUpdate
RemoveActivityIDs removes the "activities" edge to UserActivity entities by IDs.
func (*UserUpdate) RemoveCareerGroupIDs ¶
func (uu *UserUpdate) RemoveCareerGroupIDs(ids ...int) *UserUpdate
RemoveCareerGroupIDs removes the "careerGroups" edge to UserCareerGroup entities by IDs.
func (*UserUpdate) RemoveCareerGroups ¶
func (uu *UserUpdate) RemoveCareerGroups(u ...*UserCareerGroup) *UserUpdate
RemoveCareerGroups removes "careerGroups" edges to UserCareerGroup entities.
func (*UserUpdate) RemoveNoteIDs ¶
func (uu *UserUpdate) RemoveNoteIDs(ids ...int) *UserUpdate
RemoveNoteIDs removes the "notes" edge to UserNote entities by IDs.
func (*UserUpdate) RemoveNotes ¶
func (uu *UserUpdate) RemoveNotes(u ...*UserNote) *UserUpdate
RemoveNotes removes "notes" edges to UserNote entities.
func (*UserUpdate) RemoveQualificationIDs ¶
func (uu *UserUpdate) RemoveQualificationIDs(ids ...int) *UserUpdate
RemoveQualificationIDs removes the "qualifications" edge to UserQualification entities by IDs.
func (*UserUpdate) RemoveQualifications ¶
func (uu *UserUpdate) RemoveQualifications(u ...*UserQualification) *UserUpdate
RemoveQualifications removes "qualifications" edges to UserQualification entities.
func (*UserUpdate) Save ¶
func (uu *UserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*UserUpdate) SaveX ¶
func (uu *UserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*UserUpdate) SetAvatarURL ¶
func (uu *UserUpdate) SetAvatarURL(s string) *UserUpdate
SetAvatarURL sets the "avatar_url" field.
func (*UserUpdate) SetBelongTo ¶
func (uu *UserUpdate) SetBelongTo(s string) *UserUpdate
SetBelongTo sets the "belong_to" field.
func (*UserUpdate) SetBirthdayDay ¶
func (uu *UserUpdate) SetBirthdayDay(i int) *UserUpdate
SetBirthdayDay sets the "birthday_day" field.
func (*UserUpdate) SetBirthdayMonth ¶
func (uu *UserUpdate) SetBirthdayMonth(i int) *UserUpdate
SetBirthdayMonth sets the "birthday_month" field.
func (*UserUpdate) SetBirthdayYear ¶
func (uu *UserUpdate) SetBirthdayYear(i int) *UserUpdate
SetBirthdayYear sets the "birthday_year" field.
func (*UserUpdate) SetJob ¶
func (uu *UserUpdate) SetJob(s string) *UserUpdate
SetJob sets the "job" field.
func (*UserUpdate) SetName ¶
func (uu *UserUpdate) SetName(s string) *UserUpdate
SetName sets the "name" field.
func (*UserUpdate) SetNickname ¶
func (uu *UserUpdate) SetNickname(s string) *UserUpdate
SetNickname sets the "nickname" field.
func (*UserUpdate) SetNillableAvatarURL ¶
func (uu *UserUpdate) SetNillableAvatarURL(s *string) *UserUpdate
SetNillableAvatarURL sets the "avatar_url" field if the given value is not nil.
func (*UserUpdate) SetNillableBelongTo ¶
func (uu *UserUpdate) SetNillableBelongTo(s *string) *UserUpdate
SetNillableBelongTo sets the "belong_to" field if the given value is not nil.
func (*UserUpdate) SetNillableJob ¶
func (uu *UserUpdate) SetNillableJob(s *string) *UserUpdate
SetNillableJob sets the "job" field if the given value is not nil.
func (*UserUpdate) SetNillableNickname ¶
func (uu *UserUpdate) SetNillableNickname(s *string) *UserUpdate
SetNillableNickname sets the "nickname" field if the given value is not nil.
func (*UserUpdate) SetNillablePr ¶
func (uu *UserUpdate) SetNillablePr(s *string) *UserUpdate
SetNillablePr sets the "pr" field if the given value is not nil.
func (*UserUpdate) SetPr ¶
func (uu *UserUpdate) SetPr(s string) *UserUpdate
SetPr sets the "pr" field.
func (*UserUpdate) SetUpdateTime ¶
func (uu *UserUpdate) SetUpdateTime(t time.Time) *UserUpdate
SetUpdateTime sets the "update_time" field.
func (*UserUpdate) Where ¶
func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate
Where appends a list predicates to the UserUpdate builder.
type UserUpdateOne ¶
type UserUpdateOne struct {
// contains filtered or unexported fields
}
UserUpdateOne is the builder for updating a single User entity.
func (*UserUpdateOne) AddActivities ¶
func (uuo *UserUpdateOne) AddActivities(u ...*UserActivity) *UserUpdateOne
AddActivities adds the "activities" edges to the UserActivity entity.
func (*UserUpdateOne) AddActivityIDs ¶
func (uuo *UserUpdateOne) AddActivityIDs(ids ...int) *UserUpdateOne
AddActivityIDs adds the "activities" edge to the UserActivity entity by IDs.
func (*UserUpdateOne) AddBirthdayDay ¶
func (uuo *UserUpdateOne) AddBirthdayDay(i int) *UserUpdateOne
AddBirthdayDay adds i to the "birthday_day" field.
func (*UserUpdateOne) AddBirthdayMonth ¶
func (uuo *UserUpdateOne) AddBirthdayMonth(i int) *UserUpdateOne
AddBirthdayMonth adds i to the "birthday_month" field.
func (*UserUpdateOne) AddBirthdayYear ¶
func (uuo *UserUpdateOne) AddBirthdayYear(i int) *UserUpdateOne
AddBirthdayYear adds i to the "birthday_year" field.
func (*UserUpdateOne) AddCareerGroupIDs ¶
func (uuo *UserUpdateOne) AddCareerGroupIDs(ids ...int) *UserUpdateOne
AddCareerGroupIDs adds the "careerGroups" edge to the UserCareerGroup entity by IDs.
func (*UserUpdateOne) AddCareerGroups ¶
func (uuo *UserUpdateOne) AddCareerGroups(u ...*UserCareerGroup) *UserUpdateOne
AddCareerGroups adds the "careerGroups" edges to the UserCareerGroup entity.
func (*UserUpdateOne) AddNoteIDs ¶
func (uuo *UserUpdateOne) AddNoteIDs(ids ...int) *UserUpdateOne
AddNoteIDs adds the "notes" edge to the UserNote entity by IDs.
func (*UserUpdateOne) AddNotes ¶
func (uuo *UserUpdateOne) AddNotes(u ...*UserNote) *UserUpdateOne
AddNotes adds the "notes" edges to the UserNote entity.
func (*UserUpdateOne) AddQualificationIDs ¶
func (uuo *UserUpdateOne) AddQualificationIDs(ids ...int) *UserUpdateOne
AddQualificationIDs adds the "qualifications" edge to the UserQualification entity by IDs.
func (*UserUpdateOne) AddQualifications ¶
func (uuo *UserUpdateOne) AddQualifications(u ...*UserQualification) *UserUpdateOne
AddQualifications adds the "qualifications" edges to the UserQualification entity.
func (*UserUpdateOne) ClearActivities ¶
func (uuo *UserUpdateOne) ClearActivities() *UserUpdateOne
ClearActivities clears all "activities" edges to the UserActivity entity.
func (*UserUpdateOne) ClearAvatarURL ¶
func (uuo *UserUpdateOne) ClearAvatarURL() *UserUpdateOne
ClearAvatarURL clears the value of the "avatar_url" field.
func (*UserUpdateOne) ClearBelongTo ¶
func (uuo *UserUpdateOne) ClearBelongTo() *UserUpdateOne
ClearBelongTo clears the value of the "belong_to" field.
func (*UserUpdateOne) ClearCareerGroups ¶
func (uuo *UserUpdateOne) ClearCareerGroups() *UserUpdateOne
ClearCareerGroups clears all "careerGroups" edges to the UserCareerGroup entity.
func (*UserUpdateOne) ClearJob ¶
func (uuo *UserUpdateOne) ClearJob() *UserUpdateOne
ClearJob clears the value of the "job" field.
func (*UserUpdateOne) ClearNickname ¶
func (uuo *UserUpdateOne) ClearNickname() *UserUpdateOne
ClearNickname clears the value of the "nickname" field.
func (*UserUpdateOne) ClearNotes ¶
func (uuo *UserUpdateOne) ClearNotes() *UserUpdateOne
ClearNotes clears all "notes" edges to the UserNote entity.
func (*UserUpdateOne) ClearPr ¶
func (uuo *UserUpdateOne) ClearPr() *UserUpdateOne
ClearPr clears the value of the "pr" field.
func (*UserUpdateOne) ClearQualifications ¶
func (uuo *UserUpdateOne) ClearQualifications() *UserUpdateOne
ClearQualifications clears all "qualifications" edges to the UserQualification entity.
func (*UserUpdateOne) Exec ¶
func (uuo *UserUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*UserUpdateOne) ExecX ¶
func (uuo *UserUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpdateOne) Mutation ¶
func (uuo *UserUpdateOne) Mutation() *UserMutation
Mutation returns the UserMutation object of the builder.
func (*UserUpdateOne) RemoveActivities ¶
func (uuo *UserUpdateOne) RemoveActivities(u ...*UserActivity) *UserUpdateOne
RemoveActivities removes "activities" edges to UserActivity entities.
func (*UserUpdateOne) RemoveActivityIDs ¶
func (uuo *UserUpdateOne) RemoveActivityIDs(ids ...int) *UserUpdateOne
RemoveActivityIDs removes the "activities" edge to UserActivity entities by IDs.
func (*UserUpdateOne) RemoveCareerGroupIDs ¶
func (uuo *UserUpdateOne) RemoveCareerGroupIDs(ids ...int) *UserUpdateOne
RemoveCareerGroupIDs removes the "careerGroups" edge to UserCareerGroup entities by IDs.
func (*UserUpdateOne) RemoveCareerGroups ¶
func (uuo *UserUpdateOne) RemoveCareerGroups(u ...*UserCareerGroup) *UserUpdateOne
RemoveCareerGroups removes "careerGroups" edges to UserCareerGroup entities.
func (*UserUpdateOne) RemoveNoteIDs ¶
func (uuo *UserUpdateOne) RemoveNoteIDs(ids ...int) *UserUpdateOne
RemoveNoteIDs removes the "notes" edge to UserNote entities by IDs.
func (*UserUpdateOne) RemoveNotes ¶
func (uuo *UserUpdateOne) RemoveNotes(u ...*UserNote) *UserUpdateOne
RemoveNotes removes "notes" edges to UserNote entities.
func (*UserUpdateOne) RemoveQualificationIDs ¶
func (uuo *UserUpdateOne) RemoveQualificationIDs(ids ...int) *UserUpdateOne
RemoveQualificationIDs removes the "qualifications" edge to UserQualification entities by IDs.
func (*UserUpdateOne) RemoveQualifications ¶
func (uuo *UserUpdateOne) RemoveQualifications(u ...*UserQualification) *UserUpdateOne
RemoveQualifications removes "qualifications" edges to UserQualification entities.
func (*UserUpdateOne) Save ¶
func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)
Save executes the query and returns the updated User entity.
func (*UserUpdateOne) SaveX ¶
func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User
SaveX is like Save, but panics if an error occurs.
func (*UserUpdateOne) Select ¶
func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*UserUpdateOne) SetAvatarURL ¶
func (uuo *UserUpdateOne) SetAvatarURL(s string) *UserUpdateOne
SetAvatarURL sets the "avatar_url" field.
func (*UserUpdateOne) SetBelongTo ¶
func (uuo *UserUpdateOne) SetBelongTo(s string) *UserUpdateOne
SetBelongTo sets the "belong_to" field.
func (*UserUpdateOne) SetBirthdayDay ¶
func (uuo *UserUpdateOne) SetBirthdayDay(i int) *UserUpdateOne
SetBirthdayDay sets the "birthday_day" field.
func (*UserUpdateOne) SetBirthdayMonth ¶
func (uuo *UserUpdateOne) SetBirthdayMonth(i int) *UserUpdateOne
SetBirthdayMonth sets the "birthday_month" field.
func (*UserUpdateOne) SetBirthdayYear ¶
func (uuo *UserUpdateOne) SetBirthdayYear(i int) *UserUpdateOne
SetBirthdayYear sets the "birthday_year" field.
func (*UserUpdateOne) SetJob ¶
func (uuo *UserUpdateOne) SetJob(s string) *UserUpdateOne
SetJob sets the "job" field.
func (*UserUpdateOne) SetName ¶
func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne
SetName sets the "name" field.
func (*UserUpdateOne) SetNickname ¶
func (uuo *UserUpdateOne) SetNickname(s string) *UserUpdateOne
SetNickname sets the "nickname" field.
func (*UserUpdateOne) SetNillableAvatarURL ¶
func (uuo *UserUpdateOne) SetNillableAvatarURL(s *string) *UserUpdateOne
SetNillableAvatarURL sets the "avatar_url" field if the given value is not nil.
func (*UserUpdateOne) SetNillableBelongTo ¶
func (uuo *UserUpdateOne) SetNillableBelongTo(s *string) *UserUpdateOne
SetNillableBelongTo sets the "belong_to" field if the given value is not nil.
func (*UserUpdateOne) SetNillableJob ¶
func (uuo *UserUpdateOne) SetNillableJob(s *string) *UserUpdateOne
SetNillableJob sets the "job" field if the given value is not nil.
func (*UserUpdateOne) SetNillableNickname ¶
func (uuo *UserUpdateOne) SetNillableNickname(s *string) *UserUpdateOne
SetNillableNickname sets the "nickname" field if the given value is not nil.
func (*UserUpdateOne) SetNillablePr ¶
func (uuo *UserUpdateOne) SetNillablePr(s *string) *UserUpdateOne
SetNillablePr sets the "pr" field if the given value is not nil.
func (*UserUpdateOne) SetPr ¶
func (uuo *UserUpdateOne) SetPr(s string) *UserUpdateOne
SetPr sets the "pr" field.
func (*UserUpdateOne) SetUpdateTime ¶
func (uuo *UserUpdateOne) SetUpdateTime(t time.Time) *UserUpdateOne
SetUpdateTime sets the "update_time" field.
func (*UserUpdateOne) Where ¶
func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne
Where appends a list predicates to the UserUpdate builder.
type UserUpsert ¶
UserUpsert is the "OnConflict" setter.
func (*UserUpsert) AddBirthdayDay ¶
func (u *UserUpsert) AddBirthdayDay(v int) *UserUpsert
AddBirthdayDay adds v to the "birthday_day" field.
func (*UserUpsert) AddBirthdayMonth ¶
func (u *UserUpsert) AddBirthdayMonth(v int) *UserUpsert
AddBirthdayMonth adds v to the "birthday_month" field.
func (*UserUpsert) AddBirthdayYear ¶
func (u *UserUpsert) AddBirthdayYear(v int) *UserUpsert
AddBirthdayYear adds v to the "birthday_year" field.
func (*UserUpsert) ClearAvatarURL ¶
func (u *UserUpsert) ClearAvatarURL() *UserUpsert
ClearAvatarURL clears the value of the "avatar_url" field.
func (*UserUpsert) ClearBelongTo ¶
func (u *UserUpsert) ClearBelongTo() *UserUpsert
ClearBelongTo clears the value of the "belong_to" field.
func (*UserUpsert) ClearJob ¶
func (u *UserUpsert) ClearJob() *UserUpsert
ClearJob clears the value of the "job" field.
func (*UserUpsert) ClearNickname ¶
func (u *UserUpsert) ClearNickname() *UserUpsert
ClearNickname clears the value of the "nickname" field.
func (*UserUpsert) ClearPr ¶
func (u *UserUpsert) ClearPr() *UserUpsert
ClearPr clears the value of the "pr" field.
func (*UserUpsert) SetAvatarURL ¶
func (u *UserUpsert) SetAvatarURL(v string) *UserUpsert
SetAvatarURL sets the "avatar_url" field.
func (*UserUpsert) SetBelongTo ¶
func (u *UserUpsert) SetBelongTo(v string) *UserUpsert
SetBelongTo sets the "belong_to" field.
func (*UserUpsert) SetBirthdayDay ¶
func (u *UserUpsert) SetBirthdayDay(v int) *UserUpsert
SetBirthdayDay sets the "birthday_day" field.
func (*UserUpsert) SetBirthdayMonth ¶
func (u *UserUpsert) SetBirthdayMonth(v int) *UserUpsert
SetBirthdayMonth sets the "birthday_month" field.
func (*UserUpsert) SetBirthdayYear ¶
func (u *UserUpsert) SetBirthdayYear(v int) *UserUpsert
SetBirthdayYear sets the "birthday_year" field.
func (*UserUpsert) SetJob ¶
func (u *UserUpsert) SetJob(v string) *UserUpsert
SetJob sets the "job" field.
func (*UserUpsert) SetName ¶
func (u *UserUpsert) SetName(v string) *UserUpsert
SetName sets the "name" field.
func (*UserUpsert) SetNickname ¶
func (u *UserUpsert) SetNickname(v string) *UserUpsert
SetNickname sets the "nickname" field.
func (*UserUpsert) SetPr ¶
func (u *UserUpsert) SetPr(v string) *UserUpsert
SetPr sets the "pr" field.
func (*UserUpsert) SetUpdateTime ¶
func (u *UserUpsert) SetUpdateTime(v time.Time) *UserUpsert
SetUpdateTime sets the "update_time" field.
func (*UserUpsert) UpdateAvatarURL ¶
func (u *UserUpsert) UpdateAvatarURL() *UserUpsert
UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.
func (*UserUpsert) UpdateBelongTo ¶
func (u *UserUpsert) UpdateBelongTo() *UserUpsert
UpdateBelongTo sets the "belong_to" field to the value that was provided on create.
func (*UserUpsert) UpdateBirthdayDay ¶
func (u *UserUpsert) UpdateBirthdayDay() *UserUpsert
UpdateBirthdayDay sets the "birthday_day" field to the value that was provided on create.
func (*UserUpsert) UpdateBirthdayMonth ¶
func (u *UserUpsert) UpdateBirthdayMonth() *UserUpsert
UpdateBirthdayMonth sets the "birthday_month" field to the value that was provided on create.
func (*UserUpsert) UpdateBirthdayYear ¶
func (u *UserUpsert) UpdateBirthdayYear() *UserUpsert
UpdateBirthdayYear sets the "birthday_year" field to the value that was provided on create.
func (*UserUpsert) UpdateJob ¶
func (u *UserUpsert) UpdateJob() *UserUpsert
UpdateJob sets the "job" field to the value that was provided on create.
func (*UserUpsert) UpdateName ¶
func (u *UserUpsert) UpdateName() *UserUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*UserUpsert) UpdateNickname ¶
func (u *UserUpsert) UpdateNickname() *UserUpsert
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*UserUpsert) UpdatePr ¶
func (u *UserUpsert) UpdatePr() *UserUpsert
UpdatePr sets the "pr" field to the value that was provided on create.
func (*UserUpsert) UpdateUpdateTime ¶
func (u *UserUpsert) UpdateUpdateTime() *UserUpsert
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserUpsertBulk ¶
type UserUpsertBulk struct {
// contains filtered or unexported fields
}
UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.
func (*UserUpsertBulk) AddBirthdayDay ¶
func (u *UserUpsertBulk) AddBirthdayDay(v int) *UserUpsertBulk
AddBirthdayDay adds v to the "birthday_day" field.
func (*UserUpsertBulk) AddBirthdayMonth ¶
func (u *UserUpsertBulk) AddBirthdayMonth(v int) *UserUpsertBulk
AddBirthdayMonth adds v to the "birthday_month" field.
func (*UserUpsertBulk) AddBirthdayYear ¶
func (u *UserUpsertBulk) AddBirthdayYear(v int) *UserUpsertBulk
AddBirthdayYear adds v to the "birthday_year" field.
func (*UserUpsertBulk) ClearAvatarURL ¶
func (u *UserUpsertBulk) ClearAvatarURL() *UserUpsertBulk
ClearAvatarURL clears the value of the "avatar_url" field.
func (*UserUpsertBulk) ClearBelongTo ¶
func (u *UserUpsertBulk) ClearBelongTo() *UserUpsertBulk
ClearBelongTo clears the value of the "belong_to" field.
func (*UserUpsertBulk) ClearJob ¶
func (u *UserUpsertBulk) ClearJob() *UserUpsertBulk
ClearJob clears the value of the "job" field.
func (*UserUpsertBulk) ClearNickname ¶
func (u *UserUpsertBulk) ClearNickname() *UserUpsertBulk
ClearNickname clears the value of the "nickname" field.
func (*UserUpsertBulk) ClearPr ¶
func (u *UserUpsertBulk) ClearPr() *UserUpsertBulk
ClearPr clears the value of the "pr" field.
func (*UserUpsertBulk) DoNothing ¶
func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserUpsertBulk) Exec ¶
func (u *UserUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpsertBulk) ExecX ¶
func (u *UserUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpsertBulk) Ignore ¶
func (u *UserUpsertBulk) Ignore() *UserUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.User.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserUpsertBulk) SetAvatarURL ¶
func (u *UserUpsertBulk) SetAvatarURL(v string) *UserUpsertBulk
SetAvatarURL sets the "avatar_url" field.
func (*UserUpsertBulk) SetBelongTo ¶
func (u *UserUpsertBulk) SetBelongTo(v string) *UserUpsertBulk
SetBelongTo sets the "belong_to" field.
func (*UserUpsertBulk) SetBirthdayDay ¶
func (u *UserUpsertBulk) SetBirthdayDay(v int) *UserUpsertBulk
SetBirthdayDay sets the "birthday_day" field.
func (*UserUpsertBulk) SetBirthdayMonth ¶
func (u *UserUpsertBulk) SetBirthdayMonth(v int) *UserUpsertBulk
SetBirthdayMonth sets the "birthday_month" field.
func (*UserUpsertBulk) SetBirthdayYear ¶
func (u *UserUpsertBulk) SetBirthdayYear(v int) *UserUpsertBulk
SetBirthdayYear sets the "birthday_year" field.
func (*UserUpsertBulk) SetJob ¶
func (u *UserUpsertBulk) SetJob(v string) *UserUpsertBulk
SetJob sets the "job" field.
func (*UserUpsertBulk) SetName ¶
func (u *UserUpsertBulk) SetName(v string) *UserUpsertBulk
SetName sets the "name" field.
func (*UserUpsertBulk) SetNickname ¶
func (u *UserUpsertBulk) SetNickname(v string) *UserUpsertBulk
SetNickname sets the "nickname" field.
func (*UserUpsertBulk) SetPr ¶
func (u *UserUpsertBulk) SetPr(v string) *UserUpsertBulk
SetPr sets the "pr" field.
func (*UserUpsertBulk) SetUpdateTime ¶
func (u *UserUpsertBulk) SetUpdateTime(v time.Time) *UserUpsertBulk
SetUpdateTime sets the "update_time" field.
func (*UserUpsertBulk) Update ¶
func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk
Update allows overriding fields `UPDATE` values. See the UserCreateBulk.OnConflict documentation for more info.
func (*UserUpsertBulk) UpdateAvatarURL ¶
func (u *UserUpsertBulk) UpdateAvatarURL() *UserUpsertBulk
UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateBelongTo ¶
func (u *UserUpsertBulk) UpdateBelongTo() *UserUpsertBulk
UpdateBelongTo sets the "belong_to" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateBirthdayDay ¶
func (u *UserUpsertBulk) UpdateBirthdayDay() *UserUpsertBulk
UpdateBirthdayDay sets the "birthday_day" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateBirthdayMonth ¶
func (u *UserUpsertBulk) UpdateBirthdayMonth() *UserUpsertBulk
UpdateBirthdayMonth sets the "birthday_month" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateBirthdayYear ¶
func (u *UserUpsertBulk) UpdateBirthdayYear() *UserUpsertBulk
UpdateBirthdayYear sets the "birthday_year" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateJob ¶
func (u *UserUpsertBulk) UpdateJob() *UserUpsertBulk
UpdateJob sets the "job" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateName ¶
func (u *UserUpsertBulk) UpdateName() *UserUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateNewValues ¶
func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.User.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserUpsertBulk) UpdateNickname ¶
func (u *UserUpsertBulk) UpdateNickname() *UserUpsertBulk
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*UserUpsertBulk) UpdatePr ¶
func (u *UserUpsertBulk) UpdatePr() *UserUpsertBulk
UpdatePr sets the "pr" field to the value that was provided on create.
func (*UserUpsertBulk) UpdateUpdateTime ¶
func (u *UserUpsertBulk) UpdateUpdateTime() *UserUpsertBulk
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type UserUpsertOne ¶
type UserUpsertOne struct {
// contains filtered or unexported fields
}
UserUpsertOne is the builder for "upsert"-ing
one User node.
func (*UserUpsertOne) AddBirthdayDay ¶
func (u *UserUpsertOne) AddBirthdayDay(v int) *UserUpsertOne
AddBirthdayDay adds v to the "birthday_day" field.
func (*UserUpsertOne) AddBirthdayMonth ¶
func (u *UserUpsertOne) AddBirthdayMonth(v int) *UserUpsertOne
AddBirthdayMonth adds v to the "birthday_month" field.
func (*UserUpsertOne) AddBirthdayYear ¶
func (u *UserUpsertOne) AddBirthdayYear(v int) *UserUpsertOne
AddBirthdayYear adds v to the "birthday_year" field.
func (*UserUpsertOne) ClearAvatarURL ¶
func (u *UserUpsertOne) ClearAvatarURL() *UserUpsertOne
ClearAvatarURL clears the value of the "avatar_url" field.
func (*UserUpsertOne) ClearBelongTo ¶
func (u *UserUpsertOne) ClearBelongTo() *UserUpsertOne
ClearBelongTo clears the value of the "belong_to" field.
func (*UserUpsertOne) ClearJob ¶
func (u *UserUpsertOne) ClearJob() *UserUpsertOne
ClearJob clears the value of the "job" field.
func (*UserUpsertOne) ClearNickname ¶
func (u *UserUpsertOne) ClearNickname() *UserUpsertOne
ClearNickname clears the value of the "nickname" field.
func (*UserUpsertOne) ClearPr ¶
func (u *UserUpsertOne) ClearPr() *UserUpsertOne
ClearPr clears the value of the "pr" field.
func (*UserUpsertOne) DoNothing ¶
func (u *UserUpsertOne) DoNothing() *UserUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*UserUpsertOne) Exec ¶
func (u *UserUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*UserUpsertOne) ExecX ¶
func (u *UserUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*UserUpsertOne) ID ¶
func (u *UserUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*UserUpsertOne) IDX ¶
func (u *UserUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*UserUpsertOne) Ignore ¶
func (u *UserUpsertOne) Ignore() *UserUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.User.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*UserUpsertOne) SetAvatarURL ¶
func (u *UserUpsertOne) SetAvatarURL(v string) *UserUpsertOne
SetAvatarURL sets the "avatar_url" field.
func (*UserUpsertOne) SetBelongTo ¶
func (u *UserUpsertOne) SetBelongTo(v string) *UserUpsertOne
SetBelongTo sets the "belong_to" field.
func (*UserUpsertOne) SetBirthdayDay ¶
func (u *UserUpsertOne) SetBirthdayDay(v int) *UserUpsertOne
SetBirthdayDay sets the "birthday_day" field.
func (*UserUpsertOne) SetBirthdayMonth ¶
func (u *UserUpsertOne) SetBirthdayMonth(v int) *UserUpsertOne
SetBirthdayMonth sets the "birthday_month" field.
func (*UserUpsertOne) SetBirthdayYear ¶
func (u *UserUpsertOne) SetBirthdayYear(v int) *UserUpsertOne
SetBirthdayYear sets the "birthday_year" field.
func (*UserUpsertOne) SetJob ¶
func (u *UserUpsertOne) SetJob(v string) *UserUpsertOne
SetJob sets the "job" field.
func (*UserUpsertOne) SetName ¶
func (u *UserUpsertOne) SetName(v string) *UserUpsertOne
SetName sets the "name" field.
func (*UserUpsertOne) SetNickname ¶
func (u *UserUpsertOne) SetNickname(v string) *UserUpsertOne
SetNickname sets the "nickname" field.
func (*UserUpsertOne) SetPr ¶
func (u *UserUpsertOne) SetPr(v string) *UserUpsertOne
SetPr sets the "pr" field.
func (*UserUpsertOne) SetUpdateTime ¶
func (u *UserUpsertOne) SetUpdateTime(v time.Time) *UserUpsertOne
SetUpdateTime sets the "update_time" field.
func (*UserUpsertOne) Update ¶
func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne
Update allows overriding fields `UPDATE` values. See the UserCreate.OnConflict documentation for more info.
func (*UserUpsertOne) UpdateAvatarURL ¶
func (u *UserUpsertOne) UpdateAvatarURL() *UserUpsertOne
UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.
func (*UserUpsertOne) UpdateBelongTo ¶
func (u *UserUpsertOne) UpdateBelongTo() *UserUpsertOne
UpdateBelongTo sets the "belong_to" field to the value that was provided on create.
func (*UserUpsertOne) UpdateBirthdayDay ¶
func (u *UserUpsertOne) UpdateBirthdayDay() *UserUpsertOne
UpdateBirthdayDay sets the "birthday_day" field to the value that was provided on create.
func (*UserUpsertOne) UpdateBirthdayMonth ¶
func (u *UserUpsertOne) UpdateBirthdayMonth() *UserUpsertOne
UpdateBirthdayMonth sets the "birthday_month" field to the value that was provided on create.
func (*UserUpsertOne) UpdateBirthdayYear ¶
func (u *UserUpsertOne) UpdateBirthdayYear() *UserUpsertOne
UpdateBirthdayYear sets the "birthday_year" field to the value that was provided on create.
func (*UserUpsertOne) UpdateJob ¶
func (u *UserUpsertOne) UpdateJob() *UserUpsertOne
UpdateJob sets the "job" field to the value that was provided on create.
func (*UserUpsertOne) UpdateName ¶
func (u *UserUpsertOne) UpdateName() *UserUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*UserUpsertOne) UpdateNewValues ¶
func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.User.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*UserUpsertOne) UpdateNickname ¶
func (u *UserUpsertOne) UpdateNickname() *UserUpsertOne
UpdateNickname sets the "nickname" field to the value that was provided on create.
func (*UserUpsertOne) UpdatePr ¶
func (u *UserUpsertOne) UpdatePr() *UserUpsertOne
UpdatePr sets the "pr" field to the value that was provided on create.
func (*UserUpsertOne) UpdateUpdateTime ¶
func (u *UserUpsertOne) UpdateUpdateTime() *UserUpsertOne
UpdateUpdateTime sets the "update_time" field to the value that was provided on create.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
Source Files ¶
- careerskill.go
- careerskill_create.go
- careerskill_delete.go
- careerskill_query.go
- careerskill_update.go
- careerskillgroup.go
- careerskillgroup_create.go
- careerskillgroup_delete.go
- careerskillgroup_query.go
- careerskillgroup_update.go
- careertask.go
- careertask_create.go
- careertask_delete.go
- careertask_query.go
- careertask_update.go
- careertaskdescription.go
- careertaskdescription_create.go
- careertaskdescription_delete.go
- careertaskdescription_query.go
- careertaskdescription_update.go
- client.go
- ent.go
- generate.go
- mutation.go
- runtime.go
- skill.go
- skill_create.go
- skill_delete.go
- skill_query.go
- skill_update.go
- skilltag.go
- skilltag_create.go
- skilltag_delete.go
- skilltag_query.go
- skilltag_update.go
- tx.go
- user.go
- user_create.go
- user_delete.go
- user_query.go
- user_update.go
- useractivity.go
- useractivity_create.go
- useractivity_delete.go
- useractivity_query.go
- useractivity_update.go
- usercareer.go
- usercareer_create.go
- usercareer_delete.go
- usercareer_query.go
- usercareer_update.go
- usercareerdescription.go
- usercareerdescription_create.go
- usercareerdescription_delete.go
- usercareerdescription_query.go
- usercareerdescription_update.go
- usercareergroup.go
- usercareergroup_create.go
- usercareergroup_delete.go
- usercareergroup_query.go
- usercareergroup_update.go
- usernote.go
- usernote_create.go
- usernote_delete.go
- usernote_query.go
- usernote_update.go
- usernoteitem.go
- usernoteitem_create.go
- usernoteitem_delete.go
- usernoteitem_query.go
- usernoteitem_update.go
- userqualification.go
- userqualification_create.go
- userqualification_delete.go
- userqualification_query.go
- userqualification_update.go