Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type ApprovalRule
- type ApprovalRuleClient
- func (c *ApprovalRuleClient) Create() *ApprovalRuleCreate
- func (c *ApprovalRuleClient) CreateBulk(builders ...*ApprovalRuleCreate) *ApprovalRuleCreateBulk
- func (c *ApprovalRuleClient) Delete() *ApprovalRuleDelete
- func (c *ApprovalRuleClient) DeleteOne(_m *ApprovalRule) *ApprovalRuleDeleteOne
- func (c *ApprovalRuleClient) DeleteOneID(id int) *ApprovalRuleDeleteOne
- func (c *ApprovalRuleClient) Get(ctx context.Context, id int) (*ApprovalRule, error)
- func (c *ApprovalRuleClient) GetX(ctx context.Context, id int) *ApprovalRule
- func (c *ApprovalRuleClient) Hooks() []Hook
- func (c *ApprovalRuleClient) Intercept(interceptors ...Interceptor)
- func (c *ApprovalRuleClient) Interceptors() []Interceptor
- func (c *ApprovalRuleClient) MapCreateBulk(slice any, setFunc func(*ApprovalRuleCreate, int)) *ApprovalRuleCreateBulk
- func (c *ApprovalRuleClient) Query() *ApprovalRuleQuery
- func (c *ApprovalRuleClient) Update() *ApprovalRuleUpdate
- func (c *ApprovalRuleClient) UpdateOne(_m *ApprovalRule) *ApprovalRuleUpdateOne
- func (c *ApprovalRuleClient) UpdateOneID(id int) *ApprovalRuleUpdateOne
- func (c *ApprovalRuleClient) Use(hooks ...Hook)
- type ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) Exec(ctx context.Context) error
- func (_c *ApprovalRuleCreate) ExecX(ctx context.Context)
- func (_c *ApprovalRuleCreate) Mutation() *ApprovalRuleMutation
- func (_c *ApprovalRuleCreate) OnConflict(opts ...sql.ConflictOption) *ApprovalRuleUpsertOne
- func (_c *ApprovalRuleCreate) OnConflictColumns(columns ...string) *ApprovalRuleUpsertOne
- func (_c *ApprovalRuleCreate) Save(ctx context.Context) (*ApprovalRule, error)
- func (_c *ApprovalRuleCreate) SaveX(ctx context.Context) *ApprovalRule
- func (_c *ApprovalRuleCreate) SetAlternative(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetCommandPattern(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetCreatedAt(v time.Time) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetDecision(v int) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetEnabled(v bool) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetFilePattern(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetName(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableAlternative(v *string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableCommandPattern(v *string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableCreatedAt(v *time.Time) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableEnabled(v *bool) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableFilePattern(v *string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillablePriority(v *int) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableReason(v *string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableSource(v *string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableToolCategory(v *string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableToolName(v *string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableToolPattern(v *string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetNillableUpdatedAt(v *time.Time) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetPriority(v int) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetReason(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetRiskLevel(v int) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetRuleID(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetSource(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetToolCategory(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetToolName(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetToolPattern(v string) *ApprovalRuleCreate
- func (_c *ApprovalRuleCreate) SetUpdatedAt(v time.Time) *ApprovalRuleCreate
- type ApprovalRuleCreateBulk
- func (_c *ApprovalRuleCreateBulk) Exec(ctx context.Context) error
- func (_c *ApprovalRuleCreateBulk) ExecX(ctx context.Context)
- func (_c *ApprovalRuleCreateBulk) OnConflict(opts ...sql.ConflictOption) *ApprovalRuleUpsertBulk
- func (_c *ApprovalRuleCreateBulk) OnConflictColumns(columns ...string) *ApprovalRuleUpsertBulk
- func (_c *ApprovalRuleCreateBulk) Save(ctx context.Context) ([]*ApprovalRule, error)
- func (_c *ApprovalRuleCreateBulk) SaveX(ctx context.Context) []*ApprovalRule
- type ApprovalRuleDelete
- type ApprovalRuleDeleteOne
- type ApprovalRuleGroupBy
- func (_g *ApprovalRuleGroupBy) Aggregate(fns ...AggregateFunc) *ApprovalRuleGroupBy
- func (s *ApprovalRuleGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ApprovalRuleGroupBy) BoolX(ctx context.Context) bool
- func (s *ApprovalRuleGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ApprovalRuleGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ApprovalRuleGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ApprovalRuleGroupBy) Float64X(ctx context.Context) float64
- func (s *ApprovalRuleGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ApprovalRuleGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ApprovalRuleGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ApprovalRuleGroupBy) IntX(ctx context.Context) int
- func (s *ApprovalRuleGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ApprovalRuleGroupBy) IntsX(ctx context.Context) []int
- func (_g *ApprovalRuleGroupBy) Scan(ctx context.Context, v any) error
- func (s *ApprovalRuleGroupBy) ScanX(ctx context.Context, v any)
- func (s *ApprovalRuleGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ApprovalRuleGroupBy) StringX(ctx context.Context) string
- func (s *ApprovalRuleGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ApprovalRuleGroupBy) StringsX(ctx context.Context) []string
- type ApprovalRuleMutation
- func (m *ApprovalRuleMutation) AddDecision(i int)
- func (m *ApprovalRuleMutation) AddField(name string, value ent.Value) error
- func (m *ApprovalRuleMutation) AddPriority(i int)
- func (m *ApprovalRuleMutation) AddRiskLevel(i int)
- func (m *ApprovalRuleMutation) AddedDecision() (r int, exists bool)
- func (m *ApprovalRuleMutation) AddedEdges() []string
- func (m *ApprovalRuleMutation) AddedField(name string) (ent.Value, bool)
- func (m *ApprovalRuleMutation) AddedFields() []string
- func (m *ApprovalRuleMutation) AddedIDs(name string) []ent.Value
- func (m *ApprovalRuleMutation) AddedPriority() (r int, exists bool)
- func (m *ApprovalRuleMutation) AddedRiskLevel() (r int, exists bool)
- func (m *ApprovalRuleMutation) Alternative() (r string, exists bool)
- func (m *ApprovalRuleMutation) AlternativeCleared() bool
- func (m *ApprovalRuleMutation) ClearAlternative()
- func (m *ApprovalRuleMutation) ClearCommandPattern()
- func (m *ApprovalRuleMutation) ClearEdge(name string) error
- func (m *ApprovalRuleMutation) ClearField(name string) error
- func (m *ApprovalRuleMutation) ClearFilePattern()
- func (m *ApprovalRuleMutation) ClearReason()
- func (m *ApprovalRuleMutation) ClearToolCategory()
- func (m *ApprovalRuleMutation) ClearToolName()
- func (m *ApprovalRuleMutation) ClearToolPattern()
- func (m *ApprovalRuleMutation) ClearedEdges() []string
- func (m *ApprovalRuleMutation) ClearedFields() []string
- func (m ApprovalRuleMutation) Client() *Client
- func (m *ApprovalRuleMutation) CommandPattern() (r string, exists bool)
- func (m *ApprovalRuleMutation) CommandPatternCleared() bool
- func (m *ApprovalRuleMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ApprovalRuleMutation) Decision() (r int, exists bool)
- func (m *ApprovalRuleMutation) EdgeCleared(name string) bool
- func (m *ApprovalRuleMutation) Enabled() (r bool, exists bool)
- func (m *ApprovalRuleMutation) Field(name string) (ent.Value, bool)
- func (m *ApprovalRuleMutation) FieldCleared(name string) bool
- func (m *ApprovalRuleMutation) Fields() []string
- func (m *ApprovalRuleMutation) FilePattern() (r string, exists bool)
- func (m *ApprovalRuleMutation) FilePatternCleared() bool
- func (m *ApprovalRuleMutation) ID() (id int, exists bool)
- func (m *ApprovalRuleMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ApprovalRuleMutation) Name() (r string, exists bool)
- func (m *ApprovalRuleMutation) OldAlternative(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldCommandPattern(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ApprovalRuleMutation) OldDecision(ctx context.Context) (v int, err error)
- func (m *ApprovalRuleMutation) OldEnabled(ctx context.Context) (v bool, err error)
- func (m *ApprovalRuleMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ApprovalRuleMutation) OldFilePattern(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldPriority(ctx context.Context) (v int, err error)
- func (m *ApprovalRuleMutation) OldReason(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldRiskLevel(ctx context.Context) (v int, err error)
- func (m *ApprovalRuleMutation) OldRuleID(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldSource(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldToolCategory(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldToolName(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldToolPattern(ctx context.Context) (v string, err error)
- func (m *ApprovalRuleMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ApprovalRuleMutation) Op() Op
- func (m *ApprovalRuleMutation) Priority() (r int, exists bool)
- func (m *ApprovalRuleMutation) Reason() (r string, exists bool)
- func (m *ApprovalRuleMutation) ReasonCleared() bool
- func (m *ApprovalRuleMutation) RemovedEdges() []string
- func (m *ApprovalRuleMutation) RemovedIDs(name string) []ent.Value
- func (m *ApprovalRuleMutation) ResetAlternative()
- func (m *ApprovalRuleMutation) ResetCommandPattern()
- func (m *ApprovalRuleMutation) ResetCreatedAt()
- func (m *ApprovalRuleMutation) ResetDecision()
- func (m *ApprovalRuleMutation) ResetEdge(name string) error
- func (m *ApprovalRuleMutation) ResetEnabled()
- func (m *ApprovalRuleMutation) ResetField(name string) error
- func (m *ApprovalRuleMutation) ResetFilePattern()
- func (m *ApprovalRuleMutation) ResetName()
- func (m *ApprovalRuleMutation) ResetPriority()
- func (m *ApprovalRuleMutation) ResetReason()
- func (m *ApprovalRuleMutation) ResetRiskLevel()
- func (m *ApprovalRuleMutation) ResetRuleID()
- func (m *ApprovalRuleMutation) ResetSource()
- func (m *ApprovalRuleMutation) ResetToolCategory()
- func (m *ApprovalRuleMutation) ResetToolName()
- func (m *ApprovalRuleMutation) ResetToolPattern()
- func (m *ApprovalRuleMutation) ResetUpdatedAt()
- func (m *ApprovalRuleMutation) RiskLevel() (r int, exists bool)
- func (m *ApprovalRuleMutation) RuleID() (r string, exists bool)
- func (m *ApprovalRuleMutation) SetAlternative(s string)
- func (m *ApprovalRuleMutation) SetCommandPattern(s string)
- func (m *ApprovalRuleMutation) SetCreatedAt(t time.Time)
- func (m *ApprovalRuleMutation) SetDecision(i int)
- func (m *ApprovalRuleMutation) SetEnabled(b bool)
- func (m *ApprovalRuleMutation) SetField(name string, value ent.Value) error
- func (m *ApprovalRuleMutation) SetFilePattern(s string)
- func (m *ApprovalRuleMutation) SetName(s string)
- func (m *ApprovalRuleMutation) SetOp(op Op)
- func (m *ApprovalRuleMutation) SetPriority(i int)
- func (m *ApprovalRuleMutation) SetReason(s string)
- func (m *ApprovalRuleMutation) SetRiskLevel(i int)
- func (m *ApprovalRuleMutation) SetRuleID(s string)
- func (m *ApprovalRuleMutation) SetSource(s string)
- func (m *ApprovalRuleMutation) SetToolCategory(s string)
- func (m *ApprovalRuleMutation) SetToolName(s string)
- func (m *ApprovalRuleMutation) SetToolPattern(s string)
- func (m *ApprovalRuleMutation) SetUpdatedAt(t time.Time)
- func (m *ApprovalRuleMutation) Source() (r string, exists bool)
- func (m *ApprovalRuleMutation) ToolCategory() (r string, exists bool)
- func (m *ApprovalRuleMutation) ToolCategoryCleared() bool
- func (m *ApprovalRuleMutation) ToolName() (r string, exists bool)
- func (m *ApprovalRuleMutation) ToolNameCleared() bool
- func (m *ApprovalRuleMutation) ToolPattern() (r string, exists bool)
- func (m *ApprovalRuleMutation) ToolPatternCleared() bool
- func (m ApprovalRuleMutation) Tx() (*Tx, error)
- func (m *ApprovalRuleMutation) Type() string
- func (m *ApprovalRuleMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ApprovalRuleMutation) Where(ps ...predicate.ApprovalRule)
- func (m *ApprovalRuleMutation) WhereP(ps ...func(*sql.Selector))
- type ApprovalRuleQuery
- func (_q *ApprovalRuleQuery) Aggregate(fns ...AggregateFunc) *ApprovalRuleSelect
- func (_q *ApprovalRuleQuery) All(ctx context.Context) ([]*ApprovalRule, error)
- func (_q *ApprovalRuleQuery) AllX(ctx context.Context) []*ApprovalRule
- func (_q *ApprovalRuleQuery) Clone() *ApprovalRuleQuery
- func (_q *ApprovalRuleQuery) Count(ctx context.Context) (int, error)
- func (_q *ApprovalRuleQuery) CountX(ctx context.Context) int
- func (_q *ApprovalRuleQuery) Exist(ctx context.Context) (bool, error)
- func (_q *ApprovalRuleQuery) ExistX(ctx context.Context) bool
- func (_q *ApprovalRuleQuery) First(ctx context.Context) (*ApprovalRule, error)
- func (_q *ApprovalRuleQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *ApprovalRuleQuery) FirstIDX(ctx context.Context) int
- func (_q *ApprovalRuleQuery) FirstX(ctx context.Context) *ApprovalRule
- func (_q *ApprovalRuleQuery) GroupBy(field string, fields ...string) *ApprovalRuleGroupBy
- func (_q *ApprovalRuleQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *ApprovalRuleQuery) IDsX(ctx context.Context) []int
- func (_q *ApprovalRuleQuery) Limit(limit int) *ApprovalRuleQuery
- func (_q *ApprovalRuleQuery) Offset(offset int) *ApprovalRuleQuery
- func (_q *ApprovalRuleQuery) Only(ctx context.Context) (*ApprovalRule, error)
- func (_q *ApprovalRuleQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *ApprovalRuleQuery) OnlyIDX(ctx context.Context) int
- func (_q *ApprovalRuleQuery) OnlyX(ctx context.Context) *ApprovalRule
- func (_q *ApprovalRuleQuery) Order(o ...approvalrule.OrderOption) *ApprovalRuleQuery
- func (_q *ApprovalRuleQuery) Select(fields ...string) *ApprovalRuleSelect
- func (_q *ApprovalRuleQuery) Unique(unique bool) *ApprovalRuleQuery
- func (_q *ApprovalRuleQuery) Where(ps ...predicate.ApprovalRule) *ApprovalRuleQuery
- type ApprovalRuleSelect
- func (_s *ApprovalRuleSelect) Aggregate(fns ...AggregateFunc) *ApprovalRuleSelect
- func (s *ApprovalRuleSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ApprovalRuleSelect) BoolX(ctx context.Context) bool
- func (s *ApprovalRuleSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ApprovalRuleSelect) BoolsX(ctx context.Context) []bool
- func (s *ApprovalRuleSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ApprovalRuleSelect) Float64X(ctx context.Context) float64
- func (s *ApprovalRuleSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ApprovalRuleSelect) Float64sX(ctx context.Context) []float64
- func (s *ApprovalRuleSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ApprovalRuleSelect) IntX(ctx context.Context) int
- func (s *ApprovalRuleSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ApprovalRuleSelect) IntsX(ctx context.Context) []int
- func (_s *ApprovalRuleSelect) Scan(ctx context.Context, v any) error
- func (s *ApprovalRuleSelect) ScanX(ctx context.Context, v any)
- func (s *ApprovalRuleSelect) String(ctx context.Context) (_ string, err error)
- func (s *ApprovalRuleSelect) StringX(ctx context.Context) string
- func (s *ApprovalRuleSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ApprovalRuleSelect) StringsX(ctx context.Context) []string
- type ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) AddDecision(v int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) AddPriority(v int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) AddRiskLevel(v int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) ClearAlternative() *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) ClearCommandPattern() *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) ClearFilePattern() *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) ClearReason() *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) ClearToolCategory() *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) ClearToolName() *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) ClearToolPattern() *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) Exec(ctx context.Context) error
- func (_u *ApprovalRuleUpdate) ExecX(ctx context.Context)
- func (_u *ApprovalRuleUpdate) Mutation() *ApprovalRuleMutation
- func (_u *ApprovalRuleUpdate) Save(ctx context.Context) (int, error)
- func (_u *ApprovalRuleUpdate) SaveX(ctx context.Context) int
- func (_u *ApprovalRuleUpdate) SetAlternative(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetCommandPattern(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetDecision(v int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetEnabled(v bool) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetFilePattern(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetName(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableAlternative(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableCommandPattern(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableDecision(v *int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableEnabled(v *bool) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableFilePattern(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableName(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillablePriority(v *int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableReason(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableRiskLevel(v *int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableRuleID(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableSource(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableToolCategory(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableToolName(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetNillableToolPattern(v *string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetPriority(v int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetReason(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetRiskLevel(v int) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetRuleID(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetSource(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetToolCategory(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetToolName(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetToolPattern(v string) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) SetUpdatedAt(v time.Time) *ApprovalRuleUpdate
- func (_u *ApprovalRuleUpdate) Where(ps ...predicate.ApprovalRule) *ApprovalRuleUpdate
- type ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) AddDecision(v int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) AddPriority(v int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) AddRiskLevel(v int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) ClearAlternative() *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) ClearCommandPattern() *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) ClearFilePattern() *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) ClearReason() *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) ClearToolCategory() *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) ClearToolName() *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) ClearToolPattern() *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) Exec(ctx context.Context) error
- func (_u *ApprovalRuleUpdateOne) ExecX(ctx context.Context)
- func (_u *ApprovalRuleUpdateOne) Mutation() *ApprovalRuleMutation
- func (_u *ApprovalRuleUpdateOne) Save(ctx context.Context) (*ApprovalRule, error)
- func (_u *ApprovalRuleUpdateOne) SaveX(ctx context.Context) *ApprovalRule
- func (_u *ApprovalRuleUpdateOne) Select(field string, fields ...string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetAlternative(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetCommandPattern(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetDecision(v int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetEnabled(v bool) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetFilePattern(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetName(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableAlternative(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableCommandPattern(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableDecision(v *int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableEnabled(v *bool) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableFilePattern(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableName(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillablePriority(v *int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableReason(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableRiskLevel(v *int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableRuleID(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableSource(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableToolCategory(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableToolName(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetNillableToolPattern(v *string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetPriority(v int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetReason(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetRiskLevel(v int) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetRuleID(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetSource(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetToolCategory(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetToolName(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetToolPattern(v string) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) SetUpdatedAt(v time.Time) *ApprovalRuleUpdateOne
- func (_u *ApprovalRuleUpdateOne) Where(ps ...predicate.ApprovalRule) *ApprovalRuleUpdateOne
- type ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) AddDecision(v int) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) AddPriority(v int) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) AddRiskLevel(v int) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) ClearAlternative() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) ClearCommandPattern() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) ClearFilePattern() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) ClearReason() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) ClearToolCategory() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) ClearToolName() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) ClearToolPattern() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetAlternative(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetCommandPattern(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetDecision(v int) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetEnabled(v bool) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetFilePattern(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetName(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetPriority(v int) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetReason(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetRiskLevel(v int) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetRuleID(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetSource(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetToolCategory(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetToolName(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetToolPattern(v string) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) SetUpdatedAt(v time.Time) *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateAlternative() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateCommandPattern() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateDecision() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateEnabled() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateFilePattern() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateName() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdatePriority() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateReason() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateRiskLevel() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateRuleID() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateSource() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateToolCategory() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateToolName() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateToolPattern() *ApprovalRuleUpsert
- func (u *ApprovalRuleUpsert) UpdateUpdatedAt() *ApprovalRuleUpsert
- type ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) AddDecision(v int) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) AddPriority(v int) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) AddRiskLevel(v int) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) ClearAlternative() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) ClearCommandPattern() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) ClearFilePattern() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) ClearReason() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) ClearToolCategory() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) ClearToolName() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) ClearToolPattern() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) DoNothing() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) Exec(ctx context.Context) error
- func (u *ApprovalRuleUpsertBulk) ExecX(ctx context.Context)
- func (u *ApprovalRuleUpsertBulk) Ignore() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetAlternative(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetCommandPattern(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetDecision(v int) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetEnabled(v bool) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetFilePattern(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetName(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetPriority(v int) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetReason(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetRiskLevel(v int) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetRuleID(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetSource(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetToolCategory(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetToolName(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetToolPattern(v string) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) SetUpdatedAt(v time.Time) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) Update(set func(*ApprovalRuleUpsert)) *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateAlternative() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateCommandPattern() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateDecision() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateEnabled() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateFilePattern() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateName() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateNewValues() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdatePriority() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateReason() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateRiskLevel() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateRuleID() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateSource() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateToolCategory() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateToolName() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateToolPattern() *ApprovalRuleUpsertBulk
- func (u *ApprovalRuleUpsertBulk) UpdateUpdatedAt() *ApprovalRuleUpsertBulk
- type ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) AddDecision(v int) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) AddPriority(v int) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) AddRiskLevel(v int) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) ClearAlternative() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) ClearCommandPattern() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) ClearFilePattern() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) ClearReason() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) ClearToolCategory() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) ClearToolName() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) ClearToolPattern() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) DoNothing() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) Exec(ctx context.Context) error
- func (u *ApprovalRuleUpsertOne) ExecX(ctx context.Context)
- func (u *ApprovalRuleUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ApprovalRuleUpsertOne) IDX(ctx context.Context) int
- func (u *ApprovalRuleUpsertOne) Ignore() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetAlternative(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetCommandPattern(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetDecision(v int) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetEnabled(v bool) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetFilePattern(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetName(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetPriority(v int) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetReason(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetRiskLevel(v int) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetRuleID(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetSource(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetToolCategory(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetToolName(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetToolPattern(v string) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) SetUpdatedAt(v time.Time) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) Update(set func(*ApprovalRuleUpsert)) *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateAlternative() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateCommandPattern() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateDecision() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateEnabled() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateFilePattern() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateName() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateNewValues() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdatePriority() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateReason() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateRiskLevel() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateRuleID() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateSource() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateToolCategory() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateToolName() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateToolPattern() *ApprovalRuleUpsertOne
- func (u *ApprovalRuleUpsertOne) UpdateUpdatedAt() *ApprovalRuleUpsertOne
- type ApprovalRules
- type ClassificationAnalytics
- type ClassificationAnalyticsClient
- func (c *ClassificationAnalyticsClient) Create() *ClassificationAnalyticsCreate
- func (c *ClassificationAnalyticsClient) CreateBulk(builders ...*ClassificationAnalyticsCreate) *ClassificationAnalyticsCreateBulk
- func (c *ClassificationAnalyticsClient) Delete() *ClassificationAnalyticsDelete
- func (c *ClassificationAnalyticsClient) DeleteOne(_m *ClassificationAnalytics) *ClassificationAnalyticsDeleteOne
- func (c *ClassificationAnalyticsClient) DeleteOneID(id int) *ClassificationAnalyticsDeleteOne
- func (c *ClassificationAnalyticsClient) Get(ctx context.Context, id int) (*ClassificationAnalytics, error)
- func (c *ClassificationAnalyticsClient) GetX(ctx context.Context, id int) *ClassificationAnalytics
- func (c *ClassificationAnalyticsClient) Hooks() []Hook
- func (c *ClassificationAnalyticsClient) Intercept(interceptors ...Interceptor)
- func (c *ClassificationAnalyticsClient) Interceptors() []Interceptor
- func (c *ClassificationAnalyticsClient) MapCreateBulk(slice any, setFunc func(*ClassificationAnalyticsCreate, int)) *ClassificationAnalyticsCreateBulk
- func (c *ClassificationAnalyticsClient) Query() *ClassificationAnalyticsQuery
- func (c *ClassificationAnalyticsClient) Update() *ClassificationAnalyticsUpdate
- func (c *ClassificationAnalyticsClient) UpdateOne(_m *ClassificationAnalytics) *ClassificationAnalyticsUpdateOne
- func (c *ClassificationAnalyticsClient) UpdateOneID(id int) *ClassificationAnalyticsUpdateOne
- func (c *ClassificationAnalyticsClient) Use(hooks ...Hook)
- type ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) Exec(ctx context.Context) error
- func (_c *ClassificationAnalyticsCreate) ExecX(ctx context.Context)
- func (_c *ClassificationAnalyticsCreate) Mutation() *ClassificationAnalyticsMutation
- func (_c *ClassificationAnalyticsCreate) OnConflict(opts ...sql.ConflictOption) *ClassificationAnalyticsUpsertOne
- func (_c *ClassificationAnalyticsCreate) OnConflictColumns(columns ...string) *ClassificationAnalyticsUpsertOne
- func (_c *ClassificationAnalyticsCreate) Save(ctx context.Context) (*ClassificationAnalytics, error)
- func (_c *ClassificationAnalyticsCreate) SaveX(ctx context.Context) *ClassificationAnalytics
- func (_c *ClassificationAnalyticsCreate) SetAlternative(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetAnalyticsID(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetApprovalID(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetCommandCategory(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetCommandPreview(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetCommandProgram(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetCommandSubcategory(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetCreatedAt(v time.Time) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetCwd(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetDecision(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetDurationMs(v int64) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableAlternative(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableApprovalID(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableCommandCategory(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableCommandPreview(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableCommandProgram(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableCommandSubcategory(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableCreatedAt(v *time.Time) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableCwd(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableDurationMs(v *int64) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableReason(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableRuleID(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableRuleName(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetNillableSessionID(v *string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetPythonImports(v []string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetReason(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetRiskLevel(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetRuleID(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetRuleName(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetSessionID(v string) *ClassificationAnalyticsCreate
- func (_c *ClassificationAnalyticsCreate) SetToolName(v string) *ClassificationAnalyticsCreate
- type ClassificationAnalyticsCreateBulk
- func (_c *ClassificationAnalyticsCreateBulk) Exec(ctx context.Context) error
- func (_c *ClassificationAnalyticsCreateBulk) ExecX(ctx context.Context)
- func (_c *ClassificationAnalyticsCreateBulk) OnConflict(opts ...sql.ConflictOption) *ClassificationAnalyticsUpsertBulk
- func (_c *ClassificationAnalyticsCreateBulk) OnConflictColumns(columns ...string) *ClassificationAnalyticsUpsertBulk
- func (_c *ClassificationAnalyticsCreateBulk) Save(ctx context.Context) ([]*ClassificationAnalytics, error)
- func (_c *ClassificationAnalyticsCreateBulk) SaveX(ctx context.Context) []*ClassificationAnalytics
- type ClassificationAnalyticsDelete
- type ClassificationAnalyticsDeleteOne
- type ClassificationAnalyticsGroupBy
- func (_g *ClassificationAnalyticsGroupBy) Aggregate(fns ...AggregateFunc) *ClassificationAnalyticsGroupBy
- func (s *ClassificationAnalyticsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ClassificationAnalyticsGroupBy) BoolX(ctx context.Context) bool
- func (s *ClassificationAnalyticsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ClassificationAnalyticsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ClassificationAnalyticsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ClassificationAnalyticsGroupBy) Float64X(ctx context.Context) float64
- func (s *ClassificationAnalyticsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ClassificationAnalyticsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ClassificationAnalyticsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ClassificationAnalyticsGroupBy) IntX(ctx context.Context) int
- func (s *ClassificationAnalyticsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ClassificationAnalyticsGroupBy) IntsX(ctx context.Context) []int
- func (_g *ClassificationAnalyticsGroupBy) Scan(ctx context.Context, v any) error
- func (s *ClassificationAnalyticsGroupBy) ScanX(ctx context.Context, v any)
- func (s *ClassificationAnalyticsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ClassificationAnalyticsGroupBy) StringX(ctx context.Context) string
- func (s *ClassificationAnalyticsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ClassificationAnalyticsGroupBy) StringsX(ctx context.Context) []string
- type ClassificationAnalyticsMutation
- func (m *ClassificationAnalyticsMutation) AddDurationMs(i int64)
- func (m *ClassificationAnalyticsMutation) AddField(name string, value ent.Value) error
- func (m *ClassificationAnalyticsMutation) AddedDurationMs() (r int64, exists bool)
- func (m *ClassificationAnalyticsMutation) AddedEdges() []string
- func (m *ClassificationAnalyticsMutation) AddedField(name string) (ent.Value, bool)
- func (m *ClassificationAnalyticsMutation) AddedFields() []string
- func (m *ClassificationAnalyticsMutation) AddedIDs(name string) []ent.Value
- func (m *ClassificationAnalyticsMutation) Alternative() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) AlternativeCleared() bool
- func (m *ClassificationAnalyticsMutation) AnalyticsID() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) AppendPythonImports(s []string)
- func (m *ClassificationAnalyticsMutation) AppendedPythonImports() ([]string, bool)
- func (m *ClassificationAnalyticsMutation) ApprovalID() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) ApprovalIDCleared() bool
- func (m *ClassificationAnalyticsMutation) ClearAlternative()
- func (m *ClassificationAnalyticsMutation) ClearApprovalID()
- func (m *ClassificationAnalyticsMutation) ClearCommandCategory()
- func (m *ClassificationAnalyticsMutation) ClearCommandPreview()
- func (m *ClassificationAnalyticsMutation) ClearCommandProgram()
- func (m *ClassificationAnalyticsMutation) ClearCommandSubcategory()
- func (m *ClassificationAnalyticsMutation) ClearCwd()
- func (m *ClassificationAnalyticsMutation) ClearEdge(name string) error
- func (m *ClassificationAnalyticsMutation) ClearField(name string) error
- func (m *ClassificationAnalyticsMutation) ClearPythonImports()
- func (m *ClassificationAnalyticsMutation) ClearReason()
- func (m *ClassificationAnalyticsMutation) ClearRuleID()
- func (m *ClassificationAnalyticsMutation) ClearRuleName()
- func (m *ClassificationAnalyticsMutation) ClearSessionID()
- func (m *ClassificationAnalyticsMutation) ClearedEdges() []string
- func (m *ClassificationAnalyticsMutation) ClearedFields() []string
- func (m ClassificationAnalyticsMutation) Client() *Client
- func (m *ClassificationAnalyticsMutation) CommandCategory() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) CommandCategoryCleared() bool
- func (m *ClassificationAnalyticsMutation) CommandPreview() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) CommandPreviewCleared() bool
- func (m *ClassificationAnalyticsMutation) CommandProgram() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) CommandProgramCleared() bool
- func (m *ClassificationAnalyticsMutation) CommandSubcategory() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) CommandSubcategoryCleared() bool
- func (m *ClassificationAnalyticsMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ClassificationAnalyticsMutation) Cwd() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) CwdCleared() bool
- func (m *ClassificationAnalyticsMutation) Decision() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) DurationMs() (r int64, exists bool)
- func (m *ClassificationAnalyticsMutation) EdgeCleared(name string) bool
- func (m *ClassificationAnalyticsMutation) Field(name string) (ent.Value, bool)
- func (m *ClassificationAnalyticsMutation) FieldCleared(name string) bool
- func (m *ClassificationAnalyticsMutation) Fields() []string
- func (m *ClassificationAnalyticsMutation) ID() (id int, exists bool)
- func (m *ClassificationAnalyticsMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ClassificationAnalyticsMutation) OldAlternative(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldAnalyticsID(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldApprovalID(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldCommandCategory(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldCommandPreview(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldCommandProgram(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldCommandSubcategory(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ClassificationAnalyticsMutation) OldCwd(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldDecision(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldDurationMs(ctx context.Context) (v int64, err error)
- func (m *ClassificationAnalyticsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ClassificationAnalyticsMutation) OldPythonImports(ctx context.Context) (v []string, err error)
- func (m *ClassificationAnalyticsMutation) OldReason(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldRiskLevel(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldRuleID(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldRuleName(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldSessionID(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) OldToolName(ctx context.Context) (v string, err error)
- func (m *ClassificationAnalyticsMutation) Op() Op
- func (m *ClassificationAnalyticsMutation) PythonImports() (r []string, exists bool)
- func (m *ClassificationAnalyticsMutation) PythonImportsCleared() bool
- func (m *ClassificationAnalyticsMutation) Reason() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) ReasonCleared() bool
- func (m *ClassificationAnalyticsMutation) RemovedEdges() []string
- func (m *ClassificationAnalyticsMutation) RemovedIDs(name string) []ent.Value
- func (m *ClassificationAnalyticsMutation) ResetAlternative()
- func (m *ClassificationAnalyticsMutation) ResetAnalyticsID()
- func (m *ClassificationAnalyticsMutation) ResetApprovalID()
- func (m *ClassificationAnalyticsMutation) ResetCommandCategory()
- func (m *ClassificationAnalyticsMutation) ResetCommandPreview()
- func (m *ClassificationAnalyticsMutation) ResetCommandProgram()
- func (m *ClassificationAnalyticsMutation) ResetCommandSubcategory()
- func (m *ClassificationAnalyticsMutation) ResetCreatedAt()
- func (m *ClassificationAnalyticsMutation) ResetCwd()
- func (m *ClassificationAnalyticsMutation) ResetDecision()
- func (m *ClassificationAnalyticsMutation) ResetDurationMs()
- func (m *ClassificationAnalyticsMutation) ResetEdge(name string) error
- func (m *ClassificationAnalyticsMutation) ResetField(name string) error
- func (m *ClassificationAnalyticsMutation) ResetPythonImports()
- func (m *ClassificationAnalyticsMutation) ResetReason()
- func (m *ClassificationAnalyticsMutation) ResetRiskLevel()
- func (m *ClassificationAnalyticsMutation) ResetRuleID()
- func (m *ClassificationAnalyticsMutation) ResetRuleName()
- func (m *ClassificationAnalyticsMutation) ResetSessionID()
- func (m *ClassificationAnalyticsMutation) ResetToolName()
- func (m *ClassificationAnalyticsMutation) RiskLevel() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) RuleID() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) RuleIDCleared() bool
- func (m *ClassificationAnalyticsMutation) RuleName() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) RuleNameCleared() bool
- func (m *ClassificationAnalyticsMutation) SessionID() (r string, exists bool)
- func (m *ClassificationAnalyticsMutation) SessionIDCleared() bool
- func (m *ClassificationAnalyticsMutation) SetAlternative(s string)
- func (m *ClassificationAnalyticsMutation) SetAnalyticsID(s string)
- func (m *ClassificationAnalyticsMutation) SetApprovalID(s string)
- func (m *ClassificationAnalyticsMutation) SetCommandCategory(s string)
- func (m *ClassificationAnalyticsMutation) SetCommandPreview(s string)
- func (m *ClassificationAnalyticsMutation) SetCommandProgram(s string)
- func (m *ClassificationAnalyticsMutation) SetCommandSubcategory(s string)
- func (m *ClassificationAnalyticsMutation) SetCreatedAt(t time.Time)
- func (m *ClassificationAnalyticsMutation) SetCwd(s string)
- func (m *ClassificationAnalyticsMutation) SetDecision(s string)
- func (m *ClassificationAnalyticsMutation) SetDurationMs(i int64)
- func (m *ClassificationAnalyticsMutation) SetField(name string, value ent.Value) error
- func (m *ClassificationAnalyticsMutation) SetOp(op Op)
- func (m *ClassificationAnalyticsMutation) SetPythonImports(s []string)
- func (m *ClassificationAnalyticsMutation) SetReason(s string)
- func (m *ClassificationAnalyticsMutation) SetRiskLevel(s string)
- func (m *ClassificationAnalyticsMutation) SetRuleID(s string)
- func (m *ClassificationAnalyticsMutation) SetRuleName(s string)
- func (m *ClassificationAnalyticsMutation) SetSessionID(s string)
- func (m *ClassificationAnalyticsMutation) SetToolName(s string)
- func (m *ClassificationAnalyticsMutation) ToolName() (r string, exists bool)
- func (m ClassificationAnalyticsMutation) Tx() (*Tx, error)
- func (m *ClassificationAnalyticsMutation) Type() string
- func (m *ClassificationAnalyticsMutation) Where(ps ...predicate.ClassificationAnalytics)
- func (m *ClassificationAnalyticsMutation) WhereP(ps ...func(*sql.Selector))
- type ClassificationAnalyticsQuery
- func (_q *ClassificationAnalyticsQuery) Aggregate(fns ...AggregateFunc) *ClassificationAnalyticsSelect
- func (_q *ClassificationAnalyticsQuery) All(ctx context.Context) ([]*ClassificationAnalytics, error)
- func (_q *ClassificationAnalyticsQuery) AllX(ctx context.Context) []*ClassificationAnalytics
- func (_q *ClassificationAnalyticsQuery) Clone() *ClassificationAnalyticsQuery
- func (_q *ClassificationAnalyticsQuery) Count(ctx context.Context) (int, error)
- func (_q *ClassificationAnalyticsQuery) CountX(ctx context.Context) int
- func (_q *ClassificationAnalyticsQuery) Exist(ctx context.Context) (bool, error)
- func (_q *ClassificationAnalyticsQuery) ExistX(ctx context.Context) bool
- func (_q *ClassificationAnalyticsQuery) First(ctx context.Context) (*ClassificationAnalytics, error)
- func (_q *ClassificationAnalyticsQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *ClassificationAnalyticsQuery) FirstIDX(ctx context.Context) int
- func (_q *ClassificationAnalyticsQuery) FirstX(ctx context.Context) *ClassificationAnalytics
- func (_q *ClassificationAnalyticsQuery) GroupBy(field string, fields ...string) *ClassificationAnalyticsGroupBy
- func (_q *ClassificationAnalyticsQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *ClassificationAnalyticsQuery) IDsX(ctx context.Context) []int
- func (_q *ClassificationAnalyticsQuery) Limit(limit int) *ClassificationAnalyticsQuery
- func (_q *ClassificationAnalyticsQuery) Offset(offset int) *ClassificationAnalyticsQuery
- func (_q *ClassificationAnalyticsQuery) Only(ctx context.Context) (*ClassificationAnalytics, error)
- func (_q *ClassificationAnalyticsQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *ClassificationAnalyticsQuery) OnlyIDX(ctx context.Context) int
- func (_q *ClassificationAnalyticsQuery) OnlyX(ctx context.Context) *ClassificationAnalytics
- func (_q *ClassificationAnalyticsQuery) Order(o ...classificationanalytics.OrderOption) *ClassificationAnalyticsQuery
- func (_q *ClassificationAnalyticsQuery) Select(fields ...string) *ClassificationAnalyticsSelect
- func (_q *ClassificationAnalyticsQuery) Unique(unique bool) *ClassificationAnalyticsQuery
- func (_q *ClassificationAnalyticsQuery) Where(ps ...predicate.ClassificationAnalytics) *ClassificationAnalyticsQuery
- type ClassificationAnalyticsSelect
- func (_s *ClassificationAnalyticsSelect) Aggregate(fns ...AggregateFunc) *ClassificationAnalyticsSelect
- func (s *ClassificationAnalyticsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ClassificationAnalyticsSelect) BoolX(ctx context.Context) bool
- func (s *ClassificationAnalyticsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ClassificationAnalyticsSelect) BoolsX(ctx context.Context) []bool
- func (s *ClassificationAnalyticsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ClassificationAnalyticsSelect) Float64X(ctx context.Context) float64
- func (s *ClassificationAnalyticsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ClassificationAnalyticsSelect) Float64sX(ctx context.Context) []float64
- func (s *ClassificationAnalyticsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ClassificationAnalyticsSelect) IntX(ctx context.Context) int
- func (s *ClassificationAnalyticsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ClassificationAnalyticsSelect) IntsX(ctx context.Context) []int
- func (_s *ClassificationAnalyticsSelect) Scan(ctx context.Context, v any) error
- func (s *ClassificationAnalyticsSelect) ScanX(ctx context.Context, v any)
- func (s *ClassificationAnalyticsSelect) String(ctx context.Context) (_ string, err error)
- func (s *ClassificationAnalyticsSelect) StringX(ctx context.Context) string
- func (s *ClassificationAnalyticsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ClassificationAnalyticsSelect) StringsX(ctx context.Context) []string
- type ClassificationAnalyticsSlice
- type ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) AddDurationMs(v int64) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) AppendPythonImports(v []string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearAlternative() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearApprovalID() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearCommandCategory() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearCommandPreview() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearCommandProgram() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearCommandSubcategory() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearCwd() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearPythonImports() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearReason() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearRuleID() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearRuleName() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) ClearSessionID() *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) Exec(ctx context.Context) error
- func (_u *ClassificationAnalyticsUpdate) ExecX(ctx context.Context)
- func (_u *ClassificationAnalyticsUpdate) Mutation() *ClassificationAnalyticsMutation
- func (_u *ClassificationAnalyticsUpdate) Save(ctx context.Context) (int, error)
- func (_u *ClassificationAnalyticsUpdate) SaveX(ctx context.Context) int
- func (_u *ClassificationAnalyticsUpdate) SetAlternative(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetAnalyticsID(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetApprovalID(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetCommandCategory(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetCommandPreview(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetCommandProgram(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetCommandSubcategory(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetCwd(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetDecision(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetDurationMs(v int64) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableAlternative(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableAnalyticsID(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableApprovalID(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableCommandCategory(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableCommandPreview(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableCommandProgram(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableCommandSubcategory(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableCwd(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableDecision(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableDurationMs(v *int64) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableReason(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableRiskLevel(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableRuleID(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableRuleName(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableSessionID(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetNillableToolName(v *string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetPythonImports(v []string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetReason(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetRiskLevel(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetRuleID(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetRuleName(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetSessionID(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) SetToolName(v string) *ClassificationAnalyticsUpdate
- func (_u *ClassificationAnalyticsUpdate) Where(ps ...predicate.ClassificationAnalytics) *ClassificationAnalyticsUpdate
- type ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) AddDurationMs(v int64) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) AppendPythonImports(v []string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearAlternative() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearApprovalID() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearCommandCategory() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearCommandPreview() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearCommandProgram() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearCommandSubcategory() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearCwd() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearPythonImports() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearReason() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearRuleID() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearRuleName() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) ClearSessionID() *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) Exec(ctx context.Context) error
- func (_u *ClassificationAnalyticsUpdateOne) ExecX(ctx context.Context)
- func (_u *ClassificationAnalyticsUpdateOne) Mutation() *ClassificationAnalyticsMutation
- func (_u *ClassificationAnalyticsUpdateOne) Save(ctx context.Context) (*ClassificationAnalytics, error)
- func (_u *ClassificationAnalyticsUpdateOne) SaveX(ctx context.Context) *ClassificationAnalytics
- func (_u *ClassificationAnalyticsUpdateOne) Select(field string, fields ...string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetAlternative(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetAnalyticsID(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetApprovalID(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetCommandCategory(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetCommandPreview(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetCommandProgram(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetCommandSubcategory(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetCwd(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetDecision(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetDurationMs(v int64) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableAlternative(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableAnalyticsID(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableApprovalID(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableCommandCategory(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableCommandPreview(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableCommandProgram(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableCommandSubcategory(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableCwd(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableDecision(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableDurationMs(v *int64) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableReason(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableRiskLevel(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableRuleID(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableRuleName(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableSessionID(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetNillableToolName(v *string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetPythonImports(v []string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetReason(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetRiskLevel(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetRuleID(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetRuleName(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetSessionID(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) SetToolName(v string) *ClassificationAnalyticsUpdateOne
- func (_u *ClassificationAnalyticsUpdateOne) Where(ps ...predicate.ClassificationAnalytics) *ClassificationAnalyticsUpdateOne
- type ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) AddDurationMs(v int64) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearAlternative() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearApprovalID() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearCommandCategory() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearCommandPreview() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearCommandProgram() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearCommandSubcategory() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearCwd() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearPythonImports() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearReason() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearRuleID() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearRuleName() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) ClearSessionID() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetAlternative(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetAnalyticsID(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetApprovalID(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetCommandCategory(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetCommandPreview(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetCommandProgram(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetCommandSubcategory(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetCwd(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetDecision(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetDurationMs(v int64) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetPythonImports(v []string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetReason(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetRiskLevel(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetRuleID(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetRuleName(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetSessionID(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) SetToolName(v string) *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateAlternative() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateAnalyticsID() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateApprovalID() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateCommandCategory() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateCommandPreview() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateCommandProgram() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateCommandSubcategory() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateCwd() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateDecision() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateDurationMs() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdatePythonImports() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateReason() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateRiskLevel() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateRuleID() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateRuleName() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateSessionID() *ClassificationAnalyticsUpsert
- func (u *ClassificationAnalyticsUpsert) UpdateToolName() *ClassificationAnalyticsUpsert
- type ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) AddDurationMs(v int64) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearAlternative() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearApprovalID() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearCommandCategory() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearCommandPreview() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearCommandProgram() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearCommandSubcategory() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearCwd() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearPythonImports() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearReason() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearRuleID() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearRuleName() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) ClearSessionID() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) DoNothing() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) Exec(ctx context.Context) error
- func (u *ClassificationAnalyticsUpsertBulk) ExecX(ctx context.Context)
- func (u *ClassificationAnalyticsUpsertBulk) Ignore() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetAlternative(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetAnalyticsID(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetApprovalID(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetCommandCategory(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetCommandPreview(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetCommandProgram(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetCommandSubcategory(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetCwd(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetDecision(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetDurationMs(v int64) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetPythonImports(v []string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetReason(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetRiskLevel(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetRuleID(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetRuleName(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetSessionID(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) SetToolName(v string) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) Update(set func(*ClassificationAnalyticsUpsert)) *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateAlternative() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateAnalyticsID() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateApprovalID() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateCommandCategory() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateCommandPreview() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateCommandProgram() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateCommandSubcategory() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateCwd() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateDecision() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateDurationMs() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateNewValues() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdatePythonImports() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateReason() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateRiskLevel() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateRuleID() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateRuleName() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateSessionID() *ClassificationAnalyticsUpsertBulk
- func (u *ClassificationAnalyticsUpsertBulk) UpdateToolName() *ClassificationAnalyticsUpsertBulk
- type ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) AddDurationMs(v int64) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearAlternative() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearApprovalID() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearCommandCategory() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearCommandPreview() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearCommandProgram() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearCommandSubcategory() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearCwd() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearPythonImports() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearReason() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearRuleID() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearRuleName() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) ClearSessionID() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) DoNothing() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) Exec(ctx context.Context) error
- func (u *ClassificationAnalyticsUpsertOne) ExecX(ctx context.Context)
- func (u *ClassificationAnalyticsUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ClassificationAnalyticsUpsertOne) IDX(ctx context.Context) int
- func (u *ClassificationAnalyticsUpsertOne) Ignore() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetAlternative(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetAnalyticsID(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetApprovalID(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetCommandCategory(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetCommandPreview(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetCommandProgram(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetCommandSubcategory(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetCwd(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetDecision(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetDurationMs(v int64) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetPythonImports(v []string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetReason(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetRiskLevel(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetRuleID(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetRuleName(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetSessionID(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) SetToolName(v string) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) Update(set func(*ClassificationAnalyticsUpsert)) *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateAlternative() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateAnalyticsID() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateApprovalID() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateCommandCategory() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateCommandPreview() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateCommandProgram() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateCommandSubcategory() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateCwd() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateDecision() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateDurationMs() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateNewValues() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdatePythonImports() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateReason() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateRiskLevel() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateRuleID() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateRuleName() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateSessionID() *ClassificationAnalyticsUpsertOne
- func (u *ClassificationAnalyticsUpsertOne) UpdateToolName() *ClassificationAnalyticsUpsertOne
- type ClaudeMetadata
- type ClaudeMetadataClient
- func (c *ClaudeMetadataClient) Create() *ClaudeMetadataCreate
- func (c *ClaudeMetadataClient) CreateBulk(builders ...*ClaudeMetadataCreate) *ClaudeMetadataCreateBulk
- func (c *ClaudeMetadataClient) Delete() *ClaudeMetadataDelete
- func (c *ClaudeMetadataClient) DeleteOne(_m *ClaudeMetadata) *ClaudeMetadataDeleteOne
- func (c *ClaudeMetadataClient) DeleteOneID(id int) *ClaudeMetadataDeleteOne
- func (c *ClaudeMetadataClient) Get(ctx context.Context, id int) (*ClaudeMetadata, error)
- func (c *ClaudeMetadataClient) GetX(ctx context.Context, id int) *ClaudeMetadata
- func (c *ClaudeMetadataClient) Hooks() []Hook
- func (c *ClaudeMetadataClient) Intercept(interceptors ...Interceptor)
- func (c *ClaudeMetadataClient) Interceptors() []Interceptor
- func (c *ClaudeMetadataClient) MapCreateBulk(slice any, setFunc func(*ClaudeMetadataCreate, int)) *ClaudeMetadataCreateBulk
- func (c *ClaudeMetadataClient) Query() *ClaudeMetadataQuery
- func (c *ClaudeMetadataClient) QueryClaudeSession(_m *ClaudeMetadata) *ClaudeSessionQuery
- func (c *ClaudeMetadataClient) Update() *ClaudeMetadataUpdate
- func (c *ClaudeMetadataClient) UpdateOne(_m *ClaudeMetadata) *ClaudeMetadataUpdateOne
- func (c *ClaudeMetadataClient) UpdateOneID(id int) *ClaudeMetadataUpdateOne
- func (c *ClaudeMetadataClient) Use(hooks ...Hook)
- type ClaudeMetadataCreate
- func (_c *ClaudeMetadataCreate) Exec(ctx context.Context) error
- func (_c *ClaudeMetadataCreate) ExecX(ctx context.Context)
- func (_c *ClaudeMetadataCreate) Mutation() *ClaudeMetadataMutation
- func (_c *ClaudeMetadataCreate) OnConflict(opts ...sql.ConflictOption) *ClaudeMetadataUpsertOne
- func (_c *ClaudeMetadataCreate) OnConflictColumns(columns ...string) *ClaudeMetadataUpsertOne
- func (_c *ClaudeMetadataCreate) Save(ctx context.Context) (*ClaudeMetadata, error)
- func (_c *ClaudeMetadataCreate) SaveX(ctx context.Context) *ClaudeMetadata
- func (_c *ClaudeMetadataCreate) SetClaudeSession(v *ClaudeSession) *ClaudeMetadataCreate
- func (_c *ClaudeMetadataCreate) SetClaudeSessionID(id int) *ClaudeMetadataCreate
- func (_c *ClaudeMetadataCreate) SetKey(v string) *ClaudeMetadataCreate
- func (_c *ClaudeMetadataCreate) SetValue(v string) *ClaudeMetadataCreate
- type ClaudeMetadataCreateBulk
- func (_c *ClaudeMetadataCreateBulk) Exec(ctx context.Context) error
- func (_c *ClaudeMetadataCreateBulk) ExecX(ctx context.Context)
- func (_c *ClaudeMetadataCreateBulk) OnConflict(opts ...sql.ConflictOption) *ClaudeMetadataUpsertBulk
- func (_c *ClaudeMetadataCreateBulk) OnConflictColumns(columns ...string) *ClaudeMetadataUpsertBulk
- func (_c *ClaudeMetadataCreateBulk) Save(ctx context.Context) ([]*ClaudeMetadata, error)
- func (_c *ClaudeMetadataCreateBulk) SaveX(ctx context.Context) []*ClaudeMetadata
- type ClaudeMetadataDelete
- type ClaudeMetadataDeleteOne
- type ClaudeMetadataEdges
- type ClaudeMetadataGroupBy
- func (_g *ClaudeMetadataGroupBy) Aggregate(fns ...AggregateFunc) *ClaudeMetadataGroupBy
- func (s *ClaudeMetadataGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ClaudeMetadataGroupBy) BoolX(ctx context.Context) bool
- func (s *ClaudeMetadataGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ClaudeMetadataGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ClaudeMetadataGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ClaudeMetadataGroupBy) Float64X(ctx context.Context) float64
- func (s *ClaudeMetadataGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ClaudeMetadataGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ClaudeMetadataGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ClaudeMetadataGroupBy) IntX(ctx context.Context) int
- func (s *ClaudeMetadataGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ClaudeMetadataGroupBy) IntsX(ctx context.Context) []int
- func (_g *ClaudeMetadataGroupBy) Scan(ctx context.Context, v any) error
- func (s *ClaudeMetadataGroupBy) ScanX(ctx context.Context, v any)
- func (s *ClaudeMetadataGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ClaudeMetadataGroupBy) StringX(ctx context.Context) string
- func (s *ClaudeMetadataGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ClaudeMetadataGroupBy) StringsX(ctx context.Context) []string
- type ClaudeMetadataMutation
- func (m *ClaudeMetadataMutation) AddField(name string, value ent.Value) error
- func (m *ClaudeMetadataMutation) AddedEdges() []string
- func (m *ClaudeMetadataMutation) AddedField(name string) (ent.Value, bool)
- func (m *ClaudeMetadataMutation) AddedFields() []string
- func (m *ClaudeMetadataMutation) AddedIDs(name string) []ent.Value
- func (m *ClaudeMetadataMutation) ClaudeSessionCleared() bool
- func (m *ClaudeMetadataMutation) ClaudeSessionID() (id int, exists bool)
- func (m *ClaudeMetadataMutation) ClaudeSessionIDs() (ids []int)
- func (m *ClaudeMetadataMutation) ClearClaudeSession()
- func (m *ClaudeMetadataMutation) ClearEdge(name string) error
- func (m *ClaudeMetadataMutation) ClearField(name string) error
- func (m *ClaudeMetadataMutation) ClearedEdges() []string
- func (m *ClaudeMetadataMutation) ClearedFields() []string
- func (m ClaudeMetadataMutation) Client() *Client
- func (m *ClaudeMetadataMutation) EdgeCleared(name string) bool
- func (m *ClaudeMetadataMutation) Field(name string) (ent.Value, bool)
- func (m *ClaudeMetadataMutation) FieldCleared(name string) bool
- func (m *ClaudeMetadataMutation) Fields() []string
- func (m *ClaudeMetadataMutation) ID() (id int, exists bool)
- func (m *ClaudeMetadataMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ClaudeMetadataMutation) Key() (r string, exists bool)
- func (m *ClaudeMetadataMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ClaudeMetadataMutation) OldKey(ctx context.Context) (v string, err error)
- func (m *ClaudeMetadataMutation) OldValue(ctx context.Context) (v string, err error)
- func (m *ClaudeMetadataMutation) Op() Op
- func (m *ClaudeMetadataMutation) RemovedEdges() []string
- func (m *ClaudeMetadataMutation) RemovedIDs(name string) []ent.Value
- func (m *ClaudeMetadataMutation) ResetClaudeSession()
- func (m *ClaudeMetadataMutation) ResetEdge(name string) error
- func (m *ClaudeMetadataMutation) ResetField(name string) error
- func (m *ClaudeMetadataMutation) ResetKey()
- func (m *ClaudeMetadataMutation) ResetValue()
- func (m *ClaudeMetadataMutation) SetClaudeSessionID(id int)
- func (m *ClaudeMetadataMutation) SetField(name string, value ent.Value) error
- func (m *ClaudeMetadataMutation) SetKey(s string)
- func (m *ClaudeMetadataMutation) SetOp(op Op)
- func (m *ClaudeMetadataMutation) SetValue(s string)
- func (m ClaudeMetadataMutation) Tx() (*Tx, error)
- func (m *ClaudeMetadataMutation) Type() string
- func (m *ClaudeMetadataMutation) Value() (r string, exists bool)
- func (m *ClaudeMetadataMutation) Where(ps ...predicate.ClaudeMetadata)
- func (m *ClaudeMetadataMutation) WhereP(ps ...func(*sql.Selector))
- type ClaudeMetadataQuery
- func (_q *ClaudeMetadataQuery) Aggregate(fns ...AggregateFunc) *ClaudeMetadataSelect
- func (_q *ClaudeMetadataQuery) All(ctx context.Context) ([]*ClaudeMetadata, error)
- func (_q *ClaudeMetadataQuery) AllX(ctx context.Context) []*ClaudeMetadata
- func (_q *ClaudeMetadataQuery) Clone() *ClaudeMetadataQuery
- func (_q *ClaudeMetadataQuery) Count(ctx context.Context) (int, error)
- func (_q *ClaudeMetadataQuery) CountX(ctx context.Context) int
- func (_q *ClaudeMetadataQuery) Exist(ctx context.Context) (bool, error)
- func (_q *ClaudeMetadataQuery) ExistX(ctx context.Context) bool
- func (_q *ClaudeMetadataQuery) First(ctx context.Context) (*ClaudeMetadata, error)
- func (_q *ClaudeMetadataQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *ClaudeMetadataQuery) FirstIDX(ctx context.Context) int
- func (_q *ClaudeMetadataQuery) FirstX(ctx context.Context) *ClaudeMetadata
- func (_q *ClaudeMetadataQuery) GroupBy(field string, fields ...string) *ClaudeMetadataGroupBy
- func (_q *ClaudeMetadataQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *ClaudeMetadataQuery) IDsX(ctx context.Context) []int
- func (_q *ClaudeMetadataQuery) Limit(limit int) *ClaudeMetadataQuery
- func (_q *ClaudeMetadataQuery) Offset(offset int) *ClaudeMetadataQuery
- func (_q *ClaudeMetadataQuery) Only(ctx context.Context) (*ClaudeMetadata, error)
- func (_q *ClaudeMetadataQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *ClaudeMetadataQuery) OnlyIDX(ctx context.Context) int
- func (_q *ClaudeMetadataQuery) OnlyX(ctx context.Context) *ClaudeMetadata
- func (_q *ClaudeMetadataQuery) Order(o ...claudemetadata.OrderOption) *ClaudeMetadataQuery
- func (_q *ClaudeMetadataQuery) QueryClaudeSession() *ClaudeSessionQuery
- func (_q *ClaudeMetadataQuery) Select(fields ...string) *ClaudeMetadataSelect
- func (_q *ClaudeMetadataQuery) Unique(unique bool) *ClaudeMetadataQuery
- func (_q *ClaudeMetadataQuery) Where(ps ...predicate.ClaudeMetadata) *ClaudeMetadataQuery
- func (_q *ClaudeMetadataQuery) WithClaudeSession(opts ...func(*ClaudeSessionQuery)) *ClaudeMetadataQuery
- type ClaudeMetadataSelect
- func (_s *ClaudeMetadataSelect) Aggregate(fns ...AggregateFunc) *ClaudeMetadataSelect
- func (s *ClaudeMetadataSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ClaudeMetadataSelect) BoolX(ctx context.Context) bool
- func (s *ClaudeMetadataSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ClaudeMetadataSelect) BoolsX(ctx context.Context) []bool
- func (s *ClaudeMetadataSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ClaudeMetadataSelect) Float64X(ctx context.Context) float64
- func (s *ClaudeMetadataSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ClaudeMetadataSelect) Float64sX(ctx context.Context) []float64
- func (s *ClaudeMetadataSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ClaudeMetadataSelect) IntX(ctx context.Context) int
- func (s *ClaudeMetadataSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ClaudeMetadataSelect) IntsX(ctx context.Context) []int
- func (_s *ClaudeMetadataSelect) Scan(ctx context.Context, v any) error
- func (s *ClaudeMetadataSelect) ScanX(ctx context.Context, v any)
- func (s *ClaudeMetadataSelect) String(ctx context.Context) (_ string, err error)
- func (s *ClaudeMetadataSelect) StringX(ctx context.Context) string
- func (s *ClaudeMetadataSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ClaudeMetadataSelect) StringsX(ctx context.Context) []string
- type ClaudeMetadataSlice
- type ClaudeMetadataUpdate
- func (_u *ClaudeMetadataUpdate) ClearClaudeSession() *ClaudeMetadataUpdate
- func (_u *ClaudeMetadataUpdate) Exec(ctx context.Context) error
- func (_u *ClaudeMetadataUpdate) ExecX(ctx context.Context)
- func (_u *ClaudeMetadataUpdate) Mutation() *ClaudeMetadataMutation
- func (_u *ClaudeMetadataUpdate) Save(ctx context.Context) (int, error)
- func (_u *ClaudeMetadataUpdate) SaveX(ctx context.Context) int
- func (_u *ClaudeMetadataUpdate) SetClaudeSession(v *ClaudeSession) *ClaudeMetadataUpdate
- func (_u *ClaudeMetadataUpdate) SetClaudeSessionID(id int) *ClaudeMetadataUpdate
- func (_u *ClaudeMetadataUpdate) SetKey(v string) *ClaudeMetadataUpdate
- func (_u *ClaudeMetadataUpdate) SetNillableKey(v *string) *ClaudeMetadataUpdate
- func (_u *ClaudeMetadataUpdate) SetNillableValue(v *string) *ClaudeMetadataUpdate
- func (_u *ClaudeMetadataUpdate) SetValue(v string) *ClaudeMetadataUpdate
- func (_u *ClaudeMetadataUpdate) Where(ps ...predicate.ClaudeMetadata) *ClaudeMetadataUpdate
- type ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) ClearClaudeSession() *ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) Exec(ctx context.Context) error
- func (_u *ClaudeMetadataUpdateOne) ExecX(ctx context.Context)
- func (_u *ClaudeMetadataUpdateOne) Mutation() *ClaudeMetadataMutation
- func (_u *ClaudeMetadataUpdateOne) Save(ctx context.Context) (*ClaudeMetadata, error)
- func (_u *ClaudeMetadataUpdateOne) SaveX(ctx context.Context) *ClaudeMetadata
- func (_u *ClaudeMetadataUpdateOne) Select(field string, fields ...string) *ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) SetClaudeSession(v *ClaudeSession) *ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) SetClaudeSessionID(id int) *ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) SetKey(v string) *ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) SetNillableKey(v *string) *ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) SetNillableValue(v *string) *ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) SetValue(v string) *ClaudeMetadataUpdateOne
- func (_u *ClaudeMetadataUpdateOne) Where(ps ...predicate.ClaudeMetadata) *ClaudeMetadataUpdateOne
- type ClaudeMetadataUpsert
- type ClaudeMetadataUpsertBulk
- func (u *ClaudeMetadataUpsertBulk) DoNothing() *ClaudeMetadataUpsertBulk
- func (u *ClaudeMetadataUpsertBulk) Exec(ctx context.Context) error
- func (u *ClaudeMetadataUpsertBulk) ExecX(ctx context.Context)
- func (u *ClaudeMetadataUpsertBulk) Ignore() *ClaudeMetadataUpsertBulk
- func (u *ClaudeMetadataUpsertBulk) SetKey(v string) *ClaudeMetadataUpsertBulk
- func (u *ClaudeMetadataUpsertBulk) SetValue(v string) *ClaudeMetadataUpsertBulk
- func (u *ClaudeMetadataUpsertBulk) Update(set func(*ClaudeMetadataUpsert)) *ClaudeMetadataUpsertBulk
- func (u *ClaudeMetadataUpsertBulk) UpdateKey() *ClaudeMetadataUpsertBulk
- func (u *ClaudeMetadataUpsertBulk) UpdateNewValues() *ClaudeMetadataUpsertBulk
- func (u *ClaudeMetadataUpsertBulk) UpdateValue() *ClaudeMetadataUpsertBulk
- type ClaudeMetadataUpsertOne
- func (u *ClaudeMetadataUpsertOne) DoNothing() *ClaudeMetadataUpsertOne
- func (u *ClaudeMetadataUpsertOne) Exec(ctx context.Context) error
- func (u *ClaudeMetadataUpsertOne) ExecX(ctx context.Context)
- func (u *ClaudeMetadataUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ClaudeMetadataUpsertOne) IDX(ctx context.Context) int
- func (u *ClaudeMetadataUpsertOne) Ignore() *ClaudeMetadataUpsertOne
- func (u *ClaudeMetadataUpsertOne) SetKey(v string) *ClaudeMetadataUpsertOne
- func (u *ClaudeMetadataUpsertOne) SetValue(v string) *ClaudeMetadataUpsertOne
- func (u *ClaudeMetadataUpsertOne) Update(set func(*ClaudeMetadataUpsert)) *ClaudeMetadataUpsertOne
- func (u *ClaudeMetadataUpsertOne) UpdateKey() *ClaudeMetadataUpsertOne
- func (u *ClaudeMetadataUpsertOne) UpdateNewValues() *ClaudeMetadataUpsertOne
- func (u *ClaudeMetadataUpsertOne) UpdateValue() *ClaudeMetadataUpsertOne
- type ClaudeSession
- func (_m *ClaudeSession) QueryMetadata() *ClaudeMetadataQuery
- func (_m *ClaudeSession) QuerySession() *SessionQuery
- func (_m *ClaudeSession) String() string
- func (_m *ClaudeSession) Unwrap() *ClaudeSession
- func (_m *ClaudeSession) Update() *ClaudeSessionUpdateOne
- func (_m *ClaudeSession) Value(name string) (ent.Value, error)
- type ClaudeSessionClient
- func (c *ClaudeSessionClient) Create() *ClaudeSessionCreate
- func (c *ClaudeSessionClient) CreateBulk(builders ...*ClaudeSessionCreate) *ClaudeSessionCreateBulk
- func (c *ClaudeSessionClient) Delete() *ClaudeSessionDelete
- func (c *ClaudeSessionClient) DeleteOne(_m *ClaudeSession) *ClaudeSessionDeleteOne
- func (c *ClaudeSessionClient) DeleteOneID(id int) *ClaudeSessionDeleteOne
- func (c *ClaudeSessionClient) Get(ctx context.Context, id int) (*ClaudeSession, error)
- func (c *ClaudeSessionClient) GetX(ctx context.Context, id int) *ClaudeSession
- func (c *ClaudeSessionClient) Hooks() []Hook
- func (c *ClaudeSessionClient) Intercept(interceptors ...Interceptor)
- func (c *ClaudeSessionClient) Interceptors() []Interceptor
- func (c *ClaudeSessionClient) MapCreateBulk(slice any, setFunc func(*ClaudeSessionCreate, int)) *ClaudeSessionCreateBulk
- func (c *ClaudeSessionClient) Query() *ClaudeSessionQuery
- func (c *ClaudeSessionClient) QueryMetadata(_m *ClaudeSession) *ClaudeMetadataQuery
- func (c *ClaudeSessionClient) QuerySession(_m *ClaudeSession) *SessionQuery
- func (c *ClaudeSessionClient) Update() *ClaudeSessionUpdate
- func (c *ClaudeSessionClient) UpdateOne(_m *ClaudeSession) *ClaudeSessionUpdateOne
- func (c *ClaudeSessionClient) UpdateOneID(id int) *ClaudeSessionUpdateOne
- func (c *ClaudeSessionClient) Use(hooks ...Hook)
- type ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) AddMetadata(v ...*ClaudeMetadata) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) AddMetadatumIDs(ids ...int) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) Exec(ctx context.Context) error
- func (_c *ClaudeSessionCreate) ExecX(ctx context.Context)
- func (_c *ClaudeSessionCreate) Mutation() *ClaudeSessionMutation
- func (_c *ClaudeSessionCreate) OnConflict(opts ...sql.ConflictOption) *ClaudeSessionUpsertOne
- func (_c *ClaudeSessionCreate) OnConflictColumns(columns ...string) *ClaudeSessionUpsertOne
- func (_c *ClaudeSessionCreate) Save(ctx context.Context) (*ClaudeSession, error)
- func (_c *ClaudeSessionCreate) SaveX(ctx context.Context) *ClaudeSession
- func (_c *ClaudeSessionCreate) SetAutoReattach(v bool) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetClaudeSessionID(v string) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetConversationID(v string) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetCreateNewOnMissing(v bool) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetLastAttached(v time.Time) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetNillableAutoReattach(v *bool) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetNillableConversationID(v *string) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetNillableCreateNewOnMissing(v *bool) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetNillableLastAttached(v *time.Time) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetNillablePreferredSessionName(v *string) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetNillableProjectName(v *string) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetNillableSessionTimeoutMinutes(v *int) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetNillableShowSessionSelector(v *bool) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetPreferredSessionName(v string) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetProjectName(v string) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetSession(v *Session) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetSessionID(id int) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetSessionTimeoutMinutes(v int) *ClaudeSessionCreate
- func (_c *ClaudeSessionCreate) SetShowSessionSelector(v bool) *ClaudeSessionCreate
- type ClaudeSessionCreateBulk
- func (_c *ClaudeSessionCreateBulk) Exec(ctx context.Context) error
- func (_c *ClaudeSessionCreateBulk) ExecX(ctx context.Context)
- func (_c *ClaudeSessionCreateBulk) OnConflict(opts ...sql.ConflictOption) *ClaudeSessionUpsertBulk
- func (_c *ClaudeSessionCreateBulk) OnConflictColumns(columns ...string) *ClaudeSessionUpsertBulk
- func (_c *ClaudeSessionCreateBulk) Save(ctx context.Context) ([]*ClaudeSession, error)
- func (_c *ClaudeSessionCreateBulk) SaveX(ctx context.Context) []*ClaudeSession
- type ClaudeSessionDelete
- type ClaudeSessionDeleteOne
- type ClaudeSessionEdges
- type ClaudeSessionGroupBy
- func (_g *ClaudeSessionGroupBy) Aggregate(fns ...AggregateFunc) *ClaudeSessionGroupBy
- func (s *ClaudeSessionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ClaudeSessionGroupBy) BoolX(ctx context.Context) bool
- func (s *ClaudeSessionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ClaudeSessionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ClaudeSessionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ClaudeSessionGroupBy) Float64X(ctx context.Context) float64
- func (s *ClaudeSessionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ClaudeSessionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ClaudeSessionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ClaudeSessionGroupBy) IntX(ctx context.Context) int
- func (s *ClaudeSessionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ClaudeSessionGroupBy) IntsX(ctx context.Context) []int
- func (_g *ClaudeSessionGroupBy) Scan(ctx context.Context, v any) error
- func (s *ClaudeSessionGroupBy) ScanX(ctx context.Context, v any)
- func (s *ClaudeSessionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ClaudeSessionGroupBy) StringX(ctx context.Context) string
- func (s *ClaudeSessionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ClaudeSessionGroupBy) StringsX(ctx context.Context) []string
- type ClaudeSessionMutation
- func (m *ClaudeSessionMutation) AddField(name string, value ent.Value) error
- func (m *ClaudeSessionMutation) AddMetadatumIDs(ids ...int)
- func (m *ClaudeSessionMutation) AddSessionTimeoutMinutes(i int)
- func (m *ClaudeSessionMutation) AddedEdges() []string
- func (m *ClaudeSessionMutation) AddedField(name string) (ent.Value, bool)
- func (m *ClaudeSessionMutation) AddedFields() []string
- func (m *ClaudeSessionMutation) AddedIDs(name string) []ent.Value
- func (m *ClaudeSessionMutation) AddedSessionTimeoutMinutes() (r int, exists bool)
- func (m *ClaudeSessionMutation) AutoReattach() (r bool, exists bool)
- func (m *ClaudeSessionMutation) ClaudeSessionID() (r string, exists bool)
- func (m *ClaudeSessionMutation) ClearConversationID()
- func (m *ClaudeSessionMutation) ClearEdge(name string) error
- func (m *ClaudeSessionMutation) ClearField(name string) error
- func (m *ClaudeSessionMutation) ClearLastAttached()
- func (m *ClaudeSessionMutation) ClearMetadata()
- func (m *ClaudeSessionMutation) ClearPreferredSessionName()
- func (m *ClaudeSessionMutation) ClearProjectName()
- func (m *ClaudeSessionMutation) ClearSession()
- func (m *ClaudeSessionMutation) ClearedEdges() []string
- func (m *ClaudeSessionMutation) ClearedFields() []string
- func (m ClaudeSessionMutation) Client() *Client
- func (m *ClaudeSessionMutation) ConversationID() (r string, exists bool)
- func (m *ClaudeSessionMutation) ConversationIDCleared() bool
- func (m *ClaudeSessionMutation) CreateNewOnMissing() (r bool, exists bool)
- func (m *ClaudeSessionMutation) EdgeCleared(name string) bool
- func (m *ClaudeSessionMutation) Field(name string) (ent.Value, bool)
- func (m *ClaudeSessionMutation) FieldCleared(name string) bool
- func (m *ClaudeSessionMutation) Fields() []string
- func (m *ClaudeSessionMutation) ID() (id int, exists bool)
- func (m *ClaudeSessionMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ClaudeSessionMutation) LastAttached() (r time.Time, exists bool)
- func (m *ClaudeSessionMutation) LastAttachedCleared() bool
- func (m *ClaudeSessionMutation) MetadataCleared() bool
- func (m *ClaudeSessionMutation) MetadataIDs() (ids []int)
- func (m *ClaudeSessionMutation) OldAutoReattach(ctx context.Context) (v bool, err error)
- func (m *ClaudeSessionMutation) OldClaudeSessionID(ctx context.Context) (v string, err error)
- func (m *ClaudeSessionMutation) OldConversationID(ctx context.Context) (v string, err error)
- func (m *ClaudeSessionMutation) OldCreateNewOnMissing(ctx context.Context) (v bool, err error)
- func (m *ClaudeSessionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ClaudeSessionMutation) OldLastAttached(ctx context.Context) (v *time.Time, err error)
- func (m *ClaudeSessionMutation) OldPreferredSessionName(ctx context.Context) (v string, err error)
- func (m *ClaudeSessionMutation) OldProjectName(ctx context.Context) (v string, err error)
- func (m *ClaudeSessionMutation) OldSessionTimeoutMinutes(ctx context.Context) (v int, err error)
- func (m *ClaudeSessionMutation) OldShowSessionSelector(ctx context.Context) (v bool, err error)
- func (m *ClaudeSessionMutation) Op() Op
- func (m *ClaudeSessionMutation) PreferredSessionName() (r string, exists bool)
- func (m *ClaudeSessionMutation) PreferredSessionNameCleared() bool
- func (m *ClaudeSessionMutation) ProjectName() (r string, exists bool)
- func (m *ClaudeSessionMutation) ProjectNameCleared() bool
- func (m *ClaudeSessionMutation) RemoveMetadatumIDs(ids ...int)
- func (m *ClaudeSessionMutation) RemovedEdges() []string
- func (m *ClaudeSessionMutation) RemovedIDs(name string) []ent.Value
- func (m *ClaudeSessionMutation) RemovedMetadataIDs() (ids []int)
- func (m *ClaudeSessionMutation) ResetAutoReattach()
- func (m *ClaudeSessionMutation) ResetClaudeSessionID()
- func (m *ClaudeSessionMutation) ResetConversationID()
- func (m *ClaudeSessionMutation) ResetCreateNewOnMissing()
- func (m *ClaudeSessionMutation) ResetEdge(name string) error
- func (m *ClaudeSessionMutation) ResetField(name string) error
- func (m *ClaudeSessionMutation) ResetLastAttached()
- func (m *ClaudeSessionMutation) ResetMetadata()
- func (m *ClaudeSessionMutation) ResetPreferredSessionName()
- func (m *ClaudeSessionMutation) ResetProjectName()
- func (m *ClaudeSessionMutation) ResetSession()
- func (m *ClaudeSessionMutation) ResetSessionTimeoutMinutes()
- func (m *ClaudeSessionMutation) ResetShowSessionSelector()
- func (m *ClaudeSessionMutation) SessionCleared() bool
- func (m *ClaudeSessionMutation) SessionID() (id int, exists bool)
- func (m *ClaudeSessionMutation) SessionIDs() (ids []int)
- func (m *ClaudeSessionMutation) SessionTimeoutMinutes() (r int, exists bool)
- func (m *ClaudeSessionMutation) SetAutoReattach(b bool)
- func (m *ClaudeSessionMutation) SetClaudeSessionID(s string)
- func (m *ClaudeSessionMutation) SetConversationID(s string)
- func (m *ClaudeSessionMutation) SetCreateNewOnMissing(b bool)
- func (m *ClaudeSessionMutation) SetField(name string, value ent.Value) error
- func (m *ClaudeSessionMutation) SetLastAttached(t time.Time)
- func (m *ClaudeSessionMutation) SetOp(op Op)
- func (m *ClaudeSessionMutation) SetPreferredSessionName(s string)
- func (m *ClaudeSessionMutation) SetProjectName(s string)
- func (m *ClaudeSessionMutation) SetSessionID(id int)
- func (m *ClaudeSessionMutation) SetSessionTimeoutMinutes(i int)
- func (m *ClaudeSessionMutation) SetShowSessionSelector(b bool)
- func (m *ClaudeSessionMutation) ShowSessionSelector() (r bool, exists bool)
- func (m ClaudeSessionMutation) Tx() (*Tx, error)
- func (m *ClaudeSessionMutation) Type() string
- func (m *ClaudeSessionMutation) Where(ps ...predicate.ClaudeSession)
- func (m *ClaudeSessionMutation) WhereP(ps ...func(*sql.Selector))
- type ClaudeSessionQuery
- func (_q *ClaudeSessionQuery) Aggregate(fns ...AggregateFunc) *ClaudeSessionSelect
- func (_q *ClaudeSessionQuery) All(ctx context.Context) ([]*ClaudeSession, error)
- func (_q *ClaudeSessionQuery) AllX(ctx context.Context) []*ClaudeSession
- func (_q *ClaudeSessionQuery) Clone() *ClaudeSessionQuery
- func (_q *ClaudeSessionQuery) Count(ctx context.Context) (int, error)
- func (_q *ClaudeSessionQuery) CountX(ctx context.Context) int
- func (_q *ClaudeSessionQuery) Exist(ctx context.Context) (bool, error)
- func (_q *ClaudeSessionQuery) ExistX(ctx context.Context) bool
- func (_q *ClaudeSessionQuery) First(ctx context.Context) (*ClaudeSession, error)
- func (_q *ClaudeSessionQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *ClaudeSessionQuery) FirstIDX(ctx context.Context) int
- func (_q *ClaudeSessionQuery) FirstX(ctx context.Context) *ClaudeSession
- func (_q *ClaudeSessionQuery) GroupBy(field string, fields ...string) *ClaudeSessionGroupBy
- func (_q *ClaudeSessionQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *ClaudeSessionQuery) IDsX(ctx context.Context) []int
- func (_q *ClaudeSessionQuery) Limit(limit int) *ClaudeSessionQuery
- func (_q *ClaudeSessionQuery) Offset(offset int) *ClaudeSessionQuery
- func (_q *ClaudeSessionQuery) Only(ctx context.Context) (*ClaudeSession, error)
- func (_q *ClaudeSessionQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *ClaudeSessionQuery) OnlyIDX(ctx context.Context) int
- func (_q *ClaudeSessionQuery) OnlyX(ctx context.Context) *ClaudeSession
- func (_q *ClaudeSessionQuery) Order(o ...claudesession.OrderOption) *ClaudeSessionQuery
- func (_q *ClaudeSessionQuery) QueryMetadata() *ClaudeMetadataQuery
- func (_q *ClaudeSessionQuery) QuerySession() *SessionQuery
- func (_q *ClaudeSessionQuery) Select(fields ...string) *ClaudeSessionSelect
- func (_q *ClaudeSessionQuery) Unique(unique bool) *ClaudeSessionQuery
- func (_q *ClaudeSessionQuery) Where(ps ...predicate.ClaudeSession) *ClaudeSessionQuery
- func (_q *ClaudeSessionQuery) WithMetadata(opts ...func(*ClaudeMetadataQuery)) *ClaudeSessionQuery
- func (_q *ClaudeSessionQuery) WithSession(opts ...func(*SessionQuery)) *ClaudeSessionQuery
- type ClaudeSessionSelect
- func (_s *ClaudeSessionSelect) Aggregate(fns ...AggregateFunc) *ClaudeSessionSelect
- func (s *ClaudeSessionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ClaudeSessionSelect) BoolX(ctx context.Context) bool
- func (s *ClaudeSessionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ClaudeSessionSelect) BoolsX(ctx context.Context) []bool
- func (s *ClaudeSessionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ClaudeSessionSelect) Float64X(ctx context.Context) float64
- func (s *ClaudeSessionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ClaudeSessionSelect) Float64sX(ctx context.Context) []float64
- func (s *ClaudeSessionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ClaudeSessionSelect) IntX(ctx context.Context) int
- func (s *ClaudeSessionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ClaudeSessionSelect) IntsX(ctx context.Context) []int
- func (_s *ClaudeSessionSelect) Scan(ctx context.Context, v any) error
- func (s *ClaudeSessionSelect) ScanX(ctx context.Context, v any)
- func (s *ClaudeSessionSelect) String(ctx context.Context) (_ string, err error)
- func (s *ClaudeSessionSelect) StringX(ctx context.Context) string
- func (s *ClaudeSessionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ClaudeSessionSelect) StringsX(ctx context.Context) []string
- type ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) AddMetadata(v ...*ClaudeMetadata) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) AddMetadatumIDs(ids ...int) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) ClearConversationID() *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) ClearLastAttached() *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) ClearMetadata() *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) ClearPreferredSessionName() *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) ClearProjectName() *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) ClearSession() *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) Exec(ctx context.Context) error
- func (_u *ClaudeSessionUpdate) ExecX(ctx context.Context)
- func (_u *ClaudeSessionUpdate) Mutation() *ClaudeSessionMutation
- func (_u *ClaudeSessionUpdate) RemoveMetadata(v ...*ClaudeMetadata) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) RemoveMetadatumIDs(ids ...int) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) Save(ctx context.Context) (int, error)
- func (_u *ClaudeSessionUpdate) SaveX(ctx context.Context) int
- func (_u *ClaudeSessionUpdate) SetAutoReattach(v bool) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetClaudeSessionID(v string) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetConversationID(v string) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetCreateNewOnMissing(v bool) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetLastAttached(v time.Time) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillableAutoReattach(v *bool) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillableClaudeSessionID(v *string) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillableConversationID(v *string) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillableCreateNewOnMissing(v *bool) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillableLastAttached(v *time.Time) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillablePreferredSessionName(v *string) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillableProjectName(v *string) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillableSessionTimeoutMinutes(v *int) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetNillableShowSessionSelector(v *bool) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetPreferredSessionName(v string) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetProjectName(v string) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetSession(v *Session) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetSessionID(id int) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) SetShowSessionSelector(v bool) *ClaudeSessionUpdate
- func (_u *ClaudeSessionUpdate) Where(ps ...predicate.ClaudeSession) *ClaudeSessionUpdate
- type ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) AddMetadata(v ...*ClaudeMetadata) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) AddMetadatumIDs(ids ...int) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) ClearConversationID() *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) ClearLastAttached() *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) ClearMetadata() *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) ClearPreferredSessionName() *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) ClearProjectName() *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) ClearSession() *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) Exec(ctx context.Context) error
- func (_u *ClaudeSessionUpdateOne) ExecX(ctx context.Context)
- func (_u *ClaudeSessionUpdateOne) Mutation() *ClaudeSessionMutation
- func (_u *ClaudeSessionUpdateOne) RemoveMetadata(v ...*ClaudeMetadata) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) RemoveMetadatumIDs(ids ...int) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) Save(ctx context.Context) (*ClaudeSession, error)
- func (_u *ClaudeSessionUpdateOne) SaveX(ctx context.Context) *ClaudeSession
- func (_u *ClaudeSessionUpdateOne) Select(field string, fields ...string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetAutoReattach(v bool) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetClaudeSessionID(v string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetConversationID(v string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetCreateNewOnMissing(v bool) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetLastAttached(v time.Time) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillableAutoReattach(v *bool) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillableClaudeSessionID(v *string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillableConversationID(v *string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillableCreateNewOnMissing(v *bool) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillableLastAttached(v *time.Time) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillablePreferredSessionName(v *string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillableProjectName(v *string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillableSessionTimeoutMinutes(v *int) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetNillableShowSessionSelector(v *bool) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetPreferredSessionName(v string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetProjectName(v string) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetSession(v *Session) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetSessionID(id int) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) SetShowSessionSelector(v bool) *ClaudeSessionUpdateOne
- func (_u *ClaudeSessionUpdateOne) Where(ps ...predicate.ClaudeSession) *ClaudeSessionUpdateOne
- type ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) ClearConversationID() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) ClearLastAttached() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) ClearPreferredSessionName() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) ClearProjectName() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetAutoReattach(v bool) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetClaudeSessionID(v string) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetConversationID(v string) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetCreateNewOnMissing(v bool) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetLastAttached(v time.Time) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetPreferredSessionName(v string) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetProjectName(v string) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) SetShowSessionSelector(v bool) *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdateAutoReattach() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdateClaudeSessionID() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdateConversationID() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdateCreateNewOnMissing() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdateLastAttached() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdatePreferredSessionName() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdateProjectName() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdateSessionTimeoutMinutes() *ClaudeSessionUpsert
- func (u *ClaudeSessionUpsert) UpdateShowSessionSelector() *ClaudeSessionUpsert
- type ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) ClearConversationID() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) ClearLastAttached() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) ClearPreferredSessionName() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) ClearProjectName() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) DoNothing() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) Exec(ctx context.Context) error
- func (u *ClaudeSessionUpsertBulk) ExecX(ctx context.Context)
- func (u *ClaudeSessionUpsertBulk) Ignore() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetAutoReattach(v bool) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetClaudeSessionID(v string) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetConversationID(v string) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetCreateNewOnMissing(v bool) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetLastAttached(v time.Time) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetPreferredSessionName(v string) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetProjectName(v string) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) SetShowSessionSelector(v bool) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) Update(set func(*ClaudeSessionUpsert)) *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateAutoReattach() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateClaudeSessionID() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateConversationID() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateCreateNewOnMissing() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateLastAttached() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateNewValues() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdatePreferredSessionName() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateProjectName() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateSessionTimeoutMinutes() *ClaudeSessionUpsertBulk
- func (u *ClaudeSessionUpsertBulk) UpdateShowSessionSelector() *ClaudeSessionUpsertBulk
- type ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) ClearConversationID() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) ClearLastAttached() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) ClearPreferredSessionName() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) ClearProjectName() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) DoNothing() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) Exec(ctx context.Context) error
- func (u *ClaudeSessionUpsertOne) ExecX(ctx context.Context)
- func (u *ClaudeSessionUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ClaudeSessionUpsertOne) IDX(ctx context.Context) int
- func (u *ClaudeSessionUpsertOne) Ignore() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetAutoReattach(v bool) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetClaudeSessionID(v string) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetConversationID(v string) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetCreateNewOnMissing(v bool) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetLastAttached(v time.Time) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetPreferredSessionName(v string) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetProjectName(v string) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) SetShowSessionSelector(v bool) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) Update(set func(*ClaudeSessionUpsert)) *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateAutoReattach() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateClaudeSessionID() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateConversationID() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateCreateNewOnMissing() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateLastAttached() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateNewValues() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdatePreferredSessionName() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateProjectName() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateSessionTimeoutMinutes() *ClaudeSessionUpsertOne
- func (u *ClaudeSessionUpsertOne) UpdateShowSessionSelector() *ClaudeSessionUpsertOne
- type ClaudeSessions
- 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 DiffStats
- type DiffStatsClient
- func (c *DiffStatsClient) Create() *DiffStatsCreate
- func (c *DiffStatsClient) CreateBulk(builders ...*DiffStatsCreate) *DiffStatsCreateBulk
- func (c *DiffStatsClient) Delete() *DiffStatsDelete
- func (c *DiffStatsClient) DeleteOne(_m *DiffStats) *DiffStatsDeleteOne
- func (c *DiffStatsClient) DeleteOneID(id int) *DiffStatsDeleteOne
- func (c *DiffStatsClient) Get(ctx context.Context, id int) (*DiffStats, error)
- func (c *DiffStatsClient) GetX(ctx context.Context, id int) *DiffStats
- func (c *DiffStatsClient) Hooks() []Hook
- func (c *DiffStatsClient) Intercept(interceptors ...Interceptor)
- func (c *DiffStatsClient) Interceptors() []Interceptor
- func (c *DiffStatsClient) MapCreateBulk(slice any, setFunc func(*DiffStatsCreate, int)) *DiffStatsCreateBulk
- func (c *DiffStatsClient) Query() *DiffStatsQuery
- func (c *DiffStatsClient) QuerySession(_m *DiffStats) *SessionQuery
- func (c *DiffStatsClient) Update() *DiffStatsUpdate
- func (c *DiffStatsClient) UpdateOne(_m *DiffStats) *DiffStatsUpdateOne
- func (c *DiffStatsClient) UpdateOneID(id int) *DiffStatsUpdateOne
- func (c *DiffStatsClient) Use(hooks ...Hook)
- type DiffStatsCreate
- func (_c *DiffStatsCreate) Exec(ctx context.Context) error
- func (_c *DiffStatsCreate) ExecX(ctx context.Context)
- func (_c *DiffStatsCreate) Mutation() *DiffStatsMutation
- func (_c *DiffStatsCreate) OnConflict(opts ...sql.ConflictOption) *DiffStatsUpsertOne
- func (_c *DiffStatsCreate) OnConflictColumns(columns ...string) *DiffStatsUpsertOne
- func (_c *DiffStatsCreate) Save(ctx context.Context) (*DiffStats, error)
- func (_c *DiffStatsCreate) SaveX(ctx context.Context) *DiffStats
- func (_c *DiffStatsCreate) SetAdded(v int) *DiffStatsCreate
- func (_c *DiffStatsCreate) SetContent(v string) *DiffStatsCreate
- func (_c *DiffStatsCreate) SetNillableAdded(v *int) *DiffStatsCreate
- func (_c *DiffStatsCreate) SetNillableContent(v *string) *DiffStatsCreate
- func (_c *DiffStatsCreate) SetNillableRemoved(v *int) *DiffStatsCreate
- func (_c *DiffStatsCreate) SetRemoved(v int) *DiffStatsCreate
- func (_c *DiffStatsCreate) SetSession(v *Session) *DiffStatsCreate
- func (_c *DiffStatsCreate) SetSessionID(id int) *DiffStatsCreate
- type DiffStatsCreateBulk
- func (_c *DiffStatsCreateBulk) Exec(ctx context.Context) error
- func (_c *DiffStatsCreateBulk) ExecX(ctx context.Context)
- func (_c *DiffStatsCreateBulk) OnConflict(opts ...sql.ConflictOption) *DiffStatsUpsertBulk
- func (_c *DiffStatsCreateBulk) OnConflictColumns(columns ...string) *DiffStatsUpsertBulk
- func (_c *DiffStatsCreateBulk) Save(ctx context.Context) ([]*DiffStats, error)
- func (_c *DiffStatsCreateBulk) SaveX(ctx context.Context) []*DiffStats
- type DiffStatsDelete
- type DiffStatsDeleteOne
- type DiffStatsEdges
- type DiffStatsGroupBy
- func (_g *DiffStatsGroupBy) Aggregate(fns ...AggregateFunc) *DiffStatsGroupBy
- func (s *DiffStatsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *DiffStatsGroupBy) BoolX(ctx context.Context) bool
- func (s *DiffStatsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *DiffStatsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *DiffStatsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *DiffStatsGroupBy) Float64X(ctx context.Context) float64
- func (s *DiffStatsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *DiffStatsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *DiffStatsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *DiffStatsGroupBy) IntX(ctx context.Context) int
- func (s *DiffStatsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *DiffStatsGroupBy) IntsX(ctx context.Context) []int
- func (_g *DiffStatsGroupBy) Scan(ctx context.Context, v any) error
- func (s *DiffStatsGroupBy) ScanX(ctx context.Context, v any)
- func (s *DiffStatsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *DiffStatsGroupBy) StringX(ctx context.Context) string
- func (s *DiffStatsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *DiffStatsGroupBy) StringsX(ctx context.Context) []string
- type DiffStatsMutation
- func (m *DiffStatsMutation) AddAdded(i int)
- func (m *DiffStatsMutation) AddField(name string, value ent.Value) error
- func (m *DiffStatsMutation) AddRemoved(i int)
- func (m *DiffStatsMutation) Added() (r int, exists bool)
- func (m *DiffStatsMutation) AddedAdded() (r int, exists bool)
- func (m *DiffStatsMutation) AddedEdges() []string
- func (m *DiffStatsMutation) AddedField(name string) (ent.Value, bool)
- func (m *DiffStatsMutation) AddedFields() []string
- func (m *DiffStatsMutation) AddedIDs(name string) []ent.Value
- func (m *DiffStatsMutation) AddedRemoved() (r int, exists bool)
- func (m *DiffStatsMutation) ClearContent()
- func (m *DiffStatsMutation) ClearEdge(name string) error
- func (m *DiffStatsMutation) ClearField(name string) error
- func (m *DiffStatsMutation) ClearSession()
- func (m *DiffStatsMutation) ClearedEdges() []string
- func (m *DiffStatsMutation) ClearedFields() []string
- func (m DiffStatsMutation) Client() *Client
- func (m *DiffStatsMutation) Content() (r string, exists bool)
- func (m *DiffStatsMutation) ContentCleared() bool
- func (m *DiffStatsMutation) EdgeCleared(name string) bool
- func (m *DiffStatsMutation) Field(name string) (ent.Value, bool)
- func (m *DiffStatsMutation) FieldCleared(name string) bool
- func (m *DiffStatsMutation) Fields() []string
- func (m *DiffStatsMutation) ID() (id int, exists bool)
- func (m *DiffStatsMutation) IDs(ctx context.Context) ([]int, error)
- func (m *DiffStatsMutation) OldAdded(ctx context.Context) (v int, err error)
- func (m *DiffStatsMutation) OldContent(ctx context.Context) (v string, err error)
- func (m *DiffStatsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *DiffStatsMutation) OldRemoved(ctx context.Context) (v int, err error)
- func (m *DiffStatsMutation) Op() Op
- func (m *DiffStatsMutation) Removed() (r int, exists bool)
- func (m *DiffStatsMutation) RemovedEdges() []string
- func (m *DiffStatsMutation) RemovedIDs(name string) []ent.Value
- func (m *DiffStatsMutation) ResetAdded()
- func (m *DiffStatsMutation) ResetContent()
- func (m *DiffStatsMutation) ResetEdge(name string) error
- func (m *DiffStatsMutation) ResetField(name string) error
- func (m *DiffStatsMutation) ResetRemoved()
- func (m *DiffStatsMutation) ResetSession()
- func (m *DiffStatsMutation) SessionCleared() bool
- func (m *DiffStatsMutation) SessionID() (id int, exists bool)
- func (m *DiffStatsMutation) SessionIDs() (ids []int)
- func (m *DiffStatsMutation) SetAdded(i int)
- func (m *DiffStatsMutation) SetContent(s string)
- func (m *DiffStatsMutation) SetField(name string, value ent.Value) error
- func (m *DiffStatsMutation) SetOp(op Op)
- func (m *DiffStatsMutation) SetRemoved(i int)
- func (m *DiffStatsMutation) SetSessionID(id int)
- func (m DiffStatsMutation) Tx() (*Tx, error)
- func (m *DiffStatsMutation) Type() string
- func (m *DiffStatsMutation) Where(ps ...predicate.DiffStats)
- func (m *DiffStatsMutation) WhereP(ps ...func(*sql.Selector))
- type DiffStatsQuery
- func (_q *DiffStatsQuery) Aggregate(fns ...AggregateFunc) *DiffStatsSelect
- func (_q *DiffStatsQuery) All(ctx context.Context) ([]*DiffStats, error)
- func (_q *DiffStatsQuery) AllX(ctx context.Context) []*DiffStats
- func (_q *DiffStatsQuery) Clone() *DiffStatsQuery
- func (_q *DiffStatsQuery) Count(ctx context.Context) (int, error)
- func (_q *DiffStatsQuery) CountX(ctx context.Context) int
- func (_q *DiffStatsQuery) Exist(ctx context.Context) (bool, error)
- func (_q *DiffStatsQuery) ExistX(ctx context.Context) bool
- func (_q *DiffStatsQuery) First(ctx context.Context) (*DiffStats, error)
- func (_q *DiffStatsQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *DiffStatsQuery) FirstIDX(ctx context.Context) int
- func (_q *DiffStatsQuery) FirstX(ctx context.Context) *DiffStats
- func (_q *DiffStatsQuery) GroupBy(field string, fields ...string) *DiffStatsGroupBy
- func (_q *DiffStatsQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *DiffStatsQuery) IDsX(ctx context.Context) []int
- func (_q *DiffStatsQuery) Limit(limit int) *DiffStatsQuery
- func (_q *DiffStatsQuery) Offset(offset int) *DiffStatsQuery
- func (_q *DiffStatsQuery) Only(ctx context.Context) (*DiffStats, error)
- func (_q *DiffStatsQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *DiffStatsQuery) OnlyIDX(ctx context.Context) int
- func (_q *DiffStatsQuery) OnlyX(ctx context.Context) *DiffStats
- func (_q *DiffStatsQuery) Order(o ...diffstats.OrderOption) *DiffStatsQuery
- func (_q *DiffStatsQuery) QuerySession() *SessionQuery
- func (_q *DiffStatsQuery) Select(fields ...string) *DiffStatsSelect
- func (_q *DiffStatsQuery) Unique(unique bool) *DiffStatsQuery
- func (_q *DiffStatsQuery) Where(ps ...predicate.DiffStats) *DiffStatsQuery
- func (_q *DiffStatsQuery) WithSession(opts ...func(*SessionQuery)) *DiffStatsQuery
- type DiffStatsSelect
- func (_s *DiffStatsSelect) Aggregate(fns ...AggregateFunc) *DiffStatsSelect
- func (s *DiffStatsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *DiffStatsSelect) BoolX(ctx context.Context) bool
- func (s *DiffStatsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *DiffStatsSelect) BoolsX(ctx context.Context) []bool
- func (s *DiffStatsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *DiffStatsSelect) Float64X(ctx context.Context) float64
- func (s *DiffStatsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *DiffStatsSelect) Float64sX(ctx context.Context) []float64
- func (s *DiffStatsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *DiffStatsSelect) IntX(ctx context.Context) int
- func (s *DiffStatsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *DiffStatsSelect) IntsX(ctx context.Context) []int
- func (_s *DiffStatsSelect) Scan(ctx context.Context, v any) error
- func (s *DiffStatsSelect) ScanX(ctx context.Context, v any)
- func (s *DiffStatsSelect) String(ctx context.Context) (_ string, err error)
- func (s *DiffStatsSelect) StringX(ctx context.Context) string
- func (s *DiffStatsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *DiffStatsSelect) StringsX(ctx context.Context) []string
- type DiffStatsSlice
- type DiffStatsUpdate
- func (_u *DiffStatsUpdate) AddAdded(v int) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) AddRemoved(v int) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) ClearContent() *DiffStatsUpdate
- func (_u *DiffStatsUpdate) ClearSession() *DiffStatsUpdate
- func (_u *DiffStatsUpdate) Exec(ctx context.Context) error
- func (_u *DiffStatsUpdate) ExecX(ctx context.Context)
- func (_u *DiffStatsUpdate) Mutation() *DiffStatsMutation
- func (_u *DiffStatsUpdate) Save(ctx context.Context) (int, error)
- func (_u *DiffStatsUpdate) SaveX(ctx context.Context) int
- func (_u *DiffStatsUpdate) SetAdded(v int) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) SetContent(v string) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) SetNillableAdded(v *int) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) SetNillableContent(v *string) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) SetNillableRemoved(v *int) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) SetRemoved(v int) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) SetSession(v *Session) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) SetSessionID(id int) *DiffStatsUpdate
- func (_u *DiffStatsUpdate) Where(ps ...predicate.DiffStats) *DiffStatsUpdate
- type DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) AddAdded(v int) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) AddRemoved(v int) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) ClearContent() *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) ClearSession() *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) Exec(ctx context.Context) error
- func (_u *DiffStatsUpdateOne) ExecX(ctx context.Context)
- func (_u *DiffStatsUpdateOne) Mutation() *DiffStatsMutation
- func (_u *DiffStatsUpdateOne) Save(ctx context.Context) (*DiffStats, error)
- func (_u *DiffStatsUpdateOne) SaveX(ctx context.Context) *DiffStats
- func (_u *DiffStatsUpdateOne) Select(field string, fields ...string) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) SetAdded(v int) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) SetContent(v string) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) SetNillableAdded(v *int) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) SetNillableContent(v *string) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) SetNillableRemoved(v *int) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) SetRemoved(v int) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) SetSession(v *Session) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) SetSessionID(id int) *DiffStatsUpdateOne
- func (_u *DiffStatsUpdateOne) Where(ps ...predicate.DiffStats) *DiffStatsUpdateOne
- type DiffStatsUpsert
- func (u *DiffStatsUpsert) AddAdded(v int) *DiffStatsUpsert
- func (u *DiffStatsUpsert) AddRemoved(v int) *DiffStatsUpsert
- func (u *DiffStatsUpsert) ClearContent() *DiffStatsUpsert
- func (u *DiffStatsUpsert) SetAdded(v int) *DiffStatsUpsert
- func (u *DiffStatsUpsert) SetContent(v string) *DiffStatsUpsert
- func (u *DiffStatsUpsert) SetRemoved(v int) *DiffStatsUpsert
- func (u *DiffStatsUpsert) UpdateAdded() *DiffStatsUpsert
- func (u *DiffStatsUpsert) UpdateContent() *DiffStatsUpsert
- func (u *DiffStatsUpsert) UpdateRemoved() *DiffStatsUpsert
- type DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) AddAdded(v int) *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) AddRemoved(v int) *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) ClearContent() *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) DoNothing() *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) Exec(ctx context.Context) error
- func (u *DiffStatsUpsertBulk) ExecX(ctx context.Context)
- func (u *DiffStatsUpsertBulk) Ignore() *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) SetAdded(v int) *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) SetContent(v string) *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) SetRemoved(v int) *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) Update(set func(*DiffStatsUpsert)) *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) UpdateAdded() *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) UpdateContent() *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) UpdateNewValues() *DiffStatsUpsertBulk
- func (u *DiffStatsUpsertBulk) UpdateRemoved() *DiffStatsUpsertBulk
- type DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) AddAdded(v int) *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) AddRemoved(v int) *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) ClearContent() *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) DoNothing() *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) Exec(ctx context.Context) error
- func (u *DiffStatsUpsertOne) ExecX(ctx context.Context)
- func (u *DiffStatsUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *DiffStatsUpsertOne) IDX(ctx context.Context) int
- func (u *DiffStatsUpsertOne) Ignore() *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) SetAdded(v int) *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) SetContent(v string) *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) SetRemoved(v int) *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) Update(set func(*DiffStatsUpsert)) *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) UpdateAdded() *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) UpdateContent() *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) UpdateNewValues() *DiffStatsUpsertOne
- func (u *DiffStatsUpsertOne) UpdateRemoved() *DiffStatsUpsertOne
- 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 Project
- type ProjectClient
- func (c *ProjectClient) Create() *ProjectCreate
- func (c *ProjectClient) CreateBulk(builders ...*ProjectCreate) *ProjectCreateBulk
- func (c *ProjectClient) Delete() *ProjectDelete
- func (c *ProjectClient) DeleteOne(_m *Project) *ProjectDeleteOne
- func (c *ProjectClient) DeleteOneID(id int) *ProjectDeleteOne
- func (c *ProjectClient) Get(ctx context.Context, id int) (*Project, error)
- func (c *ProjectClient) GetX(ctx context.Context, id int) *Project
- func (c *ProjectClient) Hooks() []Hook
- func (c *ProjectClient) Intercept(interceptors ...Interceptor)
- func (c *ProjectClient) Interceptors() []Interceptor
- func (c *ProjectClient) MapCreateBulk(slice any, setFunc func(*ProjectCreate, int)) *ProjectCreateBulk
- func (c *ProjectClient) Query() *ProjectQuery
- func (c *ProjectClient) QuerySessions(_m *Project) *SessionQuery
- func (c *ProjectClient) Update() *ProjectUpdate
- func (c *ProjectClient) UpdateOne(_m *Project) *ProjectUpdateOne
- func (c *ProjectClient) UpdateOneID(id int) *ProjectUpdateOne
- func (c *ProjectClient) Use(hooks ...Hook)
- type ProjectCreate
- func (_c *ProjectCreate) AddSessionIDs(ids ...int) *ProjectCreate
- func (_c *ProjectCreate) AddSessions(v ...*Session) *ProjectCreate
- func (_c *ProjectCreate) Exec(ctx context.Context) error
- func (_c *ProjectCreate) ExecX(ctx context.Context)
- func (_c *ProjectCreate) Mutation() *ProjectMutation
- func (_c *ProjectCreate) OnConflict(opts ...sql.ConflictOption) *ProjectUpsertOne
- func (_c *ProjectCreate) OnConflictColumns(columns ...string) *ProjectUpsertOne
- func (_c *ProjectCreate) Save(ctx context.Context) (*Project, error)
- func (_c *ProjectCreate) SaveX(ctx context.Context) *Project
- func (_c *ProjectCreate) SetCreatedAt(v time.Time) *ProjectCreate
- func (_c *ProjectCreate) SetDescription(v string) *ProjectCreate
- func (_c *ProjectCreate) SetName(v string) *ProjectCreate
- func (_c *ProjectCreate) SetNillableCreatedAt(v *time.Time) *ProjectCreate
- func (_c *ProjectCreate) SetNillableDescription(v *string) *ProjectCreate
- func (_c *ProjectCreate) SetNillableUpdatedAt(v *time.Time) *ProjectCreate
- func (_c *ProjectCreate) SetUpdatedAt(v time.Time) *ProjectCreate
- type ProjectCreateBulk
- func (_c *ProjectCreateBulk) Exec(ctx context.Context) error
- func (_c *ProjectCreateBulk) ExecX(ctx context.Context)
- func (_c *ProjectCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProjectUpsertBulk
- func (_c *ProjectCreateBulk) OnConflictColumns(columns ...string) *ProjectUpsertBulk
- func (_c *ProjectCreateBulk) Save(ctx context.Context) ([]*Project, error)
- func (_c *ProjectCreateBulk) SaveX(ctx context.Context) []*Project
- type ProjectDelete
- type ProjectDeleteOne
- type ProjectEdges
- type ProjectGroupBy
- func (_g *ProjectGroupBy) Aggregate(fns ...AggregateFunc) *ProjectGroupBy
- func (s *ProjectGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProjectGroupBy) BoolX(ctx context.Context) bool
- func (s *ProjectGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProjectGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProjectGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProjectGroupBy) Float64X(ctx context.Context) float64
- func (s *ProjectGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProjectGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProjectGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProjectGroupBy) IntX(ctx context.Context) int
- func (s *ProjectGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProjectGroupBy) IntsX(ctx context.Context) []int
- func (_g *ProjectGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProjectGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProjectGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProjectGroupBy) StringX(ctx context.Context) string
- func (s *ProjectGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProjectGroupBy) StringsX(ctx context.Context) []string
- type ProjectMutation
- func (m *ProjectMutation) AddField(name string, value ent.Value) error
- func (m *ProjectMutation) AddSessionIDs(ids ...int)
- func (m *ProjectMutation) AddedEdges() []string
- func (m *ProjectMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProjectMutation) AddedFields() []string
- func (m *ProjectMutation) AddedIDs(name string) []ent.Value
- func (m *ProjectMutation) ClearDescription()
- func (m *ProjectMutation) ClearEdge(name string) error
- func (m *ProjectMutation) ClearField(name string) error
- func (m *ProjectMutation) ClearSessions()
- func (m *ProjectMutation) ClearedEdges() []string
- func (m *ProjectMutation) ClearedFields() []string
- func (m ProjectMutation) Client() *Client
- func (m *ProjectMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProjectMutation) Description() (r string, exists bool)
- func (m *ProjectMutation) DescriptionCleared() bool
- func (m *ProjectMutation) EdgeCleared(name string) bool
- func (m *ProjectMutation) Field(name string) (ent.Value, bool)
- func (m *ProjectMutation) FieldCleared(name string) bool
- func (m *ProjectMutation) Fields() []string
- func (m *ProjectMutation) ID() (id int, exists bool)
- func (m *ProjectMutation) IDs(ctx context.Context) ([]int, error)
- func (m *ProjectMutation) Name() (r string, exists bool)
- func (m *ProjectMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProjectMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *ProjectMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProjectMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ProjectMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProjectMutation) Op() Op
- func (m *ProjectMutation) RemoveSessionIDs(ids ...int)
- func (m *ProjectMutation) RemovedEdges() []string
- func (m *ProjectMutation) RemovedIDs(name string) []ent.Value
- func (m *ProjectMutation) RemovedSessionsIDs() (ids []int)
- func (m *ProjectMutation) ResetCreatedAt()
- func (m *ProjectMutation) ResetDescription()
- func (m *ProjectMutation) ResetEdge(name string) error
- func (m *ProjectMutation) ResetField(name string) error
- func (m *ProjectMutation) ResetName()
- func (m *ProjectMutation) ResetSessions()
- func (m *ProjectMutation) ResetUpdatedAt()
- func (m *ProjectMutation) SessionsCleared() bool
- func (m *ProjectMutation) SessionsIDs() (ids []int)
- func (m *ProjectMutation) SetCreatedAt(t time.Time)
- func (m *ProjectMutation) SetDescription(s string)
- func (m *ProjectMutation) SetField(name string, value ent.Value) error
- func (m *ProjectMutation) SetName(s string)
- func (m *ProjectMutation) SetOp(op Op)
- func (m *ProjectMutation) SetUpdatedAt(t time.Time)
- func (m ProjectMutation) Tx() (*Tx, error)
- func (m *ProjectMutation) Type() string
- func (m *ProjectMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProjectMutation) Where(ps ...predicate.Project)
- func (m *ProjectMutation) WhereP(ps ...func(*sql.Selector))
- type ProjectQuery
- func (_q *ProjectQuery) Aggregate(fns ...AggregateFunc) *ProjectSelect
- func (_q *ProjectQuery) All(ctx context.Context) ([]*Project, error)
- func (_q *ProjectQuery) AllX(ctx context.Context) []*Project
- func (_q *ProjectQuery) Clone() *ProjectQuery
- func (_q *ProjectQuery) Count(ctx context.Context) (int, error)
- func (_q *ProjectQuery) CountX(ctx context.Context) int
- func (_q *ProjectQuery) Exist(ctx context.Context) (bool, error)
- func (_q *ProjectQuery) ExistX(ctx context.Context) bool
- func (_q *ProjectQuery) First(ctx context.Context) (*Project, error)
- func (_q *ProjectQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *ProjectQuery) FirstIDX(ctx context.Context) int
- func (_q *ProjectQuery) FirstX(ctx context.Context) *Project
- func (_q *ProjectQuery) GroupBy(field string, fields ...string) *ProjectGroupBy
- func (_q *ProjectQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *ProjectQuery) IDsX(ctx context.Context) []int
- func (_q *ProjectQuery) Limit(limit int) *ProjectQuery
- func (_q *ProjectQuery) Offset(offset int) *ProjectQuery
- func (_q *ProjectQuery) Only(ctx context.Context) (*Project, error)
- func (_q *ProjectQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *ProjectQuery) OnlyIDX(ctx context.Context) int
- func (_q *ProjectQuery) OnlyX(ctx context.Context) *Project
- func (_q *ProjectQuery) Order(o ...project.OrderOption) *ProjectQuery
- func (_q *ProjectQuery) QuerySessions() *SessionQuery
- func (_q *ProjectQuery) Select(fields ...string) *ProjectSelect
- func (_q *ProjectQuery) Unique(unique bool) *ProjectQuery
- func (_q *ProjectQuery) Where(ps ...predicate.Project) *ProjectQuery
- func (_q *ProjectQuery) WithSessions(opts ...func(*SessionQuery)) *ProjectQuery
- type ProjectSelect
- func (_s *ProjectSelect) Aggregate(fns ...AggregateFunc) *ProjectSelect
- func (s *ProjectSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProjectSelect) BoolX(ctx context.Context) bool
- func (s *ProjectSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProjectSelect) BoolsX(ctx context.Context) []bool
- func (s *ProjectSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProjectSelect) Float64X(ctx context.Context) float64
- func (s *ProjectSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProjectSelect) Float64sX(ctx context.Context) []float64
- func (s *ProjectSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProjectSelect) IntX(ctx context.Context) int
- func (s *ProjectSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProjectSelect) IntsX(ctx context.Context) []int
- func (_s *ProjectSelect) Scan(ctx context.Context, v any) error
- func (s *ProjectSelect) ScanX(ctx context.Context, v any)
- func (s *ProjectSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProjectSelect) StringX(ctx context.Context) string
- func (s *ProjectSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProjectSelect) StringsX(ctx context.Context) []string
- type ProjectUpdate
- func (_u *ProjectUpdate) AddSessionIDs(ids ...int) *ProjectUpdate
- func (_u *ProjectUpdate) AddSessions(v ...*Session) *ProjectUpdate
- func (_u *ProjectUpdate) ClearDescription() *ProjectUpdate
- func (_u *ProjectUpdate) ClearSessions() *ProjectUpdate
- func (_u *ProjectUpdate) Exec(ctx context.Context) error
- func (_u *ProjectUpdate) ExecX(ctx context.Context)
- func (_u *ProjectUpdate) Mutation() *ProjectMutation
- func (_u *ProjectUpdate) RemoveSessionIDs(ids ...int) *ProjectUpdate
- func (_u *ProjectUpdate) RemoveSessions(v ...*Session) *ProjectUpdate
- func (_u *ProjectUpdate) Save(ctx context.Context) (int, error)
- func (_u *ProjectUpdate) SaveX(ctx context.Context) int
- func (_u *ProjectUpdate) SetDescription(v string) *ProjectUpdate
- func (_u *ProjectUpdate) SetName(v string) *ProjectUpdate
- func (_u *ProjectUpdate) SetNillableDescription(v *string) *ProjectUpdate
- func (_u *ProjectUpdate) SetNillableName(v *string) *ProjectUpdate
- func (_u *ProjectUpdate) SetUpdatedAt(v time.Time) *ProjectUpdate
- func (_u *ProjectUpdate) Where(ps ...predicate.Project) *ProjectUpdate
- type ProjectUpdateOne
- func (_u *ProjectUpdateOne) AddSessionIDs(ids ...int) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) AddSessions(v ...*Session) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) ClearDescription() *ProjectUpdateOne
- func (_u *ProjectUpdateOne) ClearSessions() *ProjectUpdateOne
- func (_u *ProjectUpdateOne) Exec(ctx context.Context) error
- func (_u *ProjectUpdateOne) ExecX(ctx context.Context)
- func (_u *ProjectUpdateOne) Mutation() *ProjectMutation
- func (_u *ProjectUpdateOne) RemoveSessionIDs(ids ...int) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) RemoveSessions(v ...*Session) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) Save(ctx context.Context) (*Project, error)
- func (_u *ProjectUpdateOne) SaveX(ctx context.Context) *Project
- func (_u *ProjectUpdateOne) Select(field string, fields ...string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetDescription(v string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetName(v string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetNillableDescription(v *string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetNillableName(v *string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetUpdatedAt(v time.Time) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) Where(ps ...predicate.Project) *ProjectUpdateOne
- type ProjectUpsert
- func (u *ProjectUpsert) ClearDescription() *ProjectUpsert
- func (u *ProjectUpsert) SetDescription(v string) *ProjectUpsert
- func (u *ProjectUpsert) SetName(v string) *ProjectUpsert
- func (u *ProjectUpsert) SetUpdatedAt(v time.Time) *ProjectUpsert
- func (u *ProjectUpsert) UpdateDescription() *ProjectUpsert
- func (u *ProjectUpsert) UpdateName() *ProjectUpsert
- func (u *ProjectUpsert) UpdateUpdatedAt() *ProjectUpsert
- type ProjectUpsertBulk
- func (u *ProjectUpsertBulk) ClearDescription() *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) DoNothing() *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) Exec(ctx context.Context) error
- func (u *ProjectUpsertBulk) ExecX(ctx context.Context)
- func (u *ProjectUpsertBulk) Ignore() *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) SetDescription(v string) *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) SetName(v string) *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) SetUpdatedAt(v time.Time) *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) Update(set func(*ProjectUpsert)) *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) UpdateDescription() *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) UpdateName() *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) UpdateNewValues() *ProjectUpsertBulk
- func (u *ProjectUpsertBulk) UpdateUpdatedAt() *ProjectUpsertBulk
- type ProjectUpsertOne
- func (u *ProjectUpsertOne) ClearDescription() *ProjectUpsertOne
- func (u *ProjectUpsertOne) DoNothing() *ProjectUpsertOne
- func (u *ProjectUpsertOne) Exec(ctx context.Context) error
- func (u *ProjectUpsertOne) ExecX(ctx context.Context)
- func (u *ProjectUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *ProjectUpsertOne) IDX(ctx context.Context) int
- func (u *ProjectUpsertOne) Ignore() *ProjectUpsertOne
- func (u *ProjectUpsertOne) SetDescription(v string) *ProjectUpsertOne
- func (u *ProjectUpsertOne) SetName(v string) *ProjectUpsertOne
- func (u *ProjectUpsertOne) SetUpdatedAt(v time.Time) *ProjectUpsertOne
- func (u *ProjectUpsertOne) Update(set func(*ProjectUpsert)) *ProjectUpsertOne
- func (u *ProjectUpsertOne) UpdateDescription() *ProjectUpsertOne
- func (u *ProjectUpsertOne) UpdateName() *ProjectUpsertOne
- func (u *ProjectUpsertOne) UpdateNewValues() *ProjectUpsertOne
- func (u *ProjectUpsertOne) UpdateUpdatedAt() *ProjectUpsertOne
- type Projects
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Session
- func (_m *Session) QueryClaudeSession() *ClaudeSessionQuery
- func (_m *Session) QueryDiffStats() *DiffStatsQuery
- func (_m *Session) QueryProject() *ProjectQuery
- func (_m *Session) QueryTags() *TagQuery
- func (_m *Session) QueryWorktree() *WorktreeQuery
- func (_m *Session) String() string
- func (_m *Session) Unwrap() *Session
- func (_m *Session) Update() *SessionUpdateOne
- func (_m *Session) Value(name string) (ent.Value, error)
- type SessionClient
- func (c *SessionClient) Create() *SessionCreate
- func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk
- func (c *SessionClient) Delete() *SessionDelete
- func (c *SessionClient) DeleteOne(_m *Session) *SessionDeleteOne
- func (c *SessionClient) DeleteOneID(id int) *SessionDeleteOne
- func (c *SessionClient) Get(ctx context.Context, id int) (*Session, error)
- func (c *SessionClient) GetX(ctx context.Context, id int) *Session
- func (c *SessionClient) Hooks() []Hook
- func (c *SessionClient) Intercept(interceptors ...Interceptor)
- func (c *SessionClient) Interceptors() []Interceptor
- func (c *SessionClient) MapCreateBulk(slice any, setFunc func(*SessionCreate, int)) *SessionCreateBulk
- func (c *SessionClient) Query() *SessionQuery
- func (c *SessionClient) QueryClaudeSession(_m *Session) *ClaudeSessionQuery
- func (c *SessionClient) QueryDiffStats(_m *Session) *DiffStatsQuery
- func (c *SessionClient) QueryProject(_m *Session) *ProjectQuery
- func (c *SessionClient) QueryTags(_m *Session) *TagQuery
- func (c *SessionClient) QueryWorktree(_m *Session) *WorktreeQuery
- func (c *SessionClient) Update() *SessionUpdate
- func (c *SessionClient) UpdateOne(_m *Session) *SessionUpdateOne
- func (c *SessionClient) UpdateOneID(id int) *SessionUpdateOne
- func (c *SessionClient) Use(hooks ...Hook)
- type SessionCreate
- func (_c *SessionCreate) AddTagIDs(ids ...int) *SessionCreate
- func (_c *SessionCreate) AddTags(v ...*Tag) *SessionCreate
- func (_c *SessionCreate) Exec(ctx context.Context) error
- func (_c *SessionCreate) ExecX(ctx context.Context)
- func (_c *SessionCreate) Mutation() *SessionMutation
- func (_c *SessionCreate) OnConflict(opts ...sql.ConflictOption) *SessionUpsertOne
- func (_c *SessionCreate) OnConflictColumns(columns ...string) *SessionUpsertOne
- func (_c *SessionCreate) Save(ctx context.Context) (*Session, error)
- func (_c *SessionCreate) SaveX(ctx context.Context) *Session
- func (_c *SessionCreate) SetAutoYes(v bool) *SessionCreate
- func (_c *SessionCreate) SetBranch(v string) *SessionCreate
- func (_c *SessionCreate) SetCategory(v string) *SessionCreate
- func (_c *SessionCreate) SetClaudeSession(v *ClaudeSession) *SessionCreate
- func (_c *SessionCreate) SetClaudeSessionID(id int) *SessionCreate
- func (_c *SessionCreate) SetCreatedAt(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetDiffStats(v *DiffStats) *SessionCreate
- func (_c *SessionCreate) SetDiffStatsID(id int) *SessionCreate
- func (_c *SessionCreate) SetExistingWorktree(v string) *SessionCreate
- func (_c *SessionCreate) SetHeight(v int) *SessionCreate
- func (_c *SessionCreate) SetInitialPrompt(v string) *SessionCreate
- func (_c *SessionCreate) SetIsExpanded(v bool) *SessionCreate
- func (_c *SessionCreate) SetLastAcknowledged(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetLastAddedToQueue(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetLastMeaningfulOutput(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetLastOutputSignature(v string) *SessionCreate
- func (_c *SessionCreate) SetLastTerminalUpdate(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetLastViewed(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetMcpServerURL(v string) *SessionCreate
- func (_c *SessionCreate) SetNillableAutoYes(v *bool) *SessionCreate
- func (_c *SessionCreate) SetNillableBranch(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableCategory(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableClaudeSessionID(id *int) *SessionCreate
- func (_c *SessionCreate) SetNillableCreatedAt(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableDiffStatsID(id *int) *SessionCreate
- func (_c *SessionCreate) SetNillableExistingWorktree(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableHeight(v *int) *SessionCreate
- func (_c *SessionCreate) SetNillableInitialPrompt(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableIsExpanded(v *bool) *SessionCreate
- func (_c *SessionCreate) SetNillableLastAcknowledged(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableLastAddedToQueue(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableLastMeaningfulOutput(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableLastOutputSignature(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableLastTerminalUpdate(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableLastViewed(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableMcpServerURL(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableOneShot(v *bool) *SessionCreate
- func (_c *SessionCreate) SetNillableProjectID(id *int) *SessionCreate
- func (_c *SessionCreate) SetNillablePrompt(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableSessionType(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableTmuxPrefix(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableUUID(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableUpdatedAt(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableWidth(v *int) *SessionCreate
- func (_c *SessionCreate) SetNillableWorkingDir(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableWorktreeID(id *int) *SessionCreate
- func (_c *SessionCreate) SetOneShot(v bool) *SessionCreate
- func (_c *SessionCreate) SetPath(v string) *SessionCreate
- func (_c *SessionCreate) SetProgram(v string) *SessionCreate
- func (_c *SessionCreate) SetProject(v *Project) *SessionCreate
- func (_c *SessionCreate) SetProjectID(id int) *SessionCreate
- func (_c *SessionCreate) SetPrompt(v string) *SessionCreate
- func (_c *SessionCreate) SetSessionType(v string) *SessionCreate
- func (_c *SessionCreate) SetStatus(v int) *SessionCreate
- func (_c *SessionCreate) SetTitle(v string) *SessionCreate
- func (_c *SessionCreate) SetTmuxPrefix(v string) *SessionCreate
- func (_c *SessionCreate) SetUUID(v string) *SessionCreate
- func (_c *SessionCreate) SetUpdatedAt(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetWidth(v int) *SessionCreate
- func (_c *SessionCreate) SetWorkingDir(v string) *SessionCreate
- func (_c *SessionCreate) SetWorktree(v *Worktree) *SessionCreate
- func (_c *SessionCreate) SetWorktreeID(id int) *SessionCreate
- type SessionCreateBulk
- func (_c *SessionCreateBulk) Exec(ctx context.Context) error
- func (_c *SessionCreateBulk) ExecX(ctx context.Context)
- func (_c *SessionCreateBulk) OnConflict(opts ...sql.ConflictOption) *SessionUpsertBulk
- func (_c *SessionCreateBulk) OnConflictColumns(columns ...string) *SessionUpsertBulk
- func (_c *SessionCreateBulk) Save(ctx context.Context) ([]*Session, error)
- func (_c *SessionCreateBulk) SaveX(ctx context.Context) []*Session
- type SessionDelete
- type SessionDeleteOne
- type SessionEdges
- type SessionGroupBy
- func (_g *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy
- func (s *SessionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SessionGroupBy) BoolX(ctx context.Context) bool
- func (s *SessionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SessionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SessionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SessionGroupBy) Float64X(ctx context.Context) float64
- func (s *SessionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SessionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SessionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SessionGroupBy) IntX(ctx context.Context) int
- func (s *SessionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SessionGroupBy) IntsX(ctx context.Context) []int
- func (_g *SessionGroupBy) Scan(ctx context.Context, v any) error
- func (s *SessionGroupBy) ScanX(ctx context.Context, v any)
- func (s *SessionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SessionGroupBy) StringX(ctx context.Context) string
- func (s *SessionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SessionGroupBy) StringsX(ctx context.Context) []string
- type SessionMutation
- func (m *SessionMutation) AddField(name string, value ent.Value) error
- func (m *SessionMutation) AddHeight(i int)
- func (m *SessionMutation) AddStatus(i int)
- func (m *SessionMutation) AddTagIDs(ids ...int)
- func (m *SessionMutation) AddWidth(i int)
- func (m *SessionMutation) AddedEdges() []string
- func (m *SessionMutation) AddedField(name string) (ent.Value, bool)
- func (m *SessionMutation) AddedFields() []string
- func (m *SessionMutation) AddedHeight() (r int, exists bool)
- func (m *SessionMutation) AddedIDs(name string) []ent.Value
- func (m *SessionMutation) AddedStatus() (r int, exists bool)
- func (m *SessionMutation) AddedWidth() (r int, exists bool)
- func (m *SessionMutation) AutoYes() (r bool, exists bool)
- func (m *SessionMutation) Branch() (r string, exists bool)
- func (m *SessionMutation) BranchCleared() bool
- func (m *SessionMutation) Category() (r string, exists bool)
- func (m *SessionMutation) CategoryCleared() bool
- func (m *SessionMutation) ClaudeSessionCleared() bool
- func (m *SessionMutation) ClaudeSessionID() (id int, exists bool)
- func (m *SessionMutation) ClaudeSessionIDs() (ids []int)
- func (m *SessionMutation) ClearBranch()
- func (m *SessionMutation) ClearCategory()
- func (m *SessionMutation) ClearClaudeSession()
- func (m *SessionMutation) ClearDiffStats()
- func (m *SessionMutation) ClearEdge(name string) error
- func (m *SessionMutation) ClearExistingWorktree()
- func (m *SessionMutation) ClearField(name string) error
- func (m *SessionMutation) ClearHeight()
- func (m *SessionMutation) ClearInitialPrompt()
- func (m *SessionMutation) ClearLastAcknowledged()
- func (m *SessionMutation) ClearLastAddedToQueue()
- func (m *SessionMutation) ClearLastMeaningfulOutput()
- func (m *SessionMutation) ClearLastOutputSignature()
- func (m *SessionMutation) ClearLastTerminalUpdate()
- func (m *SessionMutation) ClearLastViewed()
- func (m *SessionMutation) ClearMcpServerURL()
- func (m *SessionMutation) ClearProject()
- func (m *SessionMutation) ClearPrompt()
- func (m *SessionMutation) ClearSessionType()
- func (m *SessionMutation) ClearTags()
- func (m *SessionMutation) ClearTmuxPrefix()
- func (m *SessionMutation) ClearUUID()
- func (m *SessionMutation) ClearWidth()
- func (m *SessionMutation) ClearWorkingDir()
- func (m *SessionMutation) ClearWorktree()
- func (m *SessionMutation) ClearedEdges() []string
- func (m *SessionMutation) ClearedFields() []string
- func (m SessionMutation) Client() *Client
- func (m *SessionMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SessionMutation) DiffStatsCleared() bool
- func (m *SessionMutation) DiffStatsID() (id int, exists bool)
- func (m *SessionMutation) DiffStatsIDs() (ids []int)
- func (m *SessionMutation) EdgeCleared(name string) bool
- func (m *SessionMutation) ExistingWorktree() (r string, exists bool)
- func (m *SessionMutation) ExistingWorktreeCleared() bool
- func (m *SessionMutation) Field(name string) (ent.Value, bool)
- func (m *SessionMutation) FieldCleared(name string) bool
- func (m *SessionMutation) Fields() []string
- func (m *SessionMutation) Height() (r int, exists bool)
- func (m *SessionMutation) HeightCleared() bool
- func (m *SessionMutation) ID() (id int, exists bool)
- func (m *SessionMutation) IDs(ctx context.Context) ([]int, error)
- func (m *SessionMutation) InitialPrompt() (r string, exists bool)
- func (m *SessionMutation) InitialPromptCleared() bool
- func (m *SessionMutation) IsExpanded() (r bool, exists bool)
- func (m *SessionMutation) LastAcknowledged() (r time.Time, exists bool)
- func (m *SessionMutation) LastAcknowledgedCleared() bool
- func (m *SessionMutation) LastAddedToQueue() (r time.Time, exists bool)
- func (m *SessionMutation) LastAddedToQueueCleared() bool
- func (m *SessionMutation) LastMeaningfulOutput() (r time.Time, exists bool)
- func (m *SessionMutation) LastMeaningfulOutputCleared() bool
- func (m *SessionMutation) LastOutputSignature() (r string, exists bool)
- func (m *SessionMutation) LastOutputSignatureCleared() bool
- func (m *SessionMutation) LastTerminalUpdate() (r time.Time, exists bool)
- func (m *SessionMutation) LastTerminalUpdateCleared() bool
- func (m *SessionMutation) LastViewed() (r time.Time, exists bool)
- func (m *SessionMutation) LastViewedCleared() bool
- func (m *SessionMutation) McpServerURL() (r string, exists bool)
- func (m *SessionMutation) McpServerURLCleared() bool
- func (m *SessionMutation) OldAutoYes(ctx context.Context) (v bool, err error)
- func (m *SessionMutation) OldBranch(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldCategory(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldExistingWorktree(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SessionMutation) OldHeight(ctx context.Context) (v int, err error)
- func (m *SessionMutation) OldInitialPrompt(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldIsExpanded(ctx context.Context) (v bool, err error)
- func (m *SessionMutation) OldLastAcknowledged(ctx context.Context) (v *time.Time, err error)
- func (m *SessionMutation) OldLastAddedToQueue(ctx context.Context) (v *time.Time, err error)
- func (m *SessionMutation) OldLastMeaningfulOutput(ctx context.Context) (v *time.Time, err error)
- func (m *SessionMutation) OldLastOutputSignature(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldLastTerminalUpdate(ctx context.Context) (v *time.Time, err error)
- func (m *SessionMutation) OldLastViewed(ctx context.Context) (v *time.Time, err error)
- func (m *SessionMutation) OldMcpServerURL(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldOneShot(ctx context.Context) (v bool, err error)
- func (m *SessionMutation) OldPath(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldProgram(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldPrompt(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldSessionType(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldStatus(ctx context.Context) (v int, err error)
- func (m *SessionMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldTmuxPrefix(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldUUID(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldWidth(ctx context.Context) (v int, err error)
- func (m *SessionMutation) OldWorkingDir(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OneShot() (r bool, exists bool)
- func (m *SessionMutation) Op() Op
- func (m *SessionMutation) Path() (r string, exists bool)
- func (m *SessionMutation) Program() (r string, exists bool)
- func (m *SessionMutation) ProjectCleared() bool
- func (m *SessionMutation) ProjectID() (id int, exists bool)
- func (m *SessionMutation) ProjectIDs() (ids []int)
- func (m *SessionMutation) Prompt() (r string, exists bool)
- func (m *SessionMutation) PromptCleared() bool
- func (m *SessionMutation) RemoveTagIDs(ids ...int)
- func (m *SessionMutation) RemovedEdges() []string
- func (m *SessionMutation) RemovedIDs(name string) []ent.Value
- func (m *SessionMutation) RemovedTagsIDs() (ids []int)
- func (m *SessionMutation) ResetAutoYes()
- func (m *SessionMutation) ResetBranch()
- func (m *SessionMutation) ResetCategory()
- func (m *SessionMutation) ResetClaudeSession()
- func (m *SessionMutation) ResetCreatedAt()
- func (m *SessionMutation) ResetDiffStats()
- func (m *SessionMutation) ResetEdge(name string) error
- func (m *SessionMutation) ResetExistingWorktree()
- func (m *SessionMutation) ResetField(name string) error
- func (m *SessionMutation) ResetHeight()
- func (m *SessionMutation) ResetInitialPrompt()
- func (m *SessionMutation) ResetIsExpanded()
- func (m *SessionMutation) ResetLastAcknowledged()
- func (m *SessionMutation) ResetLastAddedToQueue()
- func (m *SessionMutation) ResetLastMeaningfulOutput()
- func (m *SessionMutation) ResetLastOutputSignature()
- func (m *SessionMutation) ResetLastTerminalUpdate()
- func (m *SessionMutation) ResetLastViewed()
- func (m *SessionMutation) ResetMcpServerURL()
- func (m *SessionMutation) ResetOneShot()
- func (m *SessionMutation) ResetPath()
- func (m *SessionMutation) ResetProgram()
- func (m *SessionMutation) ResetProject()
- func (m *SessionMutation) ResetPrompt()
- func (m *SessionMutation) ResetSessionType()
- func (m *SessionMutation) ResetStatus()
- func (m *SessionMutation) ResetTags()
- func (m *SessionMutation) ResetTitle()
- func (m *SessionMutation) ResetTmuxPrefix()
- func (m *SessionMutation) ResetUUID()
- func (m *SessionMutation) ResetUpdatedAt()
- func (m *SessionMutation) ResetWidth()
- func (m *SessionMutation) ResetWorkingDir()
- func (m *SessionMutation) ResetWorktree()
- func (m *SessionMutation) SessionType() (r string, exists bool)
- func (m *SessionMutation) SessionTypeCleared() bool
- func (m *SessionMutation) SetAutoYes(b bool)
- func (m *SessionMutation) SetBranch(s string)
- func (m *SessionMutation) SetCategory(s string)
- func (m *SessionMutation) SetClaudeSessionID(id int)
- func (m *SessionMutation) SetCreatedAt(t time.Time)
- func (m *SessionMutation) SetDiffStatsID(id int)
- func (m *SessionMutation) SetExistingWorktree(s string)
- func (m *SessionMutation) SetField(name string, value ent.Value) error
- func (m *SessionMutation) SetHeight(i int)
- func (m *SessionMutation) SetInitialPrompt(s string)
- func (m *SessionMutation) SetIsExpanded(b bool)
- func (m *SessionMutation) SetLastAcknowledged(t time.Time)
- func (m *SessionMutation) SetLastAddedToQueue(t time.Time)
- func (m *SessionMutation) SetLastMeaningfulOutput(t time.Time)
- func (m *SessionMutation) SetLastOutputSignature(s string)
- func (m *SessionMutation) SetLastTerminalUpdate(t time.Time)
- func (m *SessionMutation) SetLastViewed(t time.Time)
- func (m *SessionMutation) SetMcpServerURL(s string)
- func (m *SessionMutation) SetOneShot(b bool)
- func (m *SessionMutation) SetOp(op Op)
- func (m *SessionMutation) SetPath(s string)
- func (m *SessionMutation) SetProgram(s string)
- func (m *SessionMutation) SetProjectID(id int)
- func (m *SessionMutation) SetPrompt(s string)
- func (m *SessionMutation) SetSessionType(s string)
- func (m *SessionMutation) SetStatus(i int)
- func (m *SessionMutation) SetTitle(s string)
- func (m *SessionMutation) SetTmuxPrefix(s string)
- func (m *SessionMutation) SetUUID(s string)
- func (m *SessionMutation) SetUpdatedAt(t time.Time)
- func (m *SessionMutation) SetWidth(i int)
- func (m *SessionMutation) SetWorkingDir(s string)
- func (m *SessionMutation) SetWorktreeID(id int)
- func (m *SessionMutation) Status() (r int, exists bool)
- func (m *SessionMutation) TagsCleared() bool
- func (m *SessionMutation) TagsIDs() (ids []int)
- func (m *SessionMutation) Title() (r string, exists bool)
- func (m *SessionMutation) TmuxPrefix() (r string, exists bool)
- func (m *SessionMutation) TmuxPrefixCleared() bool
- func (m SessionMutation) Tx() (*Tx, error)
- func (m *SessionMutation) Type() string
- func (m *SessionMutation) UUID() (r string, exists bool)
- func (m *SessionMutation) UUIDCleared() bool
- func (m *SessionMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SessionMutation) Where(ps ...predicate.Session)
- func (m *SessionMutation) WhereP(ps ...func(*sql.Selector))
- func (m *SessionMutation) Width() (r int, exists bool)
- func (m *SessionMutation) WidthCleared() bool
- func (m *SessionMutation) WorkingDir() (r string, exists bool)
- func (m *SessionMutation) WorkingDirCleared() bool
- func (m *SessionMutation) WorktreeCleared() bool
- func (m *SessionMutation) WorktreeID() (id int, exists bool)
- func (m *SessionMutation) WorktreeIDs() (ids []int)
- type SessionQuery
- func (_q *SessionQuery) Aggregate(fns ...AggregateFunc) *SessionSelect
- func (_q *SessionQuery) All(ctx context.Context) ([]*Session, error)
- func (_q *SessionQuery) AllX(ctx context.Context) []*Session
- func (_q *SessionQuery) Clone() *SessionQuery
- func (_q *SessionQuery) Count(ctx context.Context) (int, error)
- func (_q *SessionQuery) CountX(ctx context.Context) int
- func (_q *SessionQuery) Exist(ctx context.Context) (bool, error)
- func (_q *SessionQuery) ExistX(ctx context.Context) bool
- func (_q *SessionQuery) First(ctx context.Context) (*Session, error)
- func (_q *SessionQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *SessionQuery) FirstIDX(ctx context.Context) int
- func (_q *SessionQuery) FirstX(ctx context.Context) *Session
- func (_q *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy
- func (_q *SessionQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *SessionQuery) IDsX(ctx context.Context) []int
- func (_q *SessionQuery) Limit(limit int) *SessionQuery
- func (_q *SessionQuery) Offset(offset int) *SessionQuery
- func (_q *SessionQuery) Only(ctx context.Context) (*Session, error)
- func (_q *SessionQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *SessionQuery) OnlyIDX(ctx context.Context) int
- func (_q *SessionQuery) OnlyX(ctx context.Context) *Session
- func (_q *SessionQuery) Order(o ...session.OrderOption) *SessionQuery
- func (_q *SessionQuery) QueryClaudeSession() *ClaudeSessionQuery
- func (_q *SessionQuery) QueryDiffStats() *DiffStatsQuery
- func (_q *SessionQuery) QueryProject() *ProjectQuery
- func (_q *SessionQuery) QueryTags() *TagQuery
- func (_q *SessionQuery) QueryWorktree() *WorktreeQuery
- func (_q *SessionQuery) Select(fields ...string) *SessionSelect
- func (_q *SessionQuery) Unique(unique bool) *SessionQuery
- func (_q *SessionQuery) Where(ps ...predicate.Session) *SessionQuery
- func (_q *SessionQuery) WithClaudeSession(opts ...func(*ClaudeSessionQuery)) *SessionQuery
- func (_q *SessionQuery) WithDiffStats(opts ...func(*DiffStatsQuery)) *SessionQuery
- func (_q *SessionQuery) WithProject(opts ...func(*ProjectQuery)) *SessionQuery
- func (_q *SessionQuery) WithTags(opts ...func(*TagQuery)) *SessionQuery
- func (_q *SessionQuery) WithWorktree(opts ...func(*WorktreeQuery)) *SessionQuery
- type SessionSelect
- func (_s *SessionSelect) Aggregate(fns ...AggregateFunc) *SessionSelect
- func (s *SessionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SessionSelect) BoolX(ctx context.Context) bool
- func (s *SessionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SessionSelect) BoolsX(ctx context.Context) []bool
- func (s *SessionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SessionSelect) Float64X(ctx context.Context) float64
- func (s *SessionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SessionSelect) Float64sX(ctx context.Context) []float64
- func (s *SessionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SessionSelect) IntX(ctx context.Context) int
- func (s *SessionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SessionSelect) IntsX(ctx context.Context) []int
- func (_s *SessionSelect) Scan(ctx context.Context, v any) error
- func (s *SessionSelect) ScanX(ctx context.Context, v any)
- func (s *SessionSelect) String(ctx context.Context) (_ string, err error)
- func (s *SessionSelect) StringX(ctx context.Context) string
- func (s *SessionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SessionSelect) StringsX(ctx context.Context) []string
- type SessionUpdate
- func (_u *SessionUpdate) AddHeight(v int) *SessionUpdate
- func (_u *SessionUpdate) AddStatus(v int) *SessionUpdate
- func (_u *SessionUpdate) AddTagIDs(ids ...int) *SessionUpdate
- func (_u *SessionUpdate) AddTags(v ...*Tag) *SessionUpdate
- func (_u *SessionUpdate) AddWidth(v int) *SessionUpdate
- func (_u *SessionUpdate) ClearBranch() *SessionUpdate
- func (_u *SessionUpdate) ClearCategory() *SessionUpdate
- func (_u *SessionUpdate) ClearClaudeSession() *SessionUpdate
- func (_u *SessionUpdate) ClearDiffStats() *SessionUpdate
- func (_u *SessionUpdate) ClearExistingWorktree() *SessionUpdate
- func (_u *SessionUpdate) ClearHeight() *SessionUpdate
- func (_u *SessionUpdate) ClearInitialPrompt() *SessionUpdate
- func (_u *SessionUpdate) ClearLastAcknowledged() *SessionUpdate
- func (_u *SessionUpdate) ClearLastAddedToQueue() *SessionUpdate
- func (_u *SessionUpdate) ClearLastMeaningfulOutput() *SessionUpdate
- func (_u *SessionUpdate) ClearLastOutputSignature() *SessionUpdate
- func (_u *SessionUpdate) ClearLastTerminalUpdate() *SessionUpdate
- func (_u *SessionUpdate) ClearLastViewed() *SessionUpdate
- func (_u *SessionUpdate) ClearMcpServerURL() *SessionUpdate
- func (_u *SessionUpdate) ClearProject() *SessionUpdate
- func (_u *SessionUpdate) ClearPrompt() *SessionUpdate
- func (_u *SessionUpdate) ClearSessionType() *SessionUpdate
- func (_u *SessionUpdate) ClearTags() *SessionUpdate
- func (_u *SessionUpdate) ClearTmuxPrefix() *SessionUpdate
- func (_u *SessionUpdate) ClearUUID() *SessionUpdate
- func (_u *SessionUpdate) ClearWidth() *SessionUpdate
- func (_u *SessionUpdate) ClearWorkingDir() *SessionUpdate
- func (_u *SessionUpdate) ClearWorktree() *SessionUpdate
- func (_u *SessionUpdate) Exec(ctx context.Context) error
- func (_u *SessionUpdate) ExecX(ctx context.Context)
- func (_u *SessionUpdate) Mutation() *SessionMutation
- func (_u *SessionUpdate) RemoveTagIDs(ids ...int) *SessionUpdate
- func (_u *SessionUpdate) RemoveTags(v ...*Tag) *SessionUpdate
- func (_u *SessionUpdate) Save(ctx context.Context) (int, error)
- func (_u *SessionUpdate) SaveX(ctx context.Context) int
- func (_u *SessionUpdate) SetAutoYes(v bool) *SessionUpdate
- func (_u *SessionUpdate) SetBranch(v string) *SessionUpdate
- func (_u *SessionUpdate) SetCategory(v string) *SessionUpdate
- func (_u *SessionUpdate) SetClaudeSession(v *ClaudeSession) *SessionUpdate
- func (_u *SessionUpdate) SetClaudeSessionID(id int) *SessionUpdate
- func (_u *SessionUpdate) SetDiffStats(v *DiffStats) *SessionUpdate
- func (_u *SessionUpdate) SetDiffStatsID(id int) *SessionUpdate
- func (_u *SessionUpdate) SetExistingWorktree(v string) *SessionUpdate
- func (_u *SessionUpdate) SetHeight(v int) *SessionUpdate
- func (_u *SessionUpdate) SetInitialPrompt(v string) *SessionUpdate
- func (_u *SessionUpdate) SetIsExpanded(v bool) *SessionUpdate
- func (_u *SessionUpdate) SetLastAcknowledged(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetLastAddedToQueue(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetLastMeaningfulOutput(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetLastOutputSignature(v string) *SessionUpdate
- func (_u *SessionUpdate) SetLastTerminalUpdate(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetLastViewed(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetMcpServerURL(v string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableAutoYes(v *bool) *SessionUpdate
- func (_u *SessionUpdate) SetNillableBranch(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableCategory(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableClaudeSessionID(id *int) *SessionUpdate
- func (_u *SessionUpdate) SetNillableDiffStatsID(id *int) *SessionUpdate
- func (_u *SessionUpdate) SetNillableExistingWorktree(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableHeight(v *int) *SessionUpdate
- func (_u *SessionUpdate) SetNillableInitialPrompt(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableIsExpanded(v *bool) *SessionUpdate
- func (_u *SessionUpdate) SetNillableLastAcknowledged(v *time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetNillableLastAddedToQueue(v *time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetNillableLastMeaningfulOutput(v *time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetNillableLastOutputSignature(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableLastTerminalUpdate(v *time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetNillableLastViewed(v *time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetNillableMcpServerURL(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableOneShot(v *bool) *SessionUpdate
- func (_u *SessionUpdate) SetNillablePath(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableProgram(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableProjectID(id *int) *SessionUpdate
- func (_u *SessionUpdate) SetNillablePrompt(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableSessionType(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableStatus(v *int) *SessionUpdate
- func (_u *SessionUpdate) SetNillableTitle(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableTmuxPrefix(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableUUID(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableWidth(v *int) *SessionUpdate
- func (_u *SessionUpdate) SetNillableWorkingDir(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableWorktreeID(id *int) *SessionUpdate
- func (_u *SessionUpdate) SetOneShot(v bool) *SessionUpdate
- func (_u *SessionUpdate) SetPath(v string) *SessionUpdate
- func (_u *SessionUpdate) SetProgram(v string) *SessionUpdate
- func (_u *SessionUpdate) SetProject(v *Project) *SessionUpdate
- func (_u *SessionUpdate) SetProjectID(id int) *SessionUpdate
- func (_u *SessionUpdate) SetPrompt(v string) *SessionUpdate
- func (_u *SessionUpdate) SetSessionType(v string) *SessionUpdate
- func (_u *SessionUpdate) SetStatus(v int) *SessionUpdate
- func (_u *SessionUpdate) SetTitle(v string) *SessionUpdate
- func (_u *SessionUpdate) SetTmuxPrefix(v string) *SessionUpdate
- func (_u *SessionUpdate) SetUUID(v string) *SessionUpdate
- func (_u *SessionUpdate) SetUpdatedAt(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetWidth(v int) *SessionUpdate
- func (_u *SessionUpdate) SetWorkingDir(v string) *SessionUpdate
- func (_u *SessionUpdate) SetWorktree(v *Worktree) *SessionUpdate
- func (_u *SessionUpdate) SetWorktreeID(id int) *SessionUpdate
- func (_u *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate
- type SessionUpdateOne
- func (_u *SessionUpdateOne) AddHeight(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) AddStatus(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) AddTagIDs(ids ...int) *SessionUpdateOne
- func (_u *SessionUpdateOne) AddTags(v ...*Tag) *SessionUpdateOne
- func (_u *SessionUpdateOne) AddWidth(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearBranch() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearCategory() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearClaudeSession() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearDiffStats() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearExistingWorktree() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearHeight() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearInitialPrompt() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearLastAcknowledged() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearLastAddedToQueue() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearLastMeaningfulOutput() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearLastOutputSignature() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearLastTerminalUpdate() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearLastViewed() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearMcpServerURL() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearProject() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearPrompt() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearSessionType() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearTags() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearTmuxPrefix() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearUUID() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearWidth() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearWorkingDir() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearWorktree() *SessionUpdateOne
- func (_u *SessionUpdateOne) Exec(ctx context.Context) error
- func (_u *SessionUpdateOne) ExecX(ctx context.Context)
- func (_u *SessionUpdateOne) Mutation() *SessionMutation
- func (_u *SessionUpdateOne) RemoveTagIDs(ids ...int) *SessionUpdateOne
- func (_u *SessionUpdateOne) RemoveTags(v ...*Tag) *SessionUpdateOne
- func (_u *SessionUpdateOne) Save(ctx context.Context) (*Session, error)
- func (_u *SessionUpdateOne) SaveX(ctx context.Context) *Session
- func (_u *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetAutoYes(v bool) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetBranch(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetCategory(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetClaudeSession(v *ClaudeSession) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetClaudeSessionID(id int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetDiffStats(v *DiffStats) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetDiffStatsID(id int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetExistingWorktree(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetHeight(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetInitialPrompt(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetIsExpanded(v bool) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetLastAcknowledged(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetLastAddedToQueue(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetLastMeaningfulOutput(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetLastOutputSignature(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetLastTerminalUpdate(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetLastViewed(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetMcpServerURL(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableAutoYes(v *bool) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableBranch(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableCategory(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableClaudeSessionID(id *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableDiffStatsID(id *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableExistingWorktree(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableHeight(v *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableInitialPrompt(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableIsExpanded(v *bool) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableLastAcknowledged(v *time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableLastAddedToQueue(v *time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableLastMeaningfulOutput(v *time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableLastOutputSignature(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableLastTerminalUpdate(v *time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableLastViewed(v *time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableMcpServerURL(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableOneShot(v *bool) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillablePath(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableProgram(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableProjectID(id *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillablePrompt(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableSessionType(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableStatus(v *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableTitle(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableTmuxPrefix(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableUUID(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableWidth(v *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableWorkingDir(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableWorktreeID(id *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetOneShot(v bool) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetPath(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetProgram(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetProject(v *Project) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetProjectID(id int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetPrompt(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetSessionType(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetStatus(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetTitle(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetTmuxPrefix(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetUUID(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetUpdatedAt(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetWidth(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetWorkingDir(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetWorktree(v *Worktree) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetWorktreeID(id int) *SessionUpdateOne
- func (_u *SessionUpdateOne) Where(ps ...predicate.Session) *SessionUpdateOne
- type SessionUpsert
- func (u *SessionUpsert) AddHeight(v int) *SessionUpsert
- func (u *SessionUpsert) AddStatus(v int) *SessionUpsert
- func (u *SessionUpsert) AddWidth(v int) *SessionUpsert
- func (u *SessionUpsert) ClearBranch() *SessionUpsert
- func (u *SessionUpsert) ClearCategory() *SessionUpsert
- func (u *SessionUpsert) ClearExistingWorktree() *SessionUpsert
- func (u *SessionUpsert) ClearHeight() *SessionUpsert
- func (u *SessionUpsert) ClearInitialPrompt() *SessionUpsert
- func (u *SessionUpsert) ClearLastAcknowledged() *SessionUpsert
- func (u *SessionUpsert) ClearLastAddedToQueue() *SessionUpsert
- func (u *SessionUpsert) ClearLastMeaningfulOutput() *SessionUpsert
- func (u *SessionUpsert) ClearLastOutputSignature() *SessionUpsert
- func (u *SessionUpsert) ClearLastTerminalUpdate() *SessionUpsert
- func (u *SessionUpsert) ClearLastViewed() *SessionUpsert
- func (u *SessionUpsert) ClearMcpServerURL() *SessionUpsert
- func (u *SessionUpsert) ClearPrompt() *SessionUpsert
- func (u *SessionUpsert) ClearSessionType() *SessionUpsert
- func (u *SessionUpsert) ClearTmuxPrefix() *SessionUpsert
- func (u *SessionUpsert) ClearUUID() *SessionUpsert
- func (u *SessionUpsert) ClearWidth() *SessionUpsert
- func (u *SessionUpsert) ClearWorkingDir() *SessionUpsert
- func (u *SessionUpsert) SetAutoYes(v bool) *SessionUpsert
- func (u *SessionUpsert) SetBranch(v string) *SessionUpsert
- func (u *SessionUpsert) SetCategory(v string) *SessionUpsert
- func (u *SessionUpsert) SetExistingWorktree(v string) *SessionUpsert
- func (u *SessionUpsert) SetHeight(v int) *SessionUpsert
- func (u *SessionUpsert) SetInitialPrompt(v string) *SessionUpsert
- func (u *SessionUpsert) SetIsExpanded(v bool) *SessionUpsert
- func (u *SessionUpsert) SetLastAcknowledged(v time.Time) *SessionUpsert
- func (u *SessionUpsert) SetLastAddedToQueue(v time.Time) *SessionUpsert
- func (u *SessionUpsert) SetLastMeaningfulOutput(v time.Time) *SessionUpsert
- func (u *SessionUpsert) SetLastOutputSignature(v string) *SessionUpsert
- func (u *SessionUpsert) SetLastTerminalUpdate(v time.Time) *SessionUpsert
- func (u *SessionUpsert) SetLastViewed(v time.Time) *SessionUpsert
- func (u *SessionUpsert) SetMcpServerURL(v string) *SessionUpsert
- func (u *SessionUpsert) SetOneShot(v bool) *SessionUpsert
- func (u *SessionUpsert) SetPath(v string) *SessionUpsert
- func (u *SessionUpsert) SetProgram(v string) *SessionUpsert
- func (u *SessionUpsert) SetPrompt(v string) *SessionUpsert
- func (u *SessionUpsert) SetSessionType(v string) *SessionUpsert
- func (u *SessionUpsert) SetStatus(v int) *SessionUpsert
- func (u *SessionUpsert) SetTitle(v string) *SessionUpsert
- func (u *SessionUpsert) SetTmuxPrefix(v string) *SessionUpsert
- func (u *SessionUpsert) SetUUID(v string) *SessionUpsert
- func (u *SessionUpsert) SetUpdatedAt(v time.Time) *SessionUpsert
- func (u *SessionUpsert) SetWidth(v int) *SessionUpsert
- func (u *SessionUpsert) SetWorkingDir(v string) *SessionUpsert
- func (u *SessionUpsert) UpdateAutoYes() *SessionUpsert
- func (u *SessionUpsert) UpdateBranch() *SessionUpsert
- func (u *SessionUpsert) UpdateCategory() *SessionUpsert
- func (u *SessionUpsert) UpdateExistingWorktree() *SessionUpsert
- func (u *SessionUpsert) UpdateHeight() *SessionUpsert
- func (u *SessionUpsert) UpdateInitialPrompt() *SessionUpsert
- func (u *SessionUpsert) UpdateIsExpanded() *SessionUpsert
- func (u *SessionUpsert) UpdateLastAcknowledged() *SessionUpsert
- func (u *SessionUpsert) UpdateLastAddedToQueue() *SessionUpsert
- func (u *SessionUpsert) UpdateLastMeaningfulOutput() *SessionUpsert
- func (u *SessionUpsert) UpdateLastOutputSignature() *SessionUpsert
- func (u *SessionUpsert) UpdateLastTerminalUpdate() *SessionUpsert
- func (u *SessionUpsert) UpdateLastViewed() *SessionUpsert
- func (u *SessionUpsert) UpdateMcpServerURL() *SessionUpsert
- func (u *SessionUpsert) UpdateOneShot() *SessionUpsert
- func (u *SessionUpsert) UpdatePath() *SessionUpsert
- func (u *SessionUpsert) UpdateProgram() *SessionUpsert
- func (u *SessionUpsert) UpdatePrompt() *SessionUpsert
- func (u *SessionUpsert) UpdateSessionType() *SessionUpsert
- func (u *SessionUpsert) UpdateStatus() *SessionUpsert
- func (u *SessionUpsert) UpdateTitle() *SessionUpsert
- func (u *SessionUpsert) UpdateTmuxPrefix() *SessionUpsert
- func (u *SessionUpsert) UpdateUUID() *SessionUpsert
- func (u *SessionUpsert) UpdateUpdatedAt() *SessionUpsert
- func (u *SessionUpsert) UpdateWidth() *SessionUpsert
- func (u *SessionUpsert) UpdateWorkingDir() *SessionUpsert
- type SessionUpsertBulk
- func (u *SessionUpsertBulk) AddHeight(v int) *SessionUpsertBulk
- func (u *SessionUpsertBulk) AddStatus(v int) *SessionUpsertBulk
- func (u *SessionUpsertBulk) AddWidth(v int) *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearBranch() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearCategory() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearExistingWorktree() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearHeight() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearInitialPrompt() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearLastAcknowledged() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearLastAddedToQueue() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearLastMeaningfulOutput() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearLastOutputSignature() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearLastTerminalUpdate() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearLastViewed() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearMcpServerURL() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearPrompt() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearSessionType() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearTmuxPrefix() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearUUID() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearWidth() *SessionUpsertBulk
- func (u *SessionUpsertBulk) ClearWorkingDir() *SessionUpsertBulk
- func (u *SessionUpsertBulk) DoNothing() *SessionUpsertBulk
- func (u *SessionUpsertBulk) Exec(ctx context.Context) error
- func (u *SessionUpsertBulk) ExecX(ctx context.Context)
- func (u *SessionUpsertBulk) Ignore() *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetAutoYes(v bool) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetBranch(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetCategory(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetExistingWorktree(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetHeight(v int) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetInitialPrompt(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetIsExpanded(v bool) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetLastAcknowledged(v time.Time) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetLastAddedToQueue(v time.Time) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetLastMeaningfulOutput(v time.Time) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetLastOutputSignature(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetLastTerminalUpdate(v time.Time) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetLastViewed(v time.Time) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetMcpServerURL(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetOneShot(v bool) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetPath(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetProgram(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetPrompt(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetSessionType(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetStatus(v int) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetTitle(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetTmuxPrefix(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetUUID(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetUpdatedAt(v time.Time) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetWidth(v int) *SessionUpsertBulk
- func (u *SessionUpsertBulk) SetWorkingDir(v string) *SessionUpsertBulk
- func (u *SessionUpsertBulk) Update(set func(*SessionUpsert)) *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateAutoYes() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateBranch() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateCategory() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateExistingWorktree() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateHeight() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateInitialPrompt() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateIsExpanded() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateLastAcknowledged() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateLastAddedToQueue() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateLastMeaningfulOutput() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateLastOutputSignature() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateLastTerminalUpdate() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateLastViewed() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateMcpServerURL() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateNewValues() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateOneShot() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdatePath() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateProgram() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdatePrompt() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateSessionType() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateStatus() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateTitle() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateTmuxPrefix() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateUUID() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateUpdatedAt() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateWidth() *SessionUpsertBulk
- func (u *SessionUpsertBulk) UpdateWorkingDir() *SessionUpsertBulk
- type SessionUpsertOne
- func (u *SessionUpsertOne) AddHeight(v int) *SessionUpsertOne
- func (u *SessionUpsertOne) AddStatus(v int) *SessionUpsertOne
- func (u *SessionUpsertOne) AddWidth(v int) *SessionUpsertOne
- func (u *SessionUpsertOne) ClearBranch() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearCategory() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearExistingWorktree() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearHeight() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearInitialPrompt() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearLastAcknowledged() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearLastAddedToQueue() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearLastMeaningfulOutput() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearLastOutputSignature() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearLastTerminalUpdate() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearLastViewed() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearMcpServerURL() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearPrompt() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearSessionType() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearTmuxPrefix() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearUUID() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearWidth() *SessionUpsertOne
- func (u *SessionUpsertOne) ClearWorkingDir() *SessionUpsertOne
- func (u *SessionUpsertOne) DoNothing() *SessionUpsertOne
- func (u *SessionUpsertOne) Exec(ctx context.Context) error
- func (u *SessionUpsertOne) ExecX(ctx context.Context)
- func (u *SessionUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *SessionUpsertOne) IDX(ctx context.Context) int
- func (u *SessionUpsertOne) Ignore() *SessionUpsertOne
- func (u *SessionUpsertOne) SetAutoYes(v bool) *SessionUpsertOne
- func (u *SessionUpsertOne) SetBranch(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetCategory(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetExistingWorktree(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetHeight(v int) *SessionUpsertOne
- func (u *SessionUpsertOne) SetInitialPrompt(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetIsExpanded(v bool) *SessionUpsertOne
- func (u *SessionUpsertOne) SetLastAcknowledged(v time.Time) *SessionUpsertOne
- func (u *SessionUpsertOne) SetLastAddedToQueue(v time.Time) *SessionUpsertOne
- func (u *SessionUpsertOne) SetLastMeaningfulOutput(v time.Time) *SessionUpsertOne
- func (u *SessionUpsertOne) SetLastOutputSignature(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetLastTerminalUpdate(v time.Time) *SessionUpsertOne
- func (u *SessionUpsertOne) SetLastViewed(v time.Time) *SessionUpsertOne
- func (u *SessionUpsertOne) SetMcpServerURL(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetOneShot(v bool) *SessionUpsertOne
- func (u *SessionUpsertOne) SetPath(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetProgram(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetPrompt(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetSessionType(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetStatus(v int) *SessionUpsertOne
- func (u *SessionUpsertOne) SetTitle(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetTmuxPrefix(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetUUID(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) SetUpdatedAt(v time.Time) *SessionUpsertOne
- func (u *SessionUpsertOne) SetWidth(v int) *SessionUpsertOne
- func (u *SessionUpsertOne) SetWorkingDir(v string) *SessionUpsertOne
- func (u *SessionUpsertOne) Update(set func(*SessionUpsert)) *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateAutoYes() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateBranch() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateCategory() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateExistingWorktree() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateHeight() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateInitialPrompt() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateIsExpanded() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateLastAcknowledged() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateLastAddedToQueue() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateLastMeaningfulOutput() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateLastOutputSignature() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateLastTerminalUpdate() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateLastViewed() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateMcpServerURL() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateNewValues() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateOneShot() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdatePath() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateProgram() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdatePrompt() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateSessionType() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateStatus() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateTitle() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateTmuxPrefix() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateUUID() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateUpdatedAt() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateWidth() *SessionUpsertOne
- func (u *SessionUpsertOne) UpdateWorkingDir() *SessionUpsertOne
- type Sessions
- type Tag
- type TagClient
- func (c *TagClient) Create() *TagCreate
- func (c *TagClient) CreateBulk(builders ...*TagCreate) *TagCreateBulk
- func (c *TagClient) Delete() *TagDelete
- func (c *TagClient) DeleteOne(_m *Tag) *TagDeleteOne
- func (c *TagClient) DeleteOneID(id int) *TagDeleteOne
- func (c *TagClient) Get(ctx context.Context, id int) (*Tag, error)
- func (c *TagClient) GetX(ctx context.Context, id int) *Tag
- func (c *TagClient) Hooks() []Hook
- func (c *TagClient) Intercept(interceptors ...Interceptor)
- func (c *TagClient) Interceptors() []Interceptor
- func (c *TagClient) MapCreateBulk(slice any, setFunc func(*TagCreate, int)) *TagCreateBulk
- func (c *TagClient) Query() *TagQuery
- func (c *TagClient) QuerySessions(_m *Tag) *SessionQuery
- func (c *TagClient) Update() *TagUpdate
- func (c *TagClient) UpdateOne(_m *Tag) *TagUpdateOne
- func (c *TagClient) UpdateOneID(id int) *TagUpdateOne
- func (c *TagClient) Use(hooks ...Hook)
- type TagCreate
- func (_c *TagCreate) AddSessionIDs(ids ...int) *TagCreate
- func (_c *TagCreate) AddSessions(v ...*Session) *TagCreate
- func (_c *TagCreate) Exec(ctx context.Context) error
- func (_c *TagCreate) ExecX(ctx context.Context)
- func (_c *TagCreate) Mutation() *TagMutation
- func (_c *TagCreate) OnConflict(opts ...sql.ConflictOption) *TagUpsertOne
- func (_c *TagCreate) OnConflictColumns(columns ...string) *TagUpsertOne
- func (_c *TagCreate) Save(ctx context.Context) (*Tag, error)
- func (_c *TagCreate) SaveX(ctx context.Context) *Tag
- func (_c *TagCreate) SetName(v string) *TagCreate
- type TagCreateBulk
- func (_c *TagCreateBulk) Exec(ctx context.Context) error
- func (_c *TagCreateBulk) ExecX(ctx context.Context)
- func (_c *TagCreateBulk) OnConflict(opts ...sql.ConflictOption) *TagUpsertBulk
- func (_c *TagCreateBulk) OnConflictColumns(columns ...string) *TagUpsertBulk
- func (_c *TagCreateBulk) Save(ctx context.Context) ([]*Tag, error)
- func (_c *TagCreateBulk) SaveX(ctx context.Context) []*Tag
- type TagDelete
- type TagDeleteOne
- type TagEdges
- type TagGroupBy
- func (_g *TagGroupBy) Aggregate(fns ...AggregateFunc) *TagGroupBy
- func (s *TagGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *TagGroupBy) BoolX(ctx context.Context) bool
- func (s *TagGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *TagGroupBy) BoolsX(ctx context.Context) []bool
- func (s *TagGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *TagGroupBy) Float64X(ctx context.Context) float64
- func (s *TagGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *TagGroupBy) Float64sX(ctx context.Context) []float64
- func (s *TagGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *TagGroupBy) IntX(ctx context.Context) int
- func (s *TagGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *TagGroupBy) IntsX(ctx context.Context) []int
- func (_g *TagGroupBy) Scan(ctx context.Context, v any) error
- func (s *TagGroupBy) ScanX(ctx context.Context, v any)
- func (s *TagGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *TagGroupBy) StringX(ctx context.Context) string
- func (s *TagGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *TagGroupBy) StringsX(ctx context.Context) []string
- type TagMutation
- func (m *TagMutation) AddField(name string, value ent.Value) error
- func (m *TagMutation) AddSessionIDs(ids ...int)
- func (m *TagMutation) AddedEdges() []string
- func (m *TagMutation) AddedField(name string) (ent.Value, bool)
- func (m *TagMutation) AddedFields() []string
- func (m *TagMutation) AddedIDs(name string) []ent.Value
- func (m *TagMutation) ClearEdge(name string) error
- func (m *TagMutation) ClearField(name string) error
- func (m *TagMutation) ClearSessions()
- func (m *TagMutation) ClearedEdges() []string
- func (m *TagMutation) ClearedFields() []string
- func (m TagMutation) Client() *Client
- func (m *TagMutation) EdgeCleared(name string) bool
- func (m *TagMutation) Field(name string) (ent.Value, bool)
- func (m *TagMutation) FieldCleared(name string) bool
- func (m *TagMutation) Fields() []string
- func (m *TagMutation) ID() (id int, exists bool)
- func (m *TagMutation) IDs(ctx context.Context) ([]int, error)
- func (m *TagMutation) Name() (r string, exists bool)
- func (m *TagMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *TagMutation) OldName(ctx context.Context) (v string, err error)
- func (m *TagMutation) Op() Op
- func (m *TagMutation) RemoveSessionIDs(ids ...int)
- func (m *TagMutation) RemovedEdges() []string
- func (m *TagMutation) RemovedIDs(name string) []ent.Value
- func (m *TagMutation) RemovedSessionsIDs() (ids []int)
- func (m *TagMutation) ResetEdge(name string) error
- func (m *TagMutation) ResetField(name string) error
- func (m *TagMutation) ResetName()
- func (m *TagMutation) ResetSessions()
- func (m *TagMutation) SessionsCleared() bool
- func (m *TagMutation) SessionsIDs() (ids []int)
- func (m *TagMutation) SetField(name string, value ent.Value) error
- func (m *TagMutation) SetName(s string)
- func (m *TagMutation) SetOp(op Op)
- func (m TagMutation) Tx() (*Tx, error)
- func (m *TagMutation) Type() string
- func (m *TagMutation) Where(ps ...predicate.Tag)
- func (m *TagMutation) WhereP(ps ...func(*sql.Selector))
- type TagQuery
- func (_q *TagQuery) Aggregate(fns ...AggregateFunc) *TagSelect
- func (_q *TagQuery) All(ctx context.Context) ([]*Tag, error)
- func (_q *TagQuery) AllX(ctx context.Context) []*Tag
- func (_q *TagQuery) Clone() *TagQuery
- func (_q *TagQuery) Count(ctx context.Context) (int, error)
- func (_q *TagQuery) CountX(ctx context.Context) int
- func (_q *TagQuery) Exist(ctx context.Context) (bool, error)
- func (_q *TagQuery) ExistX(ctx context.Context) bool
- func (_q *TagQuery) First(ctx context.Context) (*Tag, error)
- func (_q *TagQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *TagQuery) FirstIDX(ctx context.Context) int
- func (_q *TagQuery) FirstX(ctx context.Context) *Tag
- func (_q *TagQuery) GroupBy(field string, fields ...string) *TagGroupBy
- func (_q *TagQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *TagQuery) IDsX(ctx context.Context) []int
- func (_q *TagQuery) Limit(limit int) *TagQuery
- func (_q *TagQuery) Offset(offset int) *TagQuery
- func (_q *TagQuery) Only(ctx context.Context) (*Tag, error)
- func (_q *TagQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *TagQuery) OnlyIDX(ctx context.Context) int
- func (_q *TagQuery) OnlyX(ctx context.Context) *Tag
- func (_q *TagQuery) Order(o ...tag.OrderOption) *TagQuery
- func (_q *TagQuery) QuerySessions() *SessionQuery
- func (_q *TagQuery) Select(fields ...string) *TagSelect
- func (_q *TagQuery) Unique(unique bool) *TagQuery
- func (_q *TagQuery) Where(ps ...predicate.Tag) *TagQuery
- func (_q *TagQuery) WithSessions(opts ...func(*SessionQuery)) *TagQuery
- type TagSelect
- func (_s *TagSelect) Aggregate(fns ...AggregateFunc) *TagSelect
- func (s *TagSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *TagSelect) BoolX(ctx context.Context) bool
- func (s *TagSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *TagSelect) BoolsX(ctx context.Context) []bool
- func (s *TagSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *TagSelect) Float64X(ctx context.Context) float64
- func (s *TagSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *TagSelect) Float64sX(ctx context.Context) []float64
- func (s *TagSelect) Int(ctx context.Context) (_ int, err error)
- func (s *TagSelect) IntX(ctx context.Context) int
- func (s *TagSelect) Ints(ctx context.Context) ([]int, error)
- func (s *TagSelect) IntsX(ctx context.Context) []int
- func (_s *TagSelect) Scan(ctx context.Context, v any) error
- func (s *TagSelect) ScanX(ctx context.Context, v any)
- func (s *TagSelect) String(ctx context.Context) (_ string, err error)
- func (s *TagSelect) StringX(ctx context.Context) string
- func (s *TagSelect) Strings(ctx context.Context) ([]string, error)
- func (s *TagSelect) StringsX(ctx context.Context) []string
- type TagUpdate
- func (_u *TagUpdate) AddSessionIDs(ids ...int) *TagUpdate
- func (_u *TagUpdate) AddSessions(v ...*Session) *TagUpdate
- func (_u *TagUpdate) ClearSessions() *TagUpdate
- func (_u *TagUpdate) Exec(ctx context.Context) error
- func (_u *TagUpdate) ExecX(ctx context.Context)
- func (_u *TagUpdate) Mutation() *TagMutation
- func (_u *TagUpdate) RemoveSessionIDs(ids ...int) *TagUpdate
- func (_u *TagUpdate) RemoveSessions(v ...*Session) *TagUpdate
- func (_u *TagUpdate) Save(ctx context.Context) (int, error)
- func (_u *TagUpdate) SaveX(ctx context.Context) int
- func (_u *TagUpdate) SetName(v string) *TagUpdate
- func (_u *TagUpdate) SetNillableName(v *string) *TagUpdate
- func (_u *TagUpdate) Where(ps ...predicate.Tag) *TagUpdate
- type TagUpdateOne
- func (_u *TagUpdateOne) AddSessionIDs(ids ...int) *TagUpdateOne
- func (_u *TagUpdateOne) AddSessions(v ...*Session) *TagUpdateOne
- func (_u *TagUpdateOne) ClearSessions() *TagUpdateOne
- func (_u *TagUpdateOne) Exec(ctx context.Context) error
- func (_u *TagUpdateOne) ExecX(ctx context.Context)
- func (_u *TagUpdateOne) Mutation() *TagMutation
- func (_u *TagUpdateOne) RemoveSessionIDs(ids ...int) *TagUpdateOne
- func (_u *TagUpdateOne) RemoveSessions(v ...*Session) *TagUpdateOne
- func (_u *TagUpdateOne) Save(ctx context.Context) (*Tag, error)
- func (_u *TagUpdateOne) SaveX(ctx context.Context) *Tag
- func (_u *TagUpdateOne) Select(field string, fields ...string) *TagUpdateOne
- func (_u *TagUpdateOne) SetName(v string) *TagUpdateOne
- func (_u *TagUpdateOne) SetNillableName(v *string) *TagUpdateOne
- func (_u *TagUpdateOne) Where(ps ...predicate.Tag) *TagUpdateOne
- type TagUpsert
- type TagUpsertBulk
- func (u *TagUpsertBulk) DoNothing() *TagUpsertBulk
- func (u *TagUpsertBulk) Exec(ctx context.Context) error
- func (u *TagUpsertBulk) ExecX(ctx context.Context)
- func (u *TagUpsertBulk) Ignore() *TagUpsertBulk
- func (u *TagUpsertBulk) SetName(v string) *TagUpsertBulk
- func (u *TagUpsertBulk) Update(set func(*TagUpsert)) *TagUpsertBulk
- func (u *TagUpsertBulk) UpdateName() *TagUpsertBulk
- func (u *TagUpsertBulk) UpdateNewValues() *TagUpsertBulk
- type TagUpsertOne
- func (u *TagUpsertOne) DoNothing() *TagUpsertOne
- func (u *TagUpsertOne) Exec(ctx context.Context) error
- func (u *TagUpsertOne) ExecX(ctx context.Context)
- func (u *TagUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *TagUpsertOne) IDX(ctx context.Context) int
- func (u *TagUpsertOne) Ignore() *TagUpsertOne
- func (u *TagUpsertOne) SetName(v string) *TagUpsertOne
- func (u *TagUpsertOne) Update(set func(*TagUpsert)) *TagUpsertOne
- func (u *TagUpsertOne) UpdateName() *TagUpsertOne
- func (u *TagUpsertOne) UpdateNewValues() *TagUpsertOne
- type Tags
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
- type Worktree
- type WorktreeClient
- func (c *WorktreeClient) Create() *WorktreeCreate
- func (c *WorktreeClient) CreateBulk(builders ...*WorktreeCreate) *WorktreeCreateBulk
- func (c *WorktreeClient) Delete() *WorktreeDelete
- func (c *WorktreeClient) DeleteOne(_m *Worktree) *WorktreeDeleteOne
- func (c *WorktreeClient) DeleteOneID(id int) *WorktreeDeleteOne
- func (c *WorktreeClient) Get(ctx context.Context, id int) (*Worktree, error)
- func (c *WorktreeClient) GetX(ctx context.Context, id int) *Worktree
- func (c *WorktreeClient) Hooks() []Hook
- func (c *WorktreeClient) Intercept(interceptors ...Interceptor)
- func (c *WorktreeClient) Interceptors() []Interceptor
- func (c *WorktreeClient) MapCreateBulk(slice any, setFunc func(*WorktreeCreate, int)) *WorktreeCreateBulk
- func (c *WorktreeClient) Query() *WorktreeQuery
- func (c *WorktreeClient) QuerySession(_m *Worktree) *SessionQuery
- func (c *WorktreeClient) Update() *WorktreeUpdate
- func (c *WorktreeClient) UpdateOne(_m *Worktree) *WorktreeUpdateOne
- func (c *WorktreeClient) UpdateOneID(id int) *WorktreeUpdateOne
- func (c *WorktreeClient) Use(hooks ...Hook)
- type WorktreeCreate
- func (_c *WorktreeCreate) Exec(ctx context.Context) error
- func (_c *WorktreeCreate) ExecX(ctx context.Context)
- func (_c *WorktreeCreate) Mutation() *WorktreeMutation
- func (_c *WorktreeCreate) OnConflict(opts ...sql.ConflictOption) *WorktreeUpsertOne
- func (_c *WorktreeCreate) OnConflictColumns(columns ...string) *WorktreeUpsertOne
- func (_c *WorktreeCreate) Save(ctx context.Context) (*Worktree, error)
- func (_c *WorktreeCreate) SaveX(ctx context.Context) *Worktree
- func (_c *WorktreeCreate) SetBaseCommitSha(v string) *WorktreeCreate
- func (_c *WorktreeCreate) SetBranchName(v string) *WorktreeCreate
- func (_c *WorktreeCreate) SetRepoPath(v string) *WorktreeCreate
- func (_c *WorktreeCreate) SetSession(v *Session) *WorktreeCreate
- func (_c *WorktreeCreate) SetSessionID(id int) *WorktreeCreate
- func (_c *WorktreeCreate) SetSessionName(v string) *WorktreeCreate
- func (_c *WorktreeCreate) SetWorktreePath(v string) *WorktreeCreate
- type WorktreeCreateBulk
- func (_c *WorktreeCreateBulk) Exec(ctx context.Context) error
- func (_c *WorktreeCreateBulk) ExecX(ctx context.Context)
- func (_c *WorktreeCreateBulk) OnConflict(opts ...sql.ConflictOption) *WorktreeUpsertBulk
- func (_c *WorktreeCreateBulk) OnConflictColumns(columns ...string) *WorktreeUpsertBulk
- func (_c *WorktreeCreateBulk) Save(ctx context.Context) ([]*Worktree, error)
- func (_c *WorktreeCreateBulk) SaveX(ctx context.Context) []*Worktree
- type WorktreeDelete
- type WorktreeDeleteOne
- type WorktreeEdges
- type WorktreeGroupBy
- func (_g *WorktreeGroupBy) Aggregate(fns ...AggregateFunc) *WorktreeGroupBy
- func (s *WorktreeGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorktreeGroupBy) BoolX(ctx context.Context) bool
- func (s *WorktreeGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *WorktreeGroupBy) BoolsX(ctx context.Context) []bool
- func (s *WorktreeGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorktreeGroupBy) Float64X(ctx context.Context) float64
- func (s *WorktreeGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorktreeGroupBy) Float64sX(ctx context.Context) []float64
- func (s *WorktreeGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *WorktreeGroupBy) IntX(ctx context.Context) int
- func (s *WorktreeGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *WorktreeGroupBy) IntsX(ctx context.Context) []int
- func (_g *WorktreeGroupBy) Scan(ctx context.Context, v any) error
- func (s *WorktreeGroupBy) ScanX(ctx context.Context, v any)
- func (s *WorktreeGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *WorktreeGroupBy) StringX(ctx context.Context) string
- func (s *WorktreeGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *WorktreeGroupBy) StringsX(ctx context.Context) []string
- type WorktreeMutation
- func (m *WorktreeMutation) AddField(name string, value ent.Value) error
- func (m *WorktreeMutation) AddedEdges() []string
- func (m *WorktreeMutation) AddedField(name string) (ent.Value, bool)
- func (m *WorktreeMutation) AddedFields() []string
- func (m *WorktreeMutation) AddedIDs(name string) []ent.Value
- func (m *WorktreeMutation) BaseCommitSha() (r string, exists bool)
- func (m *WorktreeMutation) BranchName() (r string, exists bool)
- func (m *WorktreeMutation) ClearEdge(name string) error
- func (m *WorktreeMutation) ClearField(name string) error
- func (m *WorktreeMutation) ClearSession()
- func (m *WorktreeMutation) ClearedEdges() []string
- func (m *WorktreeMutation) ClearedFields() []string
- func (m WorktreeMutation) Client() *Client
- func (m *WorktreeMutation) EdgeCleared(name string) bool
- func (m *WorktreeMutation) Field(name string) (ent.Value, bool)
- func (m *WorktreeMutation) FieldCleared(name string) bool
- func (m *WorktreeMutation) Fields() []string
- func (m *WorktreeMutation) ID() (id int, exists bool)
- func (m *WorktreeMutation) IDs(ctx context.Context) ([]int, error)
- func (m *WorktreeMutation) OldBaseCommitSha(ctx context.Context) (v string, err error)
- func (m *WorktreeMutation) OldBranchName(ctx context.Context) (v string, err error)
- func (m *WorktreeMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *WorktreeMutation) OldRepoPath(ctx context.Context) (v string, err error)
- func (m *WorktreeMutation) OldSessionName(ctx context.Context) (v string, err error)
- func (m *WorktreeMutation) OldWorktreePath(ctx context.Context) (v string, err error)
- func (m *WorktreeMutation) Op() Op
- func (m *WorktreeMutation) RemovedEdges() []string
- func (m *WorktreeMutation) RemovedIDs(name string) []ent.Value
- func (m *WorktreeMutation) RepoPath() (r string, exists bool)
- func (m *WorktreeMutation) ResetBaseCommitSha()
- func (m *WorktreeMutation) ResetBranchName()
- func (m *WorktreeMutation) ResetEdge(name string) error
- func (m *WorktreeMutation) ResetField(name string) error
- func (m *WorktreeMutation) ResetRepoPath()
- func (m *WorktreeMutation) ResetSession()
- func (m *WorktreeMutation) ResetSessionName()
- func (m *WorktreeMutation) ResetWorktreePath()
- func (m *WorktreeMutation) SessionCleared() bool
- func (m *WorktreeMutation) SessionID() (id int, exists bool)
- func (m *WorktreeMutation) SessionIDs() (ids []int)
- func (m *WorktreeMutation) SessionName() (r string, exists bool)
- func (m *WorktreeMutation) SetBaseCommitSha(s string)
- func (m *WorktreeMutation) SetBranchName(s string)
- func (m *WorktreeMutation) SetField(name string, value ent.Value) error
- func (m *WorktreeMutation) SetOp(op Op)
- func (m *WorktreeMutation) SetRepoPath(s string)
- func (m *WorktreeMutation) SetSessionID(id int)
- func (m *WorktreeMutation) SetSessionName(s string)
- func (m *WorktreeMutation) SetWorktreePath(s string)
- func (m WorktreeMutation) Tx() (*Tx, error)
- func (m *WorktreeMutation) Type() string
- func (m *WorktreeMutation) Where(ps ...predicate.Worktree)
- func (m *WorktreeMutation) WhereP(ps ...func(*sql.Selector))
- func (m *WorktreeMutation) WorktreePath() (r string, exists bool)
- type WorktreeQuery
- func (_q *WorktreeQuery) Aggregate(fns ...AggregateFunc) *WorktreeSelect
- func (_q *WorktreeQuery) All(ctx context.Context) ([]*Worktree, error)
- func (_q *WorktreeQuery) AllX(ctx context.Context) []*Worktree
- func (_q *WorktreeQuery) Clone() *WorktreeQuery
- func (_q *WorktreeQuery) Count(ctx context.Context) (int, error)
- func (_q *WorktreeQuery) CountX(ctx context.Context) int
- func (_q *WorktreeQuery) Exist(ctx context.Context) (bool, error)
- func (_q *WorktreeQuery) ExistX(ctx context.Context) bool
- func (_q *WorktreeQuery) First(ctx context.Context) (*Worktree, error)
- func (_q *WorktreeQuery) FirstID(ctx context.Context) (id int, err error)
- func (_q *WorktreeQuery) FirstIDX(ctx context.Context) int
- func (_q *WorktreeQuery) FirstX(ctx context.Context) *Worktree
- func (_q *WorktreeQuery) GroupBy(field string, fields ...string) *WorktreeGroupBy
- func (_q *WorktreeQuery) IDs(ctx context.Context) (ids []int, err error)
- func (_q *WorktreeQuery) IDsX(ctx context.Context) []int
- func (_q *WorktreeQuery) Limit(limit int) *WorktreeQuery
- func (_q *WorktreeQuery) Offset(offset int) *WorktreeQuery
- func (_q *WorktreeQuery) Only(ctx context.Context) (*Worktree, error)
- func (_q *WorktreeQuery) OnlyID(ctx context.Context) (id int, err error)
- func (_q *WorktreeQuery) OnlyIDX(ctx context.Context) int
- func (_q *WorktreeQuery) OnlyX(ctx context.Context) *Worktree
- func (_q *WorktreeQuery) Order(o ...worktree.OrderOption) *WorktreeQuery
- func (_q *WorktreeQuery) QuerySession() *SessionQuery
- func (_q *WorktreeQuery) Select(fields ...string) *WorktreeSelect
- func (_q *WorktreeQuery) Unique(unique bool) *WorktreeQuery
- func (_q *WorktreeQuery) Where(ps ...predicate.Worktree) *WorktreeQuery
- func (_q *WorktreeQuery) WithSession(opts ...func(*SessionQuery)) *WorktreeQuery
- type WorktreeSelect
- func (_s *WorktreeSelect) Aggregate(fns ...AggregateFunc) *WorktreeSelect
- func (s *WorktreeSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *WorktreeSelect) BoolX(ctx context.Context) bool
- func (s *WorktreeSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *WorktreeSelect) BoolsX(ctx context.Context) []bool
- func (s *WorktreeSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *WorktreeSelect) Float64X(ctx context.Context) float64
- func (s *WorktreeSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *WorktreeSelect) Float64sX(ctx context.Context) []float64
- func (s *WorktreeSelect) Int(ctx context.Context) (_ int, err error)
- func (s *WorktreeSelect) IntX(ctx context.Context) int
- func (s *WorktreeSelect) Ints(ctx context.Context) ([]int, error)
- func (s *WorktreeSelect) IntsX(ctx context.Context) []int
- func (_s *WorktreeSelect) Scan(ctx context.Context, v any) error
- func (s *WorktreeSelect) ScanX(ctx context.Context, v any)
- func (s *WorktreeSelect) String(ctx context.Context) (_ string, err error)
- func (s *WorktreeSelect) StringX(ctx context.Context) string
- func (s *WorktreeSelect) Strings(ctx context.Context) ([]string, error)
- func (s *WorktreeSelect) StringsX(ctx context.Context) []string
- type WorktreeUpdate
- func (_u *WorktreeUpdate) ClearSession() *WorktreeUpdate
- func (_u *WorktreeUpdate) Exec(ctx context.Context) error
- func (_u *WorktreeUpdate) ExecX(ctx context.Context)
- func (_u *WorktreeUpdate) Mutation() *WorktreeMutation
- func (_u *WorktreeUpdate) Save(ctx context.Context) (int, error)
- func (_u *WorktreeUpdate) SaveX(ctx context.Context) int
- func (_u *WorktreeUpdate) SetBaseCommitSha(v string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetBranchName(v string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetNillableBaseCommitSha(v *string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetNillableBranchName(v *string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetNillableRepoPath(v *string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetNillableSessionName(v *string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetNillableWorktreePath(v *string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetRepoPath(v string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetSession(v *Session) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetSessionID(id int) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetSessionName(v string) *WorktreeUpdate
- func (_u *WorktreeUpdate) SetWorktreePath(v string) *WorktreeUpdate
- func (_u *WorktreeUpdate) Where(ps ...predicate.Worktree) *WorktreeUpdate
- type WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) ClearSession() *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) Exec(ctx context.Context) error
- func (_u *WorktreeUpdateOne) ExecX(ctx context.Context)
- func (_u *WorktreeUpdateOne) Mutation() *WorktreeMutation
- func (_u *WorktreeUpdateOne) Save(ctx context.Context) (*Worktree, error)
- func (_u *WorktreeUpdateOne) SaveX(ctx context.Context) *Worktree
- func (_u *WorktreeUpdateOne) Select(field string, fields ...string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetBaseCommitSha(v string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetBranchName(v string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetNillableBaseCommitSha(v *string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetNillableBranchName(v *string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetNillableRepoPath(v *string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetNillableSessionName(v *string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetNillableWorktreePath(v *string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetRepoPath(v string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetSession(v *Session) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetSessionID(id int) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetSessionName(v string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) SetWorktreePath(v string) *WorktreeUpdateOne
- func (_u *WorktreeUpdateOne) Where(ps ...predicate.Worktree) *WorktreeUpdateOne
- type WorktreeUpsert
- func (u *WorktreeUpsert) SetBaseCommitSha(v string) *WorktreeUpsert
- func (u *WorktreeUpsert) SetBranchName(v string) *WorktreeUpsert
- func (u *WorktreeUpsert) SetRepoPath(v string) *WorktreeUpsert
- func (u *WorktreeUpsert) SetSessionName(v string) *WorktreeUpsert
- func (u *WorktreeUpsert) SetWorktreePath(v string) *WorktreeUpsert
- func (u *WorktreeUpsert) UpdateBaseCommitSha() *WorktreeUpsert
- func (u *WorktreeUpsert) UpdateBranchName() *WorktreeUpsert
- func (u *WorktreeUpsert) UpdateRepoPath() *WorktreeUpsert
- func (u *WorktreeUpsert) UpdateSessionName() *WorktreeUpsert
- func (u *WorktreeUpsert) UpdateWorktreePath() *WorktreeUpsert
- type WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) DoNothing() *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) Exec(ctx context.Context) error
- func (u *WorktreeUpsertBulk) ExecX(ctx context.Context)
- func (u *WorktreeUpsertBulk) Ignore() *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) SetBaseCommitSha(v string) *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) SetBranchName(v string) *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) SetRepoPath(v string) *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) SetSessionName(v string) *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) SetWorktreePath(v string) *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) Update(set func(*WorktreeUpsert)) *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) UpdateBaseCommitSha() *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) UpdateBranchName() *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) UpdateNewValues() *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) UpdateRepoPath() *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) UpdateSessionName() *WorktreeUpsertBulk
- func (u *WorktreeUpsertBulk) UpdateWorktreePath() *WorktreeUpsertBulk
- type WorktreeUpsertOne
- func (u *WorktreeUpsertOne) DoNothing() *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) Exec(ctx context.Context) error
- func (u *WorktreeUpsertOne) ExecX(ctx context.Context)
- func (u *WorktreeUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *WorktreeUpsertOne) IDX(ctx context.Context) int
- func (u *WorktreeUpsertOne) Ignore() *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) SetBaseCommitSha(v string) *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) SetBranchName(v string) *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) SetRepoPath(v string) *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) SetSessionName(v string) *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) SetWorktreePath(v string) *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) Update(set func(*WorktreeUpsert)) *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) UpdateBaseCommitSha() *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) UpdateBranchName() *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) UpdateNewValues() *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) UpdateRepoPath() *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) UpdateSessionName() *WorktreeUpsertOne
- func (u *WorktreeUpsertOne) UpdateWorktreePath() *WorktreeUpsertOne
- type Worktrees
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeApprovalRule = "ApprovalRule" TypeClassificationAnalytics = "ClassificationAnalytics" TypeClaudeMetadata = "ClaudeMetadata" TypeClaudeSession = "ClaudeSession" TypeDiffStats = "DiffStats" TypeProject = "Project" TypeSession = "Session" TypeTag = "Tag" TypeWorktree = "Worktree" )
Variables ¶
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
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 ApprovalRule ¶ added in v1.12.0
type ApprovalRule struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// RuleID holds the value of the "rule_id" field.
RuleID string `json:"rule_id,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// ToolName holds the value of the "tool_name" field.
ToolName string `json:"tool_name,omitempty"`
// ToolPattern holds the value of the "tool_pattern" field.
ToolPattern string `json:"tool_pattern,omitempty"`
// ToolCategory holds the value of the "tool_category" field.
ToolCategory string `json:"tool_category,omitempty"`
// CommandPattern holds the value of the "command_pattern" field.
CommandPattern string `json:"command_pattern,omitempty"`
// FilePattern holds the value of the "file_pattern" field.
FilePattern string `json:"file_pattern,omitempty"`
// Decision holds the value of the "decision" field.
Decision int `json:"decision,omitempty"`
// RiskLevel holds the value of the "risk_level" field.
RiskLevel int `json:"risk_level,omitempty"`
// Reason holds the value of the "reason" field.
Reason string `json:"reason,omitempty"`
// Alternative holds the value of the "alternative" field.
Alternative string `json:"alternative,omitempty"`
// Priority holds the value of the "priority" field.
Priority int `json:"priority,omitempty"`
// Enabled holds the value of the "enabled" field.
Enabled bool `json:"enabled,omitempty"`
// Source holds the value of the "source" field.
Source string `json:"source,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// contains filtered or unexported fields
}
ApprovalRule is the model entity for the ApprovalRule schema.
func (*ApprovalRule) String ¶ added in v1.12.0
func (_m *ApprovalRule) String() string
String implements the fmt.Stringer.
func (*ApprovalRule) Unwrap ¶ added in v1.12.0
func (_m *ApprovalRule) Unwrap() *ApprovalRule
Unwrap unwraps the ApprovalRule 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 (*ApprovalRule) Update ¶ added in v1.12.0
func (_m *ApprovalRule) Update() *ApprovalRuleUpdateOne
Update returns a builder for updating this ApprovalRule. Note that you need to call ApprovalRule.Unwrap() before calling this method if this ApprovalRule was returned from a transaction, and the transaction was committed or rolled back.
type ApprovalRuleClient ¶ added in v1.12.0
type ApprovalRuleClient struct {
// contains filtered or unexported fields
}
ApprovalRuleClient is a client for the ApprovalRule schema.
func NewApprovalRuleClient ¶ added in v1.12.0
func NewApprovalRuleClient(c config) *ApprovalRuleClient
NewApprovalRuleClient returns a client for the ApprovalRule from the given config.
func (*ApprovalRuleClient) Create ¶ added in v1.12.0
func (c *ApprovalRuleClient) Create() *ApprovalRuleCreate
Create returns a builder for creating a ApprovalRule entity.
func (*ApprovalRuleClient) CreateBulk ¶ added in v1.12.0
func (c *ApprovalRuleClient) CreateBulk(builders ...*ApprovalRuleCreate) *ApprovalRuleCreateBulk
CreateBulk returns a builder for creating a bulk of ApprovalRule entities.
func (*ApprovalRuleClient) Delete ¶ added in v1.12.0
func (c *ApprovalRuleClient) Delete() *ApprovalRuleDelete
Delete returns a delete builder for ApprovalRule.
func (*ApprovalRuleClient) DeleteOne ¶ added in v1.12.0
func (c *ApprovalRuleClient) DeleteOne(_m *ApprovalRule) *ApprovalRuleDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ApprovalRuleClient) DeleteOneID ¶ added in v1.12.0
func (c *ApprovalRuleClient) DeleteOneID(id int) *ApprovalRuleDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ApprovalRuleClient) Get ¶ added in v1.12.0
func (c *ApprovalRuleClient) Get(ctx context.Context, id int) (*ApprovalRule, error)
Get returns a ApprovalRule entity by its id.
func (*ApprovalRuleClient) GetX ¶ added in v1.12.0
func (c *ApprovalRuleClient) GetX(ctx context.Context, id int) *ApprovalRule
GetX is like Get, but panics if an error occurs.
func (*ApprovalRuleClient) Hooks ¶ added in v1.12.0
func (c *ApprovalRuleClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ApprovalRuleClient) Intercept ¶ added in v1.12.0
func (c *ApprovalRuleClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `approvalrule.Intercept(f(g(h())))`.
func (*ApprovalRuleClient) Interceptors ¶ added in v1.12.0
func (c *ApprovalRuleClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ApprovalRuleClient) MapCreateBulk ¶ added in v1.12.0
func (c *ApprovalRuleClient) MapCreateBulk(slice any, setFunc func(*ApprovalRuleCreate, int)) *ApprovalRuleCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*ApprovalRuleClient) Query ¶ added in v1.12.0
func (c *ApprovalRuleClient) Query() *ApprovalRuleQuery
Query returns a query builder for ApprovalRule.
func (*ApprovalRuleClient) Update ¶ added in v1.12.0
func (c *ApprovalRuleClient) Update() *ApprovalRuleUpdate
Update returns an update builder for ApprovalRule.
func (*ApprovalRuleClient) UpdateOne ¶ added in v1.12.0
func (c *ApprovalRuleClient) UpdateOne(_m *ApprovalRule) *ApprovalRuleUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ApprovalRuleClient) UpdateOneID ¶ added in v1.12.0
func (c *ApprovalRuleClient) UpdateOneID(id int) *ApprovalRuleUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ApprovalRuleClient) Use ¶ added in v1.12.0
func (c *ApprovalRuleClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `approvalrule.Hooks(f(g(h())))`.
type ApprovalRuleCreate ¶ added in v1.12.0
type ApprovalRuleCreate struct {
// contains filtered or unexported fields
}
ApprovalRuleCreate is the builder for creating a ApprovalRule entity.
func (*ApprovalRuleCreate) Exec ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ApprovalRuleCreate) ExecX ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ApprovalRuleCreate) Mutation ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) Mutation() *ApprovalRuleMutation
Mutation returns the ApprovalRuleMutation object of the builder.
func (*ApprovalRuleCreate) OnConflict ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) OnConflict(opts ...sql.ConflictOption) *ApprovalRuleUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ApprovalRule.Create().
SetRuleID(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.ApprovalRuleUpsert) {
SetRuleID(v+v).
}).
Exec(ctx)
func (*ApprovalRuleCreate) OnConflictColumns ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) OnConflictColumns(columns ...string) *ApprovalRuleUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ApprovalRule.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ApprovalRuleCreate) Save ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) Save(ctx context.Context) (*ApprovalRule, error)
Save creates the ApprovalRule in the database.
func (*ApprovalRuleCreate) SaveX ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SaveX(ctx context.Context) *ApprovalRule
SaveX calls Save and panics if Save returns an error.
func (*ApprovalRuleCreate) SetAlternative ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetAlternative(v string) *ApprovalRuleCreate
SetAlternative sets the "alternative" field.
func (*ApprovalRuleCreate) SetCommandPattern ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetCommandPattern(v string) *ApprovalRuleCreate
SetCommandPattern sets the "command_pattern" field.
func (*ApprovalRuleCreate) SetCreatedAt ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetCreatedAt(v time.Time) *ApprovalRuleCreate
SetCreatedAt sets the "created_at" field.
func (*ApprovalRuleCreate) SetDecision ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetDecision(v int) *ApprovalRuleCreate
SetDecision sets the "decision" field.
func (*ApprovalRuleCreate) SetEnabled ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetEnabled(v bool) *ApprovalRuleCreate
SetEnabled sets the "enabled" field.
func (*ApprovalRuleCreate) SetFilePattern ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetFilePattern(v string) *ApprovalRuleCreate
SetFilePattern sets the "file_pattern" field.
func (*ApprovalRuleCreate) SetName ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetName(v string) *ApprovalRuleCreate
SetName sets the "name" field.
func (*ApprovalRuleCreate) SetNillableAlternative ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableAlternative(v *string) *ApprovalRuleCreate
SetNillableAlternative sets the "alternative" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableCommandPattern ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableCommandPattern(v *string) *ApprovalRuleCreate
SetNillableCommandPattern sets the "command_pattern" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableCreatedAt ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableCreatedAt(v *time.Time) *ApprovalRuleCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableEnabled ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableEnabled(v *bool) *ApprovalRuleCreate
SetNillableEnabled sets the "enabled" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableFilePattern ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableFilePattern(v *string) *ApprovalRuleCreate
SetNillableFilePattern sets the "file_pattern" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillablePriority ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillablePriority(v *int) *ApprovalRuleCreate
SetNillablePriority sets the "priority" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableReason ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableReason(v *string) *ApprovalRuleCreate
SetNillableReason sets the "reason" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableSource ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableSource(v *string) *ApprovalRuleCreate
SetNillableSource sets the "source" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableToolCategory ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableToolCategory(v *string) *ApprovalRuleCreate
SetNillableToolCategory sets the "tool_category" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableToolName ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableToolName(v *string) *ApprovalRuleCreate
SetNillableToolName sets the "tool_name" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableToolPattern ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableToolPattern(v *string) *ApprovalRuleCreate
SetNillableToolPattern sets the "tool_pattern" field if the given value is not nil.
func (*ApprovalRuleCreate) SetNillableUpdatedAt ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetNillableUpdatedAt(v *time.Time) *ApprovalRuleCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ApprovalRuleCreate) SetPriority ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetPriority(v int) *ApprovalRuleCreate
SetPriority sets the "priority" field.
func (*ApprovalRuleCreate) SetReason ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetReason(v string) *ApprovalRuleCreate
SetReason sets the "reason" field.
func (*ApprovalRuleCreate) SetRiskLevel ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetRiskLevel(v int) *ApprovalRuleCreate
SetRiskLevel sets the "risk_level" field.
func (*ApprovalRuleCreate) SetRuleID ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetRuleID(v string) *ApprovalRuleCreate
SetRuleID sets the "rule_id" field.
func (*ApprovalRuleCreate) SetSource ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetSource(v string) *ApprovalRuleCreate
SetSource sets the "source" field.
func (*ApprovalRuleCreate) SetToolCategory ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetToolCategory(v string) *ApprovalRuleCreate
SetToolCategory sets the "tool_category" field.
func (*ApprovalRuleCreate) SetToolName ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetToolName(v string) *ApprovalRuleCreate
SetToolName sets the "tool_name" field.
func (*ApprovalRuleCreate) SetToolPattern ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetToolPattern(v string) *ApprovalRuleCreate
SetToolPattern sets the "tool_pattern" field.
func (*ApprovalRuleCreate) SetUpdatedAt ¶ added in v1.12.0
func (_c *ApprovalRuleCreate) SetUpdatedAt(v time.Time) *ApprovalRuleCreate
SetUpdatedAt sets the "updated_at" field.
type ApprovalRuleCreateBulk ¶ added in v1.12.0
type ApprovalRuleCreateBulk struct {
// contains filtered or unexported fields
}
ApprovalRuleCreateBulk is the builder for creating many ApprovalRule entities in bulk.
func (*ApprovalRuleCreateBulk) Exec ¶ added in v1.12.0
func (_c *ApprovalRuleCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ApprovalRuleCreateBulk) ExecX ¶ added in v1.12.0
func (_c *ApprovalRuleCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ApprovalRuleCreateBulk) OnConflict ¶ added in v1.12.0
func (_c *ApprovalRuleCreateBulk) OnConflict(opts ...sql.ConflictOption) *ApprovalRuleUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ApprovalRule.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.ApprovalRuleUpsert) {
SetRuleID(v+v).
}).
Exec(ctx)
func (*ApprovalRuleCreateBulk) OnConflictColumns ¶ added in v1.12.0
func (_c *ApprovalRuleCreateBulk) OnConflictColumns(columns ...string) *ApprovalRuleUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ApprovalRule.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ApprovalRuleCreateBulk) Save ¶ added in v1.12.0
func (_c *ApprovalRuleCreateBulk) Save(ctx context.Context) ([]*ApprovalRule, error)
Save creates the ApprovalRule entities in the database.
func (*ApprovalRuleCreateBulk) SaveX ¶ added in v1.12.0
func (_c *ApprovalRuleCreateBulk) SaveX(ctx context.Context) []*ApprovalRule
SaveX is like Save, but panics if an error occurs.
type ApprovalRuleDelete ¶ added in v1.12.0
type ApprovalRuleDelete struct {
// contains filtered or unexported fields
}
ApprovalRuleDelete is the builder for deleting a ApprovalRule entity.
func (*ApprovalRuleDelete) Exec ¶ added in v1.12.0
func (_d *ApprovalRuleDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ApprovalRuleDelete) ExecX ¶ added in v1.12.0
func (_d *ApprovalRuleDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ApprovalRuleDelete) Where ¶ added in v1.12.0
func (_d *ApprovalRuleDelete) Where(ps ...predicate.ApprovalRule) *ApprovalRuleDelete
Where appends a list predicates to the ApprovalRuleDelete builder.
type ApprovalRuleDeleteOne ¶ added in v1.12.0
type ApprovalRuleDeleteOne struct {
// contains filtered or unexported fields
}
ApprovalRuleDeleteOne is the builder for deleting a single ApprovalRule entity.
func (*ApprovalRuleDeleteOne) Exec ¶ added in v1.12.0
func (_d *ApprovalRuleDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ApprovalRuleDeleteOne) ExecX ¶ added in v1.12.0
func (_d *ApprovalRuleDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ApprovalRuleDeleteOne) Where ¶ added in v1.12.0
func (_d *ApprovalRuleDeleteOne) Where(ps ...predicate.ApprovalRule) *ApprovalRuleDeleteOne
Where appends a list predicates to the ApprovalRuleDelete builder.
type ApprovalRuleGroupBy ¶ added in v1.12.0
type ApprovalRuleGroupBy struct {
// contains filtered or unexported fields
}
ApprovalRuleGroupBy is the group-by builder for ApprovalRule entities.
func (*ApprovalRuleGroupBy) Aggregate ¶ added in v1.12.0
func (_g *ApprovalRuleGroupBy) Aggregate(fns ...AggregateFunc) *ApprovalRuleGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ApprovalRuleGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ApprovalRuleGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ApprovalRuleGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ApprovalRuleGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ApprovalRuleGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ApprovalRuleGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleGroupBy) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ApprovalRuleGroupBy) Scan ¶ added in v1.12.0
func (_g *ApprovalRuleGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ApprovalRuleGroupBy) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ApprovalRuleGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleGroupBy) StringX ¶ added in v1.12.0
StringX is like String, but panics if an error occurs.
type ApprovalRuleMutation ¶ added in v1.12.0
type ApprovalRuleMutation struct {
// contains filtered or unexported fields
}
ApprovalRuleMutation represents an operation that mutates the ApprovalRule nodes in the graph.
func (*ApprovalRuleMutation) AddDecision ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddDecision(i int)
AddDecision adds i to the "decision" field.
func (*ApprovalRuleMutation) AddField ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) AddPriority ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddPriority(i int)
AddPriority adds i to the "priority" field.
func (*ApprovalRuleMutation) AddRiskLevel ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddRiskLevel(i int)
AddRiskLevel adds i to the "risk_level" field.
func (*ApprovalRuleMutation) AddedDecision ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddedDecision() (r int, exists bool)
AddedDecision returns the value that was added to the "decision" field in this mutation.
func (*ApprovalRuleMutation) AddedEdges ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ApprovalRuleMutation) AddedField ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) AddedFields ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ApprovalRuleMutation) AddedIDs ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ApprovalRuleMutation) AddedPriority ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddedPriority() (r int, exists bool)
AddedPriority returns the value that was added to the "priority" field in this mutation.
func (*ApprovalRuleMutation) AddedRiskLevel ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AddedRiskLevel() (r int, exists bool)
AddedRiskLevel returns the value that was added to the "risk_level" field in this mutation.
func (*ApprovalRuleMutation) Alternative ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Alternative() (r string, exists bool)
Alternative returns the value of the "alternative" field in the mutation.
func (*ApprovalRuleMutation) AlternativeCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) AlternativeCleared() bool
AlternativeCleared returns if the "alternative" field was cleared in this mutation.
func (*ApprovalRuleMutation) ClearAlternative ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearAlternative()
ClearAlternative clears the value of the "alternative" field.
func (*ApprovalRuleMutation) ClearCommandPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearCommandPattern()
ClearCommandPattern clears the value of the "command_pattern" field.
func (*ApprovalRuleMutation) ClearEdge ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) ClearField ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) ClearFilePattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearFilePattern()
ClearFilePattern clears the value of the "file_pattern" field.
func (*ApprovalRuleMutation) ClearReason ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearReason()
ClearReason clears the value of the "reason" field.
func (*ApprovalRuleMutation) ClearToolCategory ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearToolCategory()
ClearToolCategory clears the value of the "tool_category" field.
func (*ApprovalRuleMutation) ClearToolName ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearToolName()
ClearToolName clears the value of the "tool_name" field.
func (*ApprovalRuleMutation) ClearToolPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearToolPattern()
ClearToolPattern clears the value of the "tool_pattern" field.
func (*ApprovalRuleMutation) ClearedEdges ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ApprovalRuleMutation) ClearedFields ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ApprovalRuleMutation) Client ¶ added in v1.12.0
func (m ApprovalRuleMutation) 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 (*ApprovalRuleMutation) CommandPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) CommandPattern() (r string, exists bool)
CommandPattern returns the value of the "command_pattern" field in the mutation.
func (*ApprovalRuleMutation) CommandPatternCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) CommandPatternCleared() bool
CommandPatternCleared returns if the "command_pattern" field was cleared in this mutation.
func (*ApprovalRuleMutation) CreatedAt ¶ added in v1.12.0
func (m *ApprovalRuleMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ApprovalRuleMutation) Decision ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Decision() (r int, exists bool)
Decision returns the value of the "decision" field in the mutation.
func (*ApprovalRuleMutation) EdgeCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ApprovalRuleMutation) Enabled ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Enabled() (r bool, exists bool)
Enabled returns the value of the "enabled" field in the mutation.
func (*ApprovalRuleMutation) Field ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) FieldCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ApprovalRuleMutation) Fields ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) FilePattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) FilePattern() (r string, exists bool)
FilePattern returns the value of the "file_pattern" field in the mutation.
func (*ApprovalRuleMutation) FilePatternCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) FilePatternCleared() bool
FilePatternCleared returns if the "file_pattern" field was cleared in this mutation.
func (*ApprovalRuleMutation) ID ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) IDs ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) Name ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*ApprovalRuleMutation) OldAlternative ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldAlternative(ctx context.Context) (v string, err error)
OldAlternative returns the old "alternative" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldCommandPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldCommandPattern(ctx context.Context) (v string, err error)
OldCommandPattern returns the old "command_pattern" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldCreatedAt ¶ added in v1.12.0
OldCreatedAt returns the old "created_at" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldDecision ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldDecision(ctx context.Context) (v int, err error)
OldDecision returns the old "decision" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldEnabled ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldEnabled(ctx context.Context) (v bool, err error)
OldEnabled returns the old "enabled" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldField ¶ added in v1.12.0
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 (*ApprovalRuleMutation) OldFilePattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldFilePattern(ctx context.Context) (v string, err error)
OldFilePattern returns the old "file_pattern" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldName ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldPriority ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldPriority(ctx context.Context) (v int, err error)
OldPriority returns the old "priority" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldReason ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldReason(ctx context.Context) (v string, err error)
OldReason returns the old "reason" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldRiskLevel ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldRiskLevel(ctx context.Context) (v int, err error)
OldRiskLevel returns the old "risk_level" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldRuleID ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldRuleID(ctx context.Context) (v string, err error)
OldRuleID returns the old "rule_id" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldSource ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldSource(ctx context.Context) (v string, err error)
OldSource returns the old "source" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldToolCategory ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldToolCategory(ctx context.Context) (v string, err error)
OldToolCategory returns the old "tool_category" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldToolName ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldToolName(ctx context.Context) (v string, err error)
OldToolName returns the old "tool_name" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldToolPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) OldToolPattern(ctx context.Context) (v string, err error)
OldToolPattern returns the old "tool_pattern" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) OldUpdatedAt ¶ added in v1.12.0
OldUpdatedAt returns the old "updated_at" field's value of the ApprovalRule entity. If the ApprovalRule object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ApprovalRuleMutation) Op ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Op() Op
Op returns the operation name.
func (*ApprovalRuleMutation) Priority ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Priority() (r int, exists bool)
Priority returns the value of the "priority" field in the mutation.
func (*ApprovalRuleMutation) Reason ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Reason() (r string, exists bool)
Reason returns the value of the "reason" field in the mutation.
func (*ApprovalRuleMutation) ReasonCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ReasonCleared() bool
ReasonCleared returns if the "reason" field was cleared in this mutation.
func (*ApprovalRuleMutation) RemovedEdges ¶ added in v1.12.0
func (m *ApprovalRuleMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ApprovalRuleMutation) RemovedIDs ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) ResetAlternative ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetAlternative()
ResetAlternative resets all changes to the "alternative" field.
func (*ApprovalRuleMutation) ResetCommandPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetCommandPattern()
ResetCommandPattern resets all changes to the "command_pattern" field.
func (*ApprovalRuleMutation) ResetCreatedAt ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ApprovalRuleMutation) ResetDecision ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetDecision()
ResetDecision resets all changes to the "decision" field.
func (*ApprovalRuleMutation) ResetEdge ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) ResetEnabled ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetEnabled()
ResetEnabled resets all changes to the "enabled" field.
func (*ApprovalRuleMutation) ResetField ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) ResetFilePattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetFilePattern()
ResetFilePattern resets all changes to the "file_pattern" field.
func (*ApprovalRuleMutation) ResetName ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*ApprovalRuleMutation) ResetPriority ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetPriority()
ResetPriority resets all changes to the "priority" field.
func (*ApprovalRuleMutation) ResetReason ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetReason()
ResetReason resets all changes to the "reason" field.
func (*ApprovalRuleMutation) ResetRiskLevel ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetRiskLevel()
ResetRiskLevel resets all changes to the "risk_level" field.
func (*ApprovalRuleMutation) ResetRuleID ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetRuleID()
ResetRuleID resets all changes to the "rule_id" field.
func (*ApprovalRuleMutation) ResetSource ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetSource()
ResetSource resets all changes to the "source" field.
func (*ApprovalRuleMutation) ResetToolCategory ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetToolCategory()
ResetToolCategory resets all changes to the "tool_category" field.
func (*ApprovalRuleMutation) ResetToolName ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetToolName()
ResetToolName resets all changes to the "tool_name" field.
func (*ApprovalRuleMutation) ResetToolPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetToolPattern()
ResetToolPattern resets all changes to the "tool_pattern" field.
func (*ApprovalRuleMutation) ResetUpdatedAt ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ApprovalRuleMutation) RiskLevel ¶ added in v1.12.0
func (m *ApprovalRuleMutation) RiskLevel() (r int, exists bool)
RiskLevel returns the value of the "risk_level" field in the mutation.
func (*ApprovalRuleMutation) RuleID ¶ added in v1.12.0
func (m *ApprovalRuleMutation) RuleID() (r string, exists bool)
RuleID returns the value of the "rule_id" field in the mutation.
func (*ApprovalRuleMutation) SetAlternative ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetAlternative(s string)
SetAlternative sets the "alternative" field.
func (*ApprovalRuleMutation) SetCommandPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetCommandPattern(s string)
SetCommandPattern sets the "command_pattern" field.
func (*ApprovalRuleMutation) SetCreatedAt ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ApprovalRuleMutation) SetDecision ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetDecision(i int)
SetDecision sets the "decision" field.
func (*ApprovalRuleMutation) SetEnabled ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetEnabled(b bool)
SetEnabled sets the "enabled" field.
func (*ApprovalRuleMutation) SetField ¶ added in v1.12.0
func (m *ApprovalRuleMutation) 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 (*ApprovalRuleMutation) SetFilePattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetFilePattern(s string)
SetFilePattern sets the "file_pattern" field.
func (*ApprovalRuleMutation) SetName ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetName(s string)
SetName sets the "name" field.
func (*ApprovalRuleMutation) SetOp ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ApprovalRuleMutation) SetPriority ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetPriority(i int)
SetPriority sets the "priority" field.
func (*ApprovalRuleMutation) SetReason ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetReason(s string)
SetReason sets the "reason" field.
func (*ApprovalRuleMutation) SetRiskLevel ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetRiskLevel(i int)
SetRiskLevel sets the "risk_level" field.
func (*ApprovalRuleMutation) SetRuleID ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetRuleID(s string)
SetRuleID sets the "rule_id" field.
func (*ApprovalRuleMutation) SetSource ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetSource(s string)
SetSource sets the "source" field.
func (*ApprovalRuleMutation) SetToolCategory ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetToolCategory(s string)
SetToolCategory sets the "tool_category" field.
func (*ApprovalRuleMutation) SetToolName ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetToolName(s string)
SetToolName sets the "tool_name" field.
func (*ApprovalRuleMutation) SetToolPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetToolPattern(s string)
SetToolPattern sets the "tool_pattern" field.
func (*ApprovalRuleMutation) SetUpdatedAt ¶ added in v1.12.0
func (m *ApprovalRuleMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ApprovalRuleMutation) Source ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Source() (r string, exists bool)
Source returns the value of the "source" field in the mutation.
func (*ApprovalRuleMutation) ToolCategory ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ToolCategory() (r string, exists bool)
ToolCategory returns the value of the "tool_category" field in the mutation.
func (*ApprovalRuleMutation) ToolCategoryCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ToolCategoryCleared() bool
ToolCategoryCleared returns if the "tool_category" field was cleared in this mutation.
func (*ApprovalRuleMutation) ToolName ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ToolName() (r string, exists bool)
ToolName returns the value of the "tool_name" field in the mutation.
func (*ApprovalRuleMutation) ToolNameCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ToolNameCleared() bool
ToolNameCleared returns if the "tool_name" field was cleared in this mutation.
func (*ApprovalRuleMutation) ToolPattern ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ToolPattern() (r string, exists bool)
ToolPattern returns the value of the "tool_pattern" field in the mutation.
func (*ApprovalRuleMutation) ToolPatternCleared ¶ added in v1.12.0
func (m *ApprovalRuleMutation) ToolPatternCleared() bool
ToolPatternCleared returns if the "tool_pattern" field was cleared in this mutation.
func (ApprovalRuleMutation) Tx ¶ added in v1.12.0
func (m ApprovalRuleMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ApprovalRuleMutation) Type ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Type() string
Type returns the node type of this mutation (ApprovalRule).
func (*ApprovalRuleMutation) UpdatedAt ¶ added in v1.12.0
func (m *ApprovalRuleMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ApprovalRuleMutation) Where ¶ added in v1.12.0
func (m *ApprovalRuleMutation) Where(ps ...predicate.ApprovalRule)
Where appends a list predicates to the ApprovalRuleMutation builder.
func (*ApprovalRuleMutation) WhereP ¶ added in v1.12.0
func (m *ApprovalRuleMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ApprovalRuleMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ApprovalRuleQuery ¶ added in v1.12.0
type ApprovalRuleQuery struct {
// contains filtered or unexported fields
}
ApprovalRuleQuery is the builder for querying ApprovalRule entities.
func (*ApprovalRuleQuery) Aggregate ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Aggregate(fns ...AggregateFunc) *ApprovalRuleSelect
Aggregate returns a ApprovalRuleSelect configured with the given aggregations.
func (*ApprovalRuleQuery) All ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) All(ctx context.Context) ([]*ApprovalRule, error)
All executes the query and returns a list of ApprovalRules.
func (*ApprovalRuleQuery) AllX ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) AllX(ctx context.Context) []*ApprovalRule
AllX is like All, but panics if an error occurs.
func (*ApprovalRuleQuery) Clone ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Clone() *ApprovalRuleQuery
Clone returns a duplicate of the ApprovalRuleQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ApprovalRuleQuery) Count ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ApprovalRuleQuery) CountX ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ApprovalRuleQuery) Exist ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ApprovalRuleQuery) ExistX ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ApprovalRuleQuery) First ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) First(ctx context.Context) (*ApprovalRule, error)
First returns the first ApprovalRule entity from the query. Returns a *NotFoundError when no ApprovalRule was found.
func (*ApprovalRuleQuery) FirstID ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first ApprovalRule ID from the query. Returns a *NotFoundError when no ApprovalRule ID was found.
func (*ApprovalRuleQuery) FirstIDX ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*ApprovalRuleQuery) FirstX ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) FirstX(ctx context.Context) *ApprovalRule
FirstX is like First, but panics if an error occurs.
func (*ApprovalRuleQuery) GroupBy ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) GroupBy(field string, fields ...string) *ApprovalRuleGroupBy
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 {
RuleID string `json:"rule_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.ApprovalRule.Query().
GroupBy(approvalrule.FieldRuleID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*ApprovalRuleQuery) IDs ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of ApprovalRule IDs.
func (*ApprovalRuleQuery) IDsX ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ApprovalRuleQuery) Limit ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Limit(limit int) *ApprovalRuleQuery
Limit the number of records to be returned by this query.
func (*ApprovalRuleQuery) Offset ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Offset(offset int) *ApprovalRuleQuery
Offset to start from.
func (*ApprovalRuleQuery) Only ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Only(ctx context.Context) (*ApprovalRule, error)
Only returns a single ApprovalRule entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ApprovalRule entity is found. Returns a *NotFoundError when no ApprovalRule entities are found.
func (*ApprovalRuleQuery) OnlyID ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only ApprovalRule ID in the query. Returns a *NotSingularError when more than one ApprovalRule ID is found. Returns a *NotFoundError when no entities are found.
func (*ApprovalRuleQuery) OnlyIDX ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ApprovalRuleQuery) OnlyX ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) OnlyX(ctx context.Context) *ApprovalRule
OnlyX is like Only, but panics if an error occurs.
func (*ApprovalRuleQuery) Order ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Order(o ...approvalrule.OrderOption) *ApprovalRuleQuery
Order specifies how the records should be ordered.
func (*ApprovalRuleQuery) Select ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Select(fields ...string) *ApprovalRuleSelect
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 {
RuleID string `json:"rule_id,omitempty"`
}
client.ApprovalRule.Query().
Select(approvalrule.FieldRuleID).
Scan(ctx, &v)
func (*ApprovalRuleQuery) Unique ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Unique(unique bool) *ApprovalRuleQuery
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 (*ApprovalRuleQuery) Where ¶ added in v1.12.0
func (_q *ApprovalRuleQuery) Where(ps ...predicate.ApprovalRule) *ApprovalRuleQuery
Where adds a new predicate for the ApprovalRuleQuery builder.
type ApprovalRuleSelect ¶ added in v1.12.0
type ApprovalRuleSelect struct {
*ApprovalRuleQuery
// contains filtered or unexported fields
}
ApprovalRuleSelect is the builder for selecting fields of ApprovalRule entities.
func (*ApprovalRuleSelect) Aggregate ¶ added in v1.12.0
func (_s *ApprovalRuleSelect) Aggregate(fns ...AggregateFunc) *ApprovalRuleSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ApprovalRuleSelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ApprovalRuleSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ApprovalRuleSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ApprovalRuleSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ApprovalRuleSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleSelect) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ApprovalRuleSelect) Scan ¶ added in v1.12.0
func (_s *ApprovalRuleSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ApprovalRuleSelect) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ApprovalRuleSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ApprovalRuleSelect) StringX ¶ added in v1.12.0
StringX is like String, but panics if an error occurs.
type ApprovalRuleUpdate ¶ added in v1.12.0
type ApprovalRuleUpdate struct {
// contains filtered or unexported fields
}
ApprovalRuleUpdate is the builder for updating ApprovalRule entities.
func (*ApprovalRuleUpdate) AddDecision ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) AddDecision(v int) *ApprovalRuleUpdate
AddDecision adds value to the "decision" field.
func (*ApprovalRuleUpdate) AddPriority ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) AddPriority(v int) *ApprovalRuleUpdate
AddPriority adds value to the "priority" field.
func (*ApprovalRuleUpdate) AddRiskLevel ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) AddRiskLevel(v int) *ApprovalRuleUpdate
AddRiskLevel adds value to the "risk_level" field.
func (*ApprovalRuleUpdate) ClearAlternative ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) ClearAlternative() *ApprovalRuleUpdate
ClearAlternative clears the value of the "alternative" field.
func (*ApprovalRuleUpdate) ClearCommandPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) ClearCommandPattern() *ApprovalRuleUpdate
ClearCommandPattern clears the value of the "command_pattern" field.
func (*ApprovalRuleUpdate) ClearFilePattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) ClearFilePattern() *ApprovalRuleUpdate
ClearFilePattern clears the value of the "file_pattern" field.
func (*ApprovalRuleUpdate) ClearReason ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) ClearReason() *ApprovalRuleUpdate
ClearReason clears the value of the "reason" field.
func (*ApprovalRuleUpdate) ClearToolCategory ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) ClearToolCategory() *ApprovalRuleUpdate
ClearToolCategory clears the value of the "tool_category" field.
func (*ApprovalRuleUpdate) ClearToolName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) ClearToolName() *ApprovalRuleUpdate
ClearToolName clears the value of the "tool_name" field.
func (*ApprovalRuleUpdate) ClearToolPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) ClearToolPattern() *ApprovalRuleUpdate
ClearToolPattern clears the value of the "tool_pattern" field.
func (*ApprovalRuleUpdate) Exec ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ApprovalRuleUpdate) ExecX ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ApprovalRuleUpdate) Mutation ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) Mutation() *ApprovalRuleMutation
Mutation returns the ApprovalRuleMutation object of the builder.
func (*ApprovalRuleUpdate) Save ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ApprovalRuleUpdate) SaveX ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ApprovalRuleUpdate) SetAlternative ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetAlternative(v string) *ApprovalRuleUpdate
SetAlternative sets the "alternative" field.
func (*ApprovalRuleUpdate) SetCommandPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetCommandPattern(v string) *ApprovalRuleUpdate
SetCommandPattern sets the "command_pattern" field.
func (*ApprovalRuleUpdate) SetDecision ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetDecision(v int) *ApprovalRuleUpdate
SetDecision sets the "decision" field.
func (*ApprovalRuleUpdate) SetEnabled ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetEnabled(v bool) *ApprovalRuleUpdate
SetEnabled sets the "enabled" field.
func (*ApprovalRuleUpdate) SetFilePattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetFilePattern(v string) *ApprovalRuleUpdate
SetFilePattern sets the "file_pattern" field.
func (*ApprovalRuleUpdate) SetName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetName(v string) *ApprovalRuleUpdate
SetName sets the "name" field.
func (*ApprovalRuleUpdate) SetNillableAlternative ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableAlternative(v *string) *ApprovalRuleUpdate
SetNillableAlternative sets the "alternative" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableCommandPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableCommandPattern(v *string) *ApprovalRuleUpdate
SetNillableCommandPattern sets the "command_pattern" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableDecision ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableDecision(v *int) *ApprovalRuleUpdate
SetNillableDecision sets the "decision" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableEnabled ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableEnabled(v *bool) *ApprovalRuleUpdate
SetNillableEnabled sets the "enabled" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableFilePattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableFilePattern(v *string) *ApprovalRuleUpdate
SetNillableFilePattern sets the "file_pattern" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableName(v *string) *ApprovalRuleUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillablePriority ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillablePriority(v *int) *ApprovalRuleUpdate
SetNillablePriority sets the "priority" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableReason ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableReason(v *string) *ApprovalRuleUpdate
SetNillableReason sets the "reason" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableRiskLevel ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableRiskLevel(v *int) *ApprovalRuleUpdate
SetNillableRiskLevel sets the "risk_level" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableRuleID ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableRuleID(v *string) *ApprovalRuleUpdate
SetNillableRuleID sets the "rule_id" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableSource ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableSource(v *string) *ApprovalRuleUpdate
SetNillableSource sets the "source" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableToolCategory ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableToolCategory(v *string) *ApprovalRuleUpdate
SetNillableToolCategory sets the "tool_category" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableToolName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableToolName(v *string) *ApprovalRuleUpdate
SetNillableToolName sets the "tool_name" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetNillableToolPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetNillableToolPattern(v *string) *ApprovalRuleUpdate
SetNillableToolPattern sets the "tool_pattern" field if the given value is not nil.
func (*ApprovalRuleUpdate) SetPriority ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetPriority(v int) *ApprovalRuleUpdate
SetPriority sets the "priority" field.
func (*ApprovalRuleUpdate) SetReason ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetReason(v string) *ApprovalRuleUpdate
SetReason sets the "reason" field.
func (*ApprovalRuleUpdate) SetRiskLevel ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetRiskLevel(v int) *ApprovalRuleUpdate
SetRiskLevel sets the "risk_level" field.
func (*ApprovalRuleUpdate) SetRuleID ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetRuleID(v string) *ApprovalRuleUpdate
SetRuleID sets the "rule_id" field.
func (*ApprovalRuleUpdate) SetSource ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetSource(v string) *ApprovalRuleUpdate
SetSource sets the "source" field.
func (*ApprovalRuleUpdate) SetToolCategory ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetToolCategory(v string) *ApprovalRuleUpdate
SetToolCategory sets the "tool_category" field.
func (*ApprovalRuleUpdate) SetToolName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetToolName(v string) *ApprovalRuleUpdate
SetToolName sets the "tool_name" field.
func (*ApprovalRuleUpdate) SetToolPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetToolPattern(v string) *ApprovalRuleUpdate
SetToolPattern sets the "tool_pattern" field.
func (*ApprovalRuleUpdate) SetUpdatedAt ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) SetUpdatedAt(v time.Time) *ApprovalRuleUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ApprovalRuleUpdate) Where ¶ added in v1.12.0
func (_u *ApprovalRuleUpdate) Where(ps ...predicate.ApprovalRule) *ApprovalRuleUpdate
Where appends a list predicates to the ApprovalRuleUpdate builder.
type ApprovalRuleUpdateOne ¶ added in v1.12.0
type ApprovalRuleUpdateOne struct {
// contains filtered or unexported fields
}
ApprovalRuleUpdateOne is the builder for updating a single ApprovalRule entity.
func (*ApprovalRuleUpdateOne) AddDecision ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) AddDecision(v int) *ApprovalRuleUpdateOne
AddDecision adds value to the "decision" field.
func (*ApprovalRuleUpdateOne) AddPriority ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) AddPriority(v int) *ApprovalRuleUpdateOne
AddPriority adds value to the "priority" field.
func (*ApprovalRuleUpdateOne) AddRiskLevel ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) AddRiskLevel(v int) *ApprovalRuleUpdateOne
AddRiskLevel adds value to the "risk_level" field.
func (*ApprovalRuleUpdateOne) ClearAlternative ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) ClearAlternative() *ApprovalRuleUpdateOne
ClearAlternative clears the value of the "alternative" field.
func (*ApprovalRuleUpdateOne) ClearCommandPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) ClearCommandPattern() *ApprovalRuleUpdateOne
ClearCommandPattern clears the value of the "command_pattern" field.
func (*ApprovalRuleUpdateOne) ClearFilePattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) ClearFilePattern() *ApprovalRuleUpdateOne
ClearFilePattern clears the value of the "file_pattern" field.
func (*ApprovalRuleUpdateOne) ClearReason ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) ClearReason() *ApprovalRuleUpdateOne
ClearReason clears the value of the "reason" field.
func (*ApprovalRuleUpdateOne) ClearToolCategory ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) ClearToolCategory() *ApprovalRuleUpdateOne
ClearToolCategory clears the value of the "tool_category" field.
func (*ApprovalRuleUpdateOne) ClearToolName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) ClearToolName() *ApprovalRuleUpdateOne
ClearToolName clears the value of the "tool_name" field.
func (*ApprovalRuleUpdateOne) ClearToolPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) ClearToolPattern() *ApprovalRuleUpdateOne
ClearToolPattern clears the value of the "tool_pattern" field.
func (*ApprovalRuleUpdateOne) Exec ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ApprovalRuleUpdateOne) ExecX ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ApprovalRuleUpdateOne) Mutation ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) Mutation() *ApprovalRuleMutation
Mutation returns the ApprovalRuleMutation object of the builder.
func (*ApprovalRuleUpdateOne) Save ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) Save(ctx context.Context) (*ApprovalRule, error)
Save executes the query and returns the updated ApprovalRule entity.
func (*ApprovalRuleUpdateOne) SaveX ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SaveX(ctx context.Context) *ApprovalRule
SaveX is like Save, but panics if an error occurs.
func (*ApprovalRuleUpdateOne) Select ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) Select(field string, fields ...string) *ApprovalRuleUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ApprovalRuleUpdateOne) SetAlternative ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetAlternative(v string) *ApprovalRuleUpdateOne
SetAlternative sets the "alternative" field.
func (*ApprovalRuleUpdateOne) SetCommandPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetCommandPattern(v string) *ApprovalRuleUpdateOne
SetCommandPattern sets the "command_pattern" field.
func (*ApprovalRuleUpdateOne) SetDecision ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetDecision(v int) *ApprovalRuleUpdateOne
SetDecision sets the "decision" field.
func (*ApprovalRuleUpdateOne) SetEnabled ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetEnabled(v bool) *ApprovalRuleUpdateOne
SetEnabled sets the "enabled" field.
func (*ApprovalRuleUpdateOne) SetFilePattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetFilePattern(v string) *ApprovalRuleUpdateOne
SetFilePattern sets the "file_pattern" field.
func (*ApprovalRuleUpdateOne) SetName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetName(v string) *ApprovalRuleUpdateOne
SetName sets the "name" field.
func (*ApprovalRuleUpdateOne) SetNillableAlternative ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableAlternative(v *string) *ApprovalRuleUpdateOne
SetNillableAlternative sets the "alternative" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableCommandPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableCommandPattern(v *string) *ApprovalRuleUpdateOne
SetNillableCommandPattern sets the "command_pattern" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableDecision ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableDecision(v *int) *ApprovalRuleUpdateOne
SetNillableDecision sets the "decision" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableEnabled ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableEnabled(v *bool) *ApprovalRuleUpdateOne
SetNillableEnabled sets the "enabled" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableFilePattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableFilePattern(v *string) *ApprovalRuleUpdateOne
SetNillableFilePattern sets the "file_pattern" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableName(v *string) *ApprovalRuleUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillablePriority ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillablePriority(v *int) *ApprovalRuleUpdateOne
SetNillablePriority sets the "priority" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableReason ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableReason(v *string) *ApprovalRuleUpdateOne
SetNillableReason sets the "reason" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableRiskLevel ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableRiskLevel(v *int) *ApprovalRuleUpdateOne
SetNillableRiskLevel sets the "risk_level" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableRuleID ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableRuleID(v *string) *ApprovalRuleUpdateOne
SetNillableRuleID sets the "rule_id" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableSource ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableSource(v *string) *ApprovalRuleUpdateOne
SetNillableSource sets the "source" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableToolCategory ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableToolCategory(v *string) *ApprovalRuleUpdateOne
SetNillableToolCategory sets the "tool_category" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableToolName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableToolName(v *string) *ApprovalRuleUpdateOne
SetNillableToolName sets the "tool_name" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetNillableToolPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetNillableToolPattern(v *string) *ApprovalRuleUpdateOne
SetNillableToolPattern sets the "tool_pattern" field if the given value is not nil.
func (*ApprovalRuleUpdateOne) SetPriority ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetPriority(v int) *ApprovalRuleUpdateOne
SetPriority sets the "priority" field.
func (*ApprovalRuleUpdateOne) SetReason ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetReason(v string) *ApprovalRuleUpdateOne
SetReason sets the "reason" field.
func (*ApprovalRuleUpdateOne) SetRiskLevel ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetRiskLevel(v int) *ApprovalRuleUpdateOne
SetRiskLevel sets the "risk_level" field.
func (*ApprovalRuleUpdateOne) SetRuleID ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetRuleID(v string) *ApprovalRuleUpdateOne
SetRuleID sets the "rule_id" field.
func (*ApprovalRuleUpdateOne) SetSource ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetSource(v string) *ApprovalRuleUpdateOne
SetSource sets the "source" field.
func (*ApprovalRuleUpdateOne) SetToolCategory ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetToolCategory(v string) *ApprovalRuleUpdateOne
SetToolCategory sets the "tool_category" field.
func (*ApprovalRuleUpdateOne) SetToolName ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetToolName(v string) *ApprovalRuleUpdateOne
SetToolName sets the "tool_name" field.
func (*ApprovalRuleUpdateOne) SetToolPattern ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetToolPattern(v string) *ApprovalRuleUpdateOne
SetToolPattern sets the "tool_pattern" field.
func (*ApprovalRuleUpdateOne) SetUpdatedAt ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) SetUpdatedAt(v time.Time) *ApprovalRuleUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ApprovalRuleUpdateOne) Where ¶ added in v1.12.0
func (_u *ApprovalRuleUpdateOne) Where(ps ...predicate.ApprovalRule) *ApprovalRuleUpdateOne
Where appends a list predicates to the ApprovalRuleUpdate builder.
type ApprovalRuleUpsert ¶ added in v1.12.0
ApprovalRuleUpsert is the "OnConflict" setter.
func (*ApprovalRuleUpsert) AddDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) AddDecision(v int) *ApprovalRuleUpsert
AddDecision adds v to the "decision" field.
func (*ApprovalRuleUpsert) AddPriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) AddPriority(v int) *ApprovalRuleUpsert
AddPriority adds v to the "priority" field.
func (*ApprovalRuleUpsert) AddRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) AddRiskLevel(v int) *ApprovalRuleUpsert
AddRiskLevel adds v to the "risk_level" field.
func (*ApprovalRuleUpsert) ClearAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) ClearAlternative() *ApprovalRuleUpsert
ClearAlternative clears the value of the "alternative" field.
func (*ApprovalRuleUpsert) ClearCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) ClearCommandPattern() *ApprovalRuleUpsert
ClearCommandPattern clears the value of the "command_pattern" field.
func (*ApprovalRuleUpsert) ClearFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) ClearFilePattern() *ApprovalRuleUpsert
ClearFilePattern clears the value of the "file_pattern" field.
func (*ApprovalRuleUpsert) ClearReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) ClearReason() *ApprovalRuleUpsert
ClearReason clears the value of the "reason" field.
func (*ApprovalRuleUpsert) ClearToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) ClearToolCategory() *ApprovalRuleUpsert
ClearToolCategory clears the value of the "tool_category" field.
func (*ApprovalRuleUpsert) ClearToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) ClearToolName() *ApprovalRuleUpsert
ClearToolName clears the value of the "tool_name" field.
func (*ApprovalRuleUpsert) ClearToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) ClearToolPattern() *ApprovalRuleUpsert
ClearToolPattern clears the value of the "tool_pattern" field.
func (*ApprovalRuleUpsert) SetAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetAlternative(v string) *ApprovalRuleUpsert
SetAlternative sets the "alternative" field.
func (*ApprovalRuleUpsert) SetCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetCommandPattern(v string) *ApprovalRuleUpsert
SetCommandPattern sets the "command_pattern" field.
func (*ApprovalRuleUpsert) SetDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetDecision(v int) *ApprovalRuleUpsert
SetDecision sets the "decision" field.
func (*ApprovalRuleUpsert) SetEnabled ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetEnabled(v bool) *ApprovalRuleUpsert
SetEnabled sets the "enabled" field.
func (*ApprovalRuleUpsert) SetFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetFilePattern(v string) *ApprovalRuleUpsert
SetFilePattern sets the "file_pattern" field.
func (*ApprovalRuleUpsert) SetName ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetName(v string) *ApprovalRuleUpsert
SetName sets the "name" field.
func (*ApprovalRuleUpsert) SetPriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetPriority(v int) *ApprovalRuleUpsert
SetPriority sets the "priority" field.
func (*ApprovalRuleUpsert) SetReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetReason(v string) *ApprovalRuleUpsert
SetReason sets the "reason" field.
func (*ApprovalRuleUpsert) SetRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetRiskLevel(v int) *ApprovalRuleUpsert
SetRiskLevel sets the "risk_level" field.
func (*ApprovalRuleUpsert) SetRuleID ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetRuleID(v string) *ApprovalRuleUpsert
SetRuleID sets the "rule_id" field.
func (*ApprovalRuleUpsert) SetSource ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetSource(v string) *ApprovalRuleUpsert
SetSource sets the "source" field.
func (*ApprovalRuleUpsert) SetToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetToolCategory(v string) *ApprovalRuleUpsert
SetToolCategory sets the "tool_category" field.
func (*ApprovalRuleUpsert) SetToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetToolName(v string) *ApprovalRuleUpsert
SetToolName sets the "tool_name" field.
func (*ApprovalRuleUpsert) SetToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetToolPattern(v string) *ApprovalRuleUpsert
SetToolPattern sets the "tool_pattern" field.
func (*ApprovalRuleUpsert) SetUpdatedAt ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) SetUpdatedAt(v time.Time) *ApprovalRuleUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ApprovalRuleUpsert) UpdateAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateAlternative() *ApprovalRuleUpsert
UpdateAlternative sets the "alternative" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateCommandPattern() *ApprovalRuleUpsert
UpdateCommandPattern sets the "command_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateDecision() *ApprovalRuleUpsert
UpdateDecision sets the "decision" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateEnabled ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateEnabled() *ApprovalRuleUpsert
UpdateEnabled sets the "enabled" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateFilePattern() *ApprovalRuleUpsert
UpdateFilePattern sets the "file_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateName ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateName() *ApprovalRuleUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdatePriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdatePriority() *ApprovalRuleUpsert
UpdatePriority sets the "priority" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateReason() *ApprovalRuleUpsert
UpdateReason sets the "reason" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateRiskLevel() *ApprovalRuleUpsert
UpdateRiskLevel sets the "risk_level" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateRuleID ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateRuleID() *ApprovalRuleUpsert
UpdateRuleID sets the "rule_id" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateSource ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateSource() *ApprovalRuleUpsert
UpdateSource sets the "source" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateToolCategory() *ApprovalRuleUpsert
UpdateToolCategory sets the "tool_category" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateToolName() *ApprovalRuleUpsert
UpdateToolName sets the "tool_name" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateToolPattern() *ApprovalRuleUpsert
UpdateToolPattern sets the "tool_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsert) UpdateUpdatedAt ¶ added in v1.12.0
func (u *ApprovalRuleUpsert) UpdateUpdatedAt() *ApprovalRuleUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ApprovalRuleUpsertBulk ¶ added in v1.12.0
type ApprovalRuleUpsertBulk struct {
// contains filtered or unexported fields
}
ApprovalRuleUpsertBulk is the builder for "upsert"-ing a bulk of ApprovalRule nodes.
func (*ApprovalRuleUpsertBulk) AddDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) AddDecision(v int) *ApprovalRuleUpsertBulk
AddDecision adds v to the "decision" field.
func (*ApprovalRuleUpsertBulk) AddPriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) AddPriority(v int) *ApprovalRuleUpsertBulk
AddPriority adds v to the "priority" field.
func (*ApprovalRuleUpsertBulk) AddRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) AddRiskLevel(v int) *ApprovalRuleUpsertBulk
AddRiskLevel adds v to the "risk_level" field.
func (*ApprovalRuleUpsertBulk) ClearAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) ClearAlternative() *ApprovalRuleUpsertBulk
ClearAlternative clears the value of the "alternative" field.
func (*ApprovalRuleUpsertBulk) ClearCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) ClearCommandPattern() *ApprovalRuleUpsertBulk
ClearCommandPattern clears the value of the "command_pattern" field.
func (*ApprovalRuleUpsertBulk) ClearFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) ClearFilePattern() *ApprovalRuleUpsertBulk
ClearFilePattern clears the value of the "file_pattern" field.
func (*ApprovalRuleUpsertBulk) ClearReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) ClearReason() *ApprovalRuleUpsertBulk
ClearReason clears the value of the "reason" field.
func (*ApprovalRuleUpsertBulk) ClearToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) ClearToolCategory() *ApprovalRuleUpsertBulk
ClearToolCategory clears the value of the "tool_category" field.
func (*ApprovalRuleUpsertBulk) ClearToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) ClearToolName() *ApprovalRuleUpsertBulk
ClearToolName clears the value of the "tool_name" field.
func (*ApprovalRuleUpsertBulk) ClearToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) ClearToolPattern() *ApprovalRuleUpsertBulk
ClearToolPattern clears the value of the "tool_pattern" field.
func (*ApprovalRuleUpsertBulk) DoNothing ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) DoNothing() *ApprovalRuleUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ApprovalRuleUpsertBulk) Exec ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ApprovalRuleUpsertBulk) ExecX ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ApprovalRuleUpsertBulk) Ignore ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) Ignore() *ApprovalRuleUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ApprovalRule.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ApprovalRuleUpsertBulk) SetAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetAlternative(v string) *ApprovalRuleUpsertBulk
SetAlternative sets the "alternative" field.
func (*ApprovalRuleUpsertBulk) SetCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetCommandPattern(v string) *ApprovalRuleUpsertBulk
SetCommandPattern sets the "command_pattern" field.
func (*ApprovalRuleUpsertBulk) SetDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetDecision(v int) *ApprovalRuleUpsertBulk
SetDecision sets the "decision" field.
func (*ApprovalRuleUpsertBulk) SetEnabled ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetEnabled(v bool) *ApprovalRuleUpsertBulk
SetEnabled sets the "enabled" field.
func (*ApprovalRuleUpsertBulk) SetFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetFilePattern(v string) *ApprovalRuleUpsertBulk
SetFilePattern sets the "file_pattern" field.
func (*ApprovalRuleUpsertBulk) SetName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetName(v string) *ApprovalRuleUpsertBulk
SetName sets the "name" field.
func (*ApprovalRuleUpsertBulk) SetPriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetPriority(v int) *ApprovalRuleUpsertBulk
SetPriority sets the "priority" field.
func (*ApprovalRuleUpsertBulk) SetReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetReason(v string) *ApprovalRuleUpsertBulk
SetReason sets the "reason" field.
func (*ApprovalRuleUpsertBulk) SetRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetRiskLevel(v int) *ApprovalRuleUpsertBulk
SetRiskLevel sets the "risk_level" field.
func (*ApprovalRuleUpsertBulk) SetRuleID ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetRuleID(v string) *ApprovalRuleUpsertBulk
SetRuleID sets the "rule_id" field.
func (*ApprovalRuleUpsertBulk) SetSource ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetSource(v string) *ApprovalRuleUpsertBulk
SetSource sets the "source" field.
func (*ApprovalRuleUpsertBulk) SetToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetToolCategory(v string) *ApprovalRuleUpsertBulk
SetToolCategory sets the "tool_category" field.
func (*ApprovalRuleUpsertBulk) SetToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetToolName(v string) *ApprovalRuleUpsertBulk
SetToolName sets the "tool_name" field.
func (*ApprovalRuleUpsertBulk) SetToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetToolPattern(v string) *ApprovalRuleUpsertBulk
SetToolPattern sets the "tool_pattern" field.
func (*ApprovalRuleUpsertBulk) SetUpdatedAt ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) SetUpdatedAt(v time.Time) *ApprovalRuleUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ApprovalRuleUpsertBulk) Update ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) Update(set func(*ApprovalRuleUpsert)) *ApprovalRuleUpsertBulk
Update allows overriding fields `UPDATE` values. See the ApprovalRuleCreateBulk.OnConflict documentation for more info.
func (*ApprovalRuleUpsertBulk) UpdateAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateAlternative() *ApprovalRuleUpsertBulk
UpdateAlternative sets the "alternative" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateCommandPattern() *ApprovalRuleUpsertBulk
UpdateCommandPattern sets the "command_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateDecision() *ApprovalRuleUpsertBulk
UpdateDecision sets the "decision" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateEnabled ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateEnabled() *ApprovalRuleUpsertBulk
UpdateEnabled sets the "enabled" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateFilePattern() *ApprovalRuleUpsertBulk
UpdateFilePattern sets the "file_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateName() *ApprovalRuleUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateNewValues ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateNewValues() *ApprovalRuleUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ApprovalRule.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ApprovalRuleUpsertBulk) UpdatePriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdatePriority() *ApprovalRuleUpsertBulk
UpdatePriority sets the "priority" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateReason() *ApprovalRuleUpsertBulk
UpdateReason sets the "reason" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateRiskLevel() *ApprovalRuleUpsertBulk
UpdateRiskLevel sets the "risk_level" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateRuleID ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateRuleID() *ApprovalRuleUpsertBulk
UpdateRuleID sets the "rule_id" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateSource ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateSource() *ApprovalRuleUpsertBulk
UpdateSource sets the "source" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateToolCategory() *ApprovalRuleUpsertBulk
UpdateToolCategory sets the "tool_category" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateToolName() *ApprovalRuleUpsertBulk
UpdateToolName sets the "tool_name" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateToolPattern() *ApprovalRuleUpsertBulk
UpdateToolPattern sets the "tool_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsertBulk) UpdateUpdatedAt ¶ added in v1.12.0
func (u *ApprovalRuleUpsertBulk) UpdateUpdatedAt() *ApprovalRuleUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ApprovalRuleUpsertOne ¶ added in v1.12.0
type ApprovalRuleUpsertOne struct {
// contains filtered or unexported fields
}
ApprovalRuleUpsertOne is the builder for "upsert"-ing
one ApprovalRule node.
func (*ApprovalRuleUpsertOne) AddDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) AddDecision(v int) *ApprovalRuleUpsertOne
AddDecision adds v to the "decision" field.
func (*ApprovalRuleUpsertOne) AddPriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) AddPriority(v int) *ApprovalRuleUpsertOne
AddPriority adds v to the "priority" field.
func (*ApprovalRuleUpsertOne) AddRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) AddRiskLevel(v int) *ApprovalRuleUpsertOne
AddRiskLevel adds v to the "risk_level" field.
func (*ApprovalRuleUpsertOne) ClearAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ClearAlternative() *ApprovalRuleUpsertOne
ClearAlternative clears the value of the "alternative" field.
func (*ApprovalRuleUpsertOne) ClearCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ClearCommandPattern() *ApprovalRuleUpsertOne
ClearCommandPattern clears the value of the "command_pattern" field.
func (*ApprovalRuleUpsertOne) ClearFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ClearFilePattern() *ApprovalRuleUpsertOne
ClearFilePattern clears the value of the "file_pattern" field.
func (*ApprovalRuleUpsertOne) ClearReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ClearReason() *ApprovalRuleUpsertOne
ClearReason clears the value of the "reason" field.
func (*ApprovalRuleUpsertOne) ClearToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ClearToolCategory() *ApprovalRuleUpsertOne
ClearToolCategory clears the value of the "tool_category" field.
func (*ApprovalRuleUpsertOne) ClearToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ClearToolName() *ApprovalRuleUpsertOne
ClearToolName clears the value of the "tool_name" field.
func (*ApprovalRuleUpsertOne) ClearToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ClearToolPattern() *ApprovalRuleUpsertOne
ClearToolPattern clears the value of the "tool_pattern" field.
func (*ApprovalRuleUpsertOne) DoNothing ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) DoNothing() *ApprovalRuleUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ApprovalRuleUpsertOne) Exec ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ApprovalRuleUpsertOne) ExecX ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ApprovalRuleUpsertOne) ID ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ApprovalRuleUpsertOne) IDX ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ApprovalRuleUpsertOne) Ignore ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) Ignore() *ApprovalRuleUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ApprovalRule.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*ApprovalRuleUpsertOne) SetAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetAlternative(v string) *ApprovalRuleUpsertOne
SetAlternative sets the "alternative" field.
func (*ApprovalRuleUpsertOne) SetCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetCommandPattern(v string) *ApprovalRuleUpsertOne
SetCommandPattern sets the "command_pattern" field.
func (*ApprovalRuleUpsertOne) SetDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetDecision(v int) *ApprovalRuleUpsertOne
SetDecision sets the "decision" field.
func (*ApprovalRuleUpsertOne) SetEnabled ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetEnabled(v bool) *ApprovalRuleUpsertOne
SetEnabled sets the "enabled" field.
func (*ApprovalRuleUpsertOne) SetFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetFilePattern(v string) *ApprovalRuleUpsertOne
SetFilePattern sets the "file_pattern" field.
func (*ApprovalRuleUpsertOne) SetName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetName(v string) *ApprovalRuleUpsertOne
SetName sets the "name" field.
func (*ApprovalRuleUpsertOne) SetPriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetPriority(v int) *ApprovalRuleUpsertOne
SetPriority sets the "priority" field.
func (*ApprovalRuleUpsertOne) SetReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetReason(v string) *ApprovalRuleUpsertOne
SetReason sets the "reason" field.
func (*ApprovalRuleUpsertOne) SetRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetRiskLevel(v int) *ApprovalRuleUpsertOne
SetRiskLevel sets the "risk_level" field.
func (*ApprovalRuleUpsertOne) SetRuleID ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetRuleID(v string) *ApprovalRuleUpsertOne
SetRuleID sets the "rule_id" field.
func (*ApprovalRuleUpsertOne) SetSource ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetSource(v string) *ApprovalRuleUpsertOne
SetSource sets the "source" field.
func (*ApprovalRuleUpsertOne) SetToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetToolCategory(v string) *ApprovalRuleUpsertOne
SetToolCategory sets the "tool_category" field.
func (*ApprovalRuleUpsertOne) SetToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetToolName(v string) *ApprovalRuleUpsertOne
SetToolName sets the "tool_name" field.
func (*ApprovalRuleUpsertOne) SetToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetToolPattern(v string) *ApprovalRuleUpsertOne
SetToolPattern sets the "tool_pattern" field.
func (*ApprovalRuleUpsertOne) SetUpdatedAt ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) SetUpdatedAt(v time.Time) *ApprovalRuleUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ApprovalRuleUpsertOne) Update ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) Update(set func(*ApprovalRuleUpsert)) *ApprovalRuleUpsertOne
Update allows overriding fields `UPDATE` values. See the ApprovalRuleCreate.OnConflict documentation for more info.
func (*ApprovalRuleUpsertOne) UpdateAlternative ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateAlternative() *ApprovalRuleUpsertOne
UpdateAlternative sets the "alternative" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateCommandPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateCommandPattern() *ApprovalRuleUpsertOne
UpdateCommandPattern sets the "command_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateDecision ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateDecision() *ApprovalRuleUpsertOne
UpdateDecision sets the "decision" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateEnabled ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateEnabled() *ApprovalRuleUpsertOne
UpdateEnabled sets the "enabled" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateFilePattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateFilePattern() *ApprovalRuleUpsertOne
UpdateFilePattern sets the "file_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateName() *ApprovalRuleUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateNewValues ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateNewValues() *ApprovalRuleUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ApprovalRule.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ApprovalRuleUpsertOne) UpdatePriority ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdatePriority() *ApprovalRuleUpsertOne
UpdatePriority sets the "priority" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateReason ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateReason() *ApprovalRuleUpsertOne
UpdateReason sets the "reason" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateRiskLevel ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateRiskLevel() *ApprovalRuleUpsertOne
UpdateRiskLevel sets the "risk_level" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateRuleID ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateRuleID() *ApprovalRuleUpsertOne
UpdateRuleID sets the "rule_id" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateSource ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateSource() *ApprovalRuleUpsertOne
UpdateSource sets the "source" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateToolCategory ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateToolCategory() *ApprovalRuleUpsertOne
UpdateToolCategory sets the "tool_category" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateToolName ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateToolName() *ApprovalRuleUpsertOne
UpdateToolName sets the "tool_name" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateToolPattern ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateToolPattern() *ApprovalRuleUpsertOne
UpdateToolPattern sets the "tool_pattern" field to the value that was provided on create.
func (*ApprovalRuleUpsertOne) UpdateUpdatedAt ¶ added in v1.12.0
func (u *ApprovalRuleUpsertOne) UpdateUpdatedAt() *ApprovalRuleUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ApprovalRules ¶ added in v1.12.0
type ApprovalRules []*ApprovalRule
ApprovalRules is a parsable slice of ApprovalRule.
type ClassificationAnalytics ¶ added in v1.12.0
type ClassificationAnalytics struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// AnalyticsID holds the value of the "analytics_id" field.
AnalyticsID string `json:"analytics_id,omitempty"`
// SessionID holds the value of the "session_id" field.
SessionID string `json:"session_id,omitempty"`
// ToolName holds the value of the "tool_name" field.
ToolName string `json:"tool_name,omitempty"`
// CommandPreview holds the value of the "command_preview" field.
CommandPreview string `json:"command_preview,omitempty"`
// Cwd holds the value of the "cwd" field.
Cwd string `json:"cwd,omitempty"`
// Decision holds the value of the "decision" field.
Decision string `json:"decision,omitempty"`
// RiskLevel holds the value of the "risk_level" field.
RiskLevel string `json:"risk_level,omitempty"`
// RuleID holds the value of the "rule_id" field.
RuleID string `json:"rule_id,omitempty"`
// RuleName holds the value of the "rule_name" field.
RuleName string `json:"rule_name,omitempty"`
// Reason holds the value of the "reason" field.
Reason string `json:"reason,omitempty"`
// Alternative holds the value of the "alternative" field.
Alternative string `json:"alternative,omitempty"`
// DurationMs holds the value of the "duration_ms" field.
DurationMs int64 `json:"duration_ms,omitempty"`
// ApprovalID holds the value of the "approval_id" field.
ApprovalID string `json:"approval_id,omitempty"`
// CommandProgram holds the value of the "command_program" field.
CommandProgram string `json:"command_program,omitempty"`
// CommandCategory holds the value of the "command_category" field.
CommandCategory string `json:"command_category,omitempty"`
// CommandSubcategory holds the value of the "command_subcategory" field.
CommandSubcategory string `json:"command_subcategory,omitempty"`
// PythonImports holds the value of the "python_imports" field.
PythonImports []string `json:"python_imports,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// contains filtered or unexported fields
}
ClassificationAnalytics is the model entity for the ClassificationAnalytics schema.
func (*ClassificationAnalytics) String ¶ added in v1.12.0
func (_m *ClassificationAnalytics) String() string
String implements the fmt.Stringer.
func (*ClassificationAnalytics) Unwrap ¶ added in v1.12.0
func (_m *ClassificationAnalytics) Unwrap() *ClassificationAnalytics
Unwrap unwraps the ClassificationAnalytics 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 (*ClassificationAnalytics) Update ¶ added in v1.12.0
func (_m *ClassificationAnalytics) Update() *ClassificationAnalyticsUpdateOne
Update returns a builder for updating this ClassificationAnalytics. Note that you need to call ClassificationAnalytics.Unwrap() before calling this method if this ClassificationAnalytics was returned from a transaction, and the transaction was committed or rolled back.
type ClassificationAnalyticsClient ¶ added in v1.12.0
type ClassificationAnalyticsClient struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsClient is a client for the ClassificationAnalytics schema.
func NewClassificationAnalyticsClient ¶ added in v1.12.0
func NewClassificationAnalyticsClient(c config) *ClassificationAnalyticsClient
NewClassificationAnalyticsClient returns a client for the ClassificationAnalytics from the given config.
func (*ClassificationAnalyticsClient) Create ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Create() *ClassificationAnalyticsCreate
Create returns a builder for creating a ClassificationAnalytics entity.
func (*ClassificationAnalyticsClient) CreateBulk ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) CreateBulk(builders ...*ClassificationAnalyticsCreate) *ClassificationAnalyticsCreateBulk
CreateBulk returns a builder for creating a bulk of ClassificationAnalytics entities.
func (*ClassificationAnalyticsClient) Delete ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Delete() *ClassificationAnalyticsDelete
Delete returns a delete builder for ClassificationAnalytics.
func (*ClassificationAnalyticsClient) DeleteOne ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) DeleteOne(_m *ClassificationAnalytics) *ClassificationAnalyticsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ClassificationAnalyticsClient) DeleteOneID ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) DeleteOneID(id int) *ClassificationAnalyticsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ClassificationAnalyticsClient) Get ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Get(ctx context.Context, id int) (*ClassificationAnalytics, error)
Get returns a ClassificationAnalytics entity by its id.
func (*ClassificationAnalyticsClient) GetX ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) GetX(ctx context.Context, id int) *ClassificationAnalytics
GetX is like Get, but panics if an error occurs.
func (*ClassificationAnalyticsClient) Hooks ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ClassificationAnalyticsClient) Intercept ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `classificationanalytics.Intercept(f(g(h())))`.
func (*ClassificationAnalyticsClient) Interceptors ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ClassificationAnalyticsClient) MapCreateBulk ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) MapCreateBulk(slice any, setFunc func(*ClassificationAnalyticsCreate, int)) *ClassificationAnalyticsCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*ClassificationAnalyticsClient) Query ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Query() *ClassificationAnalyticsQuery
Query returns a query builder for ClassificationAnalytics.
func (*ClassificationAnalyticsClient) Update ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Update() *ClassificationAnalyticsUpdate
Update returns an update builder for ClassificationAnalytics.
func (*ClassificationAnalyticsClient) UpdateOne ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) UpdateOne(_m *ClassificationAnalytics) *ClassificationAnalyticsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ClassificationAnalyticsClient) UpdateOneID ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) UpdateOneID(id int) *ClassificationAnalyticsUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ClassificationAnalyticsClient) Use ¶ added in v1.12.0
func (c *ClassificationAnalyticsClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `classificationanalytics.Hooks(f(g(h())))`.
type ClassificationAnalyticsCreate ¶ added in v1.12.0
type ClassificationAnalyticsCreate struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsCreate is the builder for creating a ClassificationAnalytics entity.
func (*ClassificationAnalyticsCreate) Exec ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClassificationAnalyticsCreate) ExecX ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClassificationAnalyticsCreate) Mutation ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) Mutation() *ClassificationAnalyticsMutation
Mutation returns the ClassificationAnalyticsMutation object of the builder.
func (*ClassificationAnalyticsCreate) OnConflict ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) OnConflict(opts ...sql.ConflictOption) *ClassificationAnalyticsUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ClassificationAnalytics.Create().
SetAnalyticsID(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.ClassificationAnalyticsUpsert) {
SetAnalyticsID(v+v).
}).
Exec(ctx)
func (*ClassificationAnalyticsCreate) OnConflictColumns ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) OnConflictColumns(columns ...string) *ClassificationAnalyticsUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ClassificationAnalytics.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ClassificationAnalyticsCreate) Save ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) Save(ctx context.Context) (*ClassificationAnalytics, error)
Save creates the ClassificationAnalytics in the database.
func (*ClassificationAnalyticsCreate) SaveX ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SaveX(ctx context.Context) *ClassificationAnalytics
SaveX calls Save and panics if Save returns an error.
func (*ClassificationAnalyticsCreate) SetAlternative ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetAlternative(v string) *ClassificationAnalyticsCreate
SetAlternative sets the "alternative" field.
func (*ClassificationAnalyticsCreate) SetAnalyticsID ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetAnalyticsID(v string) *ClassificationAnalyticsCreate
SetAnalyticsID sets the "analytics_id" field.
func (*ClassificationAnalyticsCreate) SetApprovalID ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetApprovalID(v string) *ClassificationAnalyticsCreate
SetApprovalID sets the "approval_id" field.
func (*ClassificationAnalyticsCreate) SetCommandCategory ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetCommandCategory(v string) *ClassificationAnalyticsCreate
SetCommandCategory sets the "command_category" field.
func (*ClassificationAnalyticsCreate) SetCommandPreview ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetCommandPreview(v string) *ClassificationAnalyticsCreate
SetCommandPreview sets the "command_preview" field.
func (*ClassificationAnalyticsCreate) SetCommandProgram ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetCommandProgram(v string) *ClassificationAnalyticsCreate
SetCommandProgram sets the "command_program" field.
func (*ClassificationAnalyticsCreate) SetCommandSubcategory ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetCommandSubcategory(v string) *ClassificationAnalyticsCreate
SetCommandSubcategory sets the "command_subcategory" field.
func (*ClassificationAnalyticsCreate) SetCreatedAt ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetCreatedAt(v time.Time) *ClassificationAnalyticsCreate
SetCreatedAt sets the "created_at" field.
func (*ClassificationAnalyticsCreate) SetCwd ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetCwd(v string) *ClassificationAnalyticsCreate
SetCwd sets the "cwd" field.
func (*ClassificationAnalyticsCreate) SetDecision ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetDecision(v string) *ClassificationAnalyticsCreate
SetDecision sets the "decision" field.
func (*ClassificationAnalyticsCreate) SetDurationMs ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetDurationMs(v int64) *ClassificationAnalyticsCreate
SetDurationMs sets the "duration_ms" field.
func (*ClassificationAnalyticsCreate) SetNillableAlternative ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableAlternative(v *string) *ClassificationAnalyticsCreate
SetNillableAlternative sets the "alternative" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableApprovalID ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableApprovalID(v *string) *ClassificationAnalyticsCreate
SetNillableApprovalID sets the "approval_id" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableCommandCategory ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableCommandCategory(v *string) *ClassificationAnalyticsCreate
SetNillableCommandCategory sets the "command_category" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableCommandPreview ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableCommandPreview(v *string) *ClassificationAnalyticsCreate
SetNillableCommandPreview sets the "command_preview" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableCommandProgram ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableCommandProgram(v *string) *ClassificationAnalyticsCreate
SetNillableCommandProgram sets the "command_program" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableCommandSubcategory ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableCommandSubcategory(v *string) *ClassificationAnalyticsCreate
SetNillableCommandSubcategory sets the "command_subcategory" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableCreatedAt ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableCreatedAt(v *time.Time) *ClassificationAnalyticsCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableCwd ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableCwd(v *string) *ClassificationAnalyticsCreate
SetNillableCwd sets the "cwd" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableDurationMs ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableDurationMs(v *int64) *ClassificationAnalyticsCreate
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableReason ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableReason(v *string) *ClassificationAnalyticsCreate
SetNillableReason sets the "reason" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableRuleID ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableRuleID(v *string) *ClassificationAnalyticsCreate
SetNillableRuleID sets the "rule_id" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableRuleName ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableRuleName(v *string) *ClassificationAnalyticsCreate
SetNillableRuleName sets the "rule_name" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetNillableSessionID ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetNillableSessionID(v *string) *ClassificationAnalyticsCreate
SetNillableSessionID sets the "session_id" field if the given value is not nil.
func (*ClassificationAnalyticsCreate) SetPythonImports ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetPythonImports(v []string) *ClassificationAnalyticsCreate
SetPythonImports sets the "python_imports" field.
func (*ClassificationAnalyticsCreate) SetReason ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetReason(v string) *ClassificationAnalyticsCreate
SetReason sets the "reason" field.
func (*ClassificationAnalyticsCreate) SetRiskLevel ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetRiskLevel(v string) *ClassificationAnalyticsCreate
SetRiskLevel sets the "risk_level" field.
func (*ClassificationAnalyticsCreate) SetRuleID ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetRuleID(v string) *ClassificationAnalyticsCreate
SetRuleID sets the "rule_id" field.
func (*ClassificationAnalyticsCreate) SetRuleName ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetRuleName(v string) *ClassificationAnalyticsCreate
SetRuleName sets the "rule_name" field.
func (*ClassificationAnalyticsCreate) SetSessionID ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetSessionID(v string) *ClassificationAnalyticsCreate
SetSessionID sets the "session_id" field.
func (*ClassificationAnalyticsCreate) SetToolName ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreate) SetToolName(v string) *ClassificationAnalyticsCreate
SetToolName sets the "tool_name" field.
type ClassificationAnalyticsCreateBulk ¶ added in v1.12.0
type ClassificationAnalyticsCreateBulk struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsCreateBulk is the builder for creating many ClassificationAnalytics entities in bulk.
func (*ClassificationAnalyticsCreateBulk) Exec ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ClassificationAnalyticsCreateBulk) ExecX ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClassificationAnalyticsCreateBulk) OnConflict ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreateBulk) OnConflict(opts ...sql.ConflictOption) *ClassificationAnalyticsUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ClassificationAnalytics.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.ClassificationAnalyticsUpsert) {
SetAnalyticsID(v+v).
}).
Exec(ctx)
func (*ClassificationAnalyticsCreateBulk) OnConflictColumns ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreateBulk) OnConflictColumns(columns ...string) *ClassificationAnalyticsUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ClassificationAnalytics.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ClassificationAnalyticsCreateBulk) Save ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreateBulk) Save(ctx context.Context) ([]*ClassificationAnalytics, error)
Save creates the ClassificationAnalytics entities in the database.
func (*ClassificationAnalyticsCreateBulk) SaveX ¶ added in v1.12.0
func (_c *ClassificationAnalyticsCreateBulk) SaveX(ctx context.Context) []*ClassificationAnalytics
SaveX is like Save, but panics if an error occurs.
type ClassificationAnalyticsDelete ¶ added in v1.12.0
type ClassificationAnalyticsDelete struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsDelete is the builder for deleting a ClassificationAnalytics entity.
func (*ClassificationAnalyticsDelete) Exec ¶ added in v1.12.0
func (_d *ClassificationAnalyticsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ClassificationAnalyticsDelete) ExecX ¶ added in v1.12.0
func (_d *ClassificationAnalyticsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ClassificationAnalyticsDelete) Where ¶ added in v1.12.0
func (_d *ClassificationAnalyticsDelete) Where(ps ...predicate.ClassificationAnalytics) *ClassificationAnalyticsDelete
Where appends a list predicates to the ClassificationAnalyticsDelete builder.
type ClassificationAnalyticsDeleteOne ¶ added in v1.12.0
type ClassificationAnalyticsDeleteOne struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsDeleteOne is the builder for deleting a single ClassificationAnalytics entity.
func (*ClassificationAnalyticsDeleteOne) Exec ¶ added in v1.12.0
func (_d *ClassificationAnalyticsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ClassificationAnalyticsDeleteOne) ExecX ¶ added in v1.12.0
func (_d *ClassificationAnalyticsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClassificationAnalyticsDeleteOne) Where ¶ added in v1.12.0
func (_d *ClassificationAnalyticsDeleteOne) Where(ps ...predicate.ClassificationAnalytics) *ClassificationAnalyticsDeleteOne
Where appends a list predicates to the ClassificationAnalyticsDelete builder.
type ClassificationAnalyticsGroupBy ¶ added in v1.12.0
type ClassificationAnalyticsGroupBy struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsGroupBy is the group-by builder for ClassificationAnalytics entities.
func (*ClassificationAnalyticsGroupBy) Aggregate ¶ added in v1.12.0
func (_g *ClassificationAnalyticsGroupBy) Aggregate(fns ...AggregateFunc) *ClassificationAnalyticsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ClassificationAnalyticsGroupBy) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsGroupBy) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ClassificationAnalyticsGroupBy) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsGroupBy) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ClassificationAnalyticsGroupBy) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsGroupBy) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ClassificationAnalyticsGroupBy) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsGroupBy) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ClassificationAnalyticsGroupBy) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsGroupBy) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ClassificationAnalyticsGroupBy) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsGroupBy) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ClassificationAnalyticsGroupBy) Scan ¶ added in v1.12.0
func (_g *ClassificationAnalyticsGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ClassificationAnalyticsGroupBy) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ClassificationAnalyticsGroupBy) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsGroupBy) StringX ¶ added in v1.12.0
StringX is like String, but panics if an error occurs.
type ClassificationAnalyticsMutation ¶ added in v1.12.0
type ClassificationAnalyticsMutation struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsMutation represents an operation that mutates the ClassificationAnalytics nodes in the graph.
func (*ClassificationAnalyticsMutation) AddDurationMs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AddDurationMs(i int64)
AddDurationMs adds i to the "duration_ms" field.
func (*ClassificationAnalyticsMutation) AddField ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) AddedDurationMs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AddedDurationMs() (r int64, exists bool)
AddedDurationMs returns the value that was added to the "duration_ms" field in this mutation.
func (*ClassificationAnalyticsMutation) AddedEdges ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ClassificationAnalyticsMutation) AddedField ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) AddedFields ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ClassificationAnalyticsMutation) AddedIDs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ClassificationAnalyticsMutation) Alternative ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) Alternative() (r string, exists bool)
Alternative returns the value of the "alternative" field in the mutation.
func (*ClassificationAnalyticsMutation) AlternativeCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AlternativeCleared() bool
AlternativeCleared returns if the "alternative" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) AnalyticsID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AnalyticsID() (r string, exists bool)
AnalyticsID returns the value of the "analytics_id" field in the mutation.
func (*ClassificationAnalyticsMutation) AppendPythonImports ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AppendPythonImports(s []string)
AppendPythonImports adds s to the "python_imports" field.
func (*ClassificationAnalyticsMutation) AppendedPythonImports ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) AppendedPythonImports() ([]string, bool)
AppendedPythonImports returns the list of values that were appended to the "python_imports" field in this mutation.
func (*ClassificationAnalyticsMutation) ApprovalID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ApprovalID() (r string, exists bool)
ApprovalID returns the value of the "approval_id" field in the mutation.
func (*ClassificationAnalyticsMutation) ApprovalIDCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ApprovalIDCleared() bool
ApprovalIDCleared returns if the "approval_id" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) ClearAlternative ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearAlternative()
ClearAlternative clears the value of the "alternative" field.
func (*ClassificationAnalyticsMutation) ClearApprovalID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearApprovalID()
ClearApprovalID clears the value of the "approval_id" field.
func (*ClassificationAnalyticsMutation) ClearCommandCategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearCommandCategory()
ClearCommandCategory clears the value of the "command_category" field.
func (*ClassificationAnalyticsMutation) ClearCommandPreview ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearCommandPreview()
ClearCommandPreview clears the value of the "command_preview" field.
func (*ClassificationAnalyticsMutation) ClearCommandProgram ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearCommandProgram()
ClearCommandProgram clears the value of the "command_program" field.
func (*ClassificationAnalyticsMutation) ClearCommandSubcategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearCommandSubcategory()
ClearCommandSubcategory clears the value of the "command_subcategory" field.
func (*ClassificationAnalyticsMutation) ClearCwd ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearCwd()
ClearCwd clears the value of the "cwd" field.
func (*ClassificationAnalyticsMutation) ClearEdge ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) ClearField ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) ClearPythonImports ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearPythonImports()
ClearPythonImports clears the value of the "python_imports" field.
func (*ClassificationAnalyticsMutation) ClearReason ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearReason()
ClearReason clears the value of the "reason" field.
func (*ClassificationAnalyticsMutation) ClearRuleID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearRuleID()
ClearRuleID clears the value of the "rule_id" field.
func (*ClassificationAnalyticsMutation) ClearRuleName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearRuleName()
ClearRuleName clears the value of the "rule_name" field.
func (*ClassificationAnalyticsMutation) ClearSessionID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearSessionID()
ClearSessionID clears the value of the "session_id" field.
func (*ClassificationAnalyticsMutation) ClearedEdges ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ClassificationAnalyticsMutation) ClearedFields ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ClassificationAnalyticsMutation) Client ¶ added in v1.12.0
func (m ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) CommandCategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CommandCategory() (r string, exists bool)
CommandCategory returns the value of the "command_category" field in the mutation.
func (*ClassificationAnalyticsMutation) CommandCategoryCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CommandCategoryCleared() bool
CommandCategoryCleared returns if the "command_category" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) CommandPreview ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CommandPreview() (r string, exists bool)
CommandPreview returns the value of the "command_preview" field in the mutation.
func (*ClassificationAnalyticsMutation) CommandPreviewCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CommandPreviewCleared() bool
CommandPreviewCleared returns if the "command_preview" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) CommandProgram ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CommandProgram() (r string, exists bool)
CommandProgram returns the value of the "command_program" field in the mutation.
func (*ClassificationAnalyticsMutation) CommandProgramCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CommandProgramCleared() bool
CommandProgramCleared returns if the "command_program" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) CommandSubcategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CommandSubcategory() (r string, exists bool)
CommandSubcategory returns the value of the "command_subcategory" field in the mutation.
func (*ClassificationAnalyticsMutation) CommandSubcategoryCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CommandSubcategoryCleared() bool
CommandSubcategoryCleared returns if the "command_subcategory" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) CreatedAt ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ClassificationAnalyticsMutation) Cwd ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) Cwd() (r string, exists bool)
Cwd returns the value of the "cwd" field in the mutation.
func (*ClassificationAnalyticsMutation) CwdCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) CwdCleared() bool
CwdCleared returns if the "cwd" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) Decision ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) Decision() (r string, exists bool)
Decision returns the value of the "decision" field in the mutation.
func (*ClassificationAnalyticsMutation) DurationMs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) DurationMs() (r int64, exists bool)
DurationMs returns the value of the "duration_ms" field in the mutation.
func (*ClassificationAnalyticsMutation) EdgeCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ClassificationAnalyticsMutation) Field ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) FieldCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ClassificationAnalyticsMutation) Fields ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) ID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) IDs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) OldAlternative ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldAlternative(ctx context.Context) (v string, err error)
OldAlternative returns the old "alternative" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldAnalyticsID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldAnalyticsID(ctx context.Context) (v string, err error)
OldAnalyticsID returns the old "analytics_id" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldApprovalID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldApprovalID(ctx context.Context) (v string, err error)
OldApprovalID returns the old "approval_id" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldCommandCategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldCommandCategory(ctx context.Context) (v string, err error)
OldCommandCategory returns the old "command_category" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldCommandPreview ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldCommandPreview(ctx context.Context) (v string, err error)
OldCommandPreview returns the old "command_preview" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldCommandProgram ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldCommandProgram(ctx context.Context) (v string, err error)
OldCommandProgram returns the old "command_program" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldCommandSubcategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldCommandSubcategory(ctx context.Context) (v string, err error)
OldCommandSubcategory returns the old "command_subcategory" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldCreatedAt ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
OldCreatedAt returns the old "created_at" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldCwd ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldCwd(ctx context.Context) (v string, err error)
OldCwd returns the old "cwd" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldDecision ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldDecision(ctx context.Context) (v string, err error)
OldDecision returns the old "decision" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldDurationMs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldDurationMs(ctx context.Context) (v int64, err error)
OldDurationMs returns the old "duration_ms" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldField ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) OldPythonImports ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldPythonImports(ctx context.Context) (v []string, err error)
OldPythonImports returns the old "python_imports" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldReason ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldReason(ctx context.Context) (v string, err error)
OldReason returns the old "reason" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldRiskLevel ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldRiskLevel(ctx context.Context) (v string, err error)
OldRiskLevel returns the old "risk_level" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldRuleID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldRuleID(ctx context.Context) (v string, err error)
OldRuleID returns the old "rule_id" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldRuleName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldRuleName(ctx context.Context) (v string, err error)
OldRuleName returns the old "rule_name" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldSessionID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldSessionID(ctx context.Context) (v string, err error)
OldSessionID returns the old "session_id" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) OldToolName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) OldToolName(ctx context.Context) (v string, err error)
OldToolName returns the old "tool_name" field's value of the ClassificationAnalytics entity. If the ClassificationAnalytics object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClassificationAnalyticsMutation) Op ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) Op() Op
Op returns the operation name.
func (*ClassificationAnalyticsMutation) PythonImports ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) PythonImports() (r []string, exists bool)
PythonImports returns the value of the "python_imports" field in the mutation.
func (*ClassificationAnalyticsMutation) PythonImportsCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) PythonImportsCleared() bool
PythonImportsCleared returns if the "python_imports" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) Reason ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) Reason() (r string, exists bool)
Reason returns the value of the "reason" field in the mutation.
func (*ClassificationAnalyticsMutation) ReasonCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ReasonCleared() bool
ReasonCleared returns if the "reason" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) RemovedEdges ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ClassificationAnalyticsMutation) RemovedIDs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) ResetAlternative ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetAlternative()
ResetAlternative resets all changes to the "alternative" field.
func (*ClassificationAnalyticsMutation) ResetAnalyticsID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetAnalyticsID()
ResetAnalyticsID resets all changes to the "analytics_id" field.
func (*ClassificationAnalyticsMutation) ResetApprovalID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetApprovalID()
ResetApprovalID resets all changes to the "approval_id" field.
func (*ClassificationAnalyticsMutation) ResetCommandCategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetCommandCategory()
ResetCommandCategory resets all changes to the "command_category" field.
func (*ClassificationAnalyticsMutation) ResetCommandPreview ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetCommandPreview()
ResetCommandPreview resets all changes to the "command_preview" field.
func (*ClassificationAnalyticsMutation) ResetCommandProgram ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetCommandProgram()
ResetCommandProgram resets all changes to the "command_program" field.
func (*ClassificationAnalyticsMutation) ResetCommandSubcategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetCommandSubcategory()
ResetCommandSubcategory resets all changes to the "command_subcategory" field.
func (*ClassificationAnalyticsMutation) ResetCreatedAt ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ClassificationAnalyticsMutation) ResetCwd ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetCwd()
ResetCwd resets all changes to the "cwd" field.
func (*ClassificationAnalyticsMutation) ResetDecision ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetDecision()
ResetDecision resets all changes to the "decision" field.
func (*ClassificationAnalyticsMutation) ResetDurationMs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetDurationMs()
ResetDurationMs resets all changes to the "duration_ms" field.
func (*ClassificationAnalyticsMutation) ResetEdge ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) ResetField ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) ResetPythonImports ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetPythonImports()
ResetPythonImports resets all changes to the "python_imports" field.
func (*ClassificationAnalyticsMutation) ResetReason ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetReason()
ResetReason resets all changes to the "reason" field.
func (*ClassificationAnalyticsMutation) ResetRiskLevel ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetRiskLevel()
ResetRiskLevel resets all changes to the "risk_level" field.
func (*ClassificationAnalyticsMutation) ResetRuleID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetRuleID()
ResetRuleID resets all changes to the "rule_id" field.
func (*ClassificationAnalyticsMutation) ResetRuleName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetRuleName()
ResetRuleName resets all changes to the "rule_name" field.
func (*ClassificationAnalyticsMutation) ResetSessionID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetSessionID()
ResetSessionID resets all changes to the "session_id" field.
func (*ClassificationAnalyticsMutation) ResetToolName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ResetToolName()
ResetToolName resets all changes to the "tool_name" field.
func (*ClassificationAnalyticsMutation) RiskLevel ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) RiskLevel() (r string, exists bool)
RiskLevel returns the value of the "risk_level" field in the mutation.
func (*ClassificationAnalyticsMutation) RuleID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) RuleID() (r string, exists bool)
RuleID returns the value of the "rule_id" field in the mutation.
func (*ClassificationAnalyticsMutation) RuleIDCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) RuleIDCleared() bool
RuleIDCleared returns if the "rule_id" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) RuleName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) RuleName() (r string, exists bool)
RuleName returns the value of the "rule_name" field in the mutation.
func (*ClassificationAnalyticsMutation) RuleNameCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) RuleNameCleared() bool
RuleNameCleared returns if the "rule_name" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) SessionID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SessionID() (r string, exists bool)
SessionID returns the value of the "session_id" field in the mutation.
func (*ClassificationAnalyticsMutation) SessionIDCleared ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SessionIDCleared() bool
SessionIDCleared returns if the "session_id" field was cleared in this mutation.
func (*ClassificationAnalyticsMutation) SetAlternative ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetAlternative(s string)
SetAlternative sets the "alternative" field.
func (*ClassificationAnalyticsMutation) SetAnalyticsID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetAnalyticsID(s string)
SetAnalyticsID sets the "analytics_id" field.
func (*ClassificationAnalyticsMutation) SetApprovalID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetApprovalID(s string)
SetApprovalID sets the "approval_id" field.
func (*ClassificationAnalyticsMutation) SetCommandCategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetCommandCategory(s string)
SetCommandCategory sets the "command_category" field.
func (*ClassificationAnalyticsMutation) SetCommandPreview ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetCommandPreview(s string)
SetCommandPreview sets the "command_preview" field.
func (*ClassificationAnalyticsMutation) SetCommandProgram ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetCommandProgram(s string)
SetCommandProgram sets the "command_program" field.
func (*ClassificationAnalyticsMutation) SetCommandSubcategory ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetCommandSubcategory(s string)
SetCommandSubcategory sets the "command_subcategory" field.
func (*ClassificationAnalyticsMutation) SetCreatedAt ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ClassificationAnalyticsMutation) SetCwd ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetCwd(s string)
SetCwd sets the "cwd" field.
func (*ClassificationAnalyticsMutation) SetDecision ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetDecision(s string)
SetDecision sets the "decision" field.
func (*ClassificationAnalyticsMutation) SetDurationMs ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetDurationMs(i int64)
SetDurationMs sets the "duration_ms" field.
func (*ClassificationAnalyticsMutation) SetField ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) 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 (*ClassificationAnalyticsMutation) SetOp ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ClassificationAnalyticsMutation) SetPythonImports ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetPythonImports(s []string)
SetPythonImports sets the "python_imports" field.
func (*ClassificationAnalyticsMutation) SetReason ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetReason(s string)
SetReason sets the "reason" field.
func (*ClassificationAnalyticsMutation) SetRiskLevel ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetRiskLevel(s string)
SetRiskLevel sets the "risk_level" field.
func (*ClassificationAnalyticsMutation) SetRuleID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetRuleID(s string)
SetRuleID sets the "rule_id" field.
func (*ClassificationAnalyticsMutation) SetRuleName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetRuleName(s string)
SetRuleName sets the "rule_name" field.
func (*ClassificationAnalyticsMutation) SetSessionID ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetSessionID(s string)
SetSessionID sets the "session_id" field.
func (*ClassificationAnalyticsMutation) SetToolName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) SetToolName(s string)
SetToolName sets the "tool_name" field.
func (*ClassificationAnalyticsMutation) ToolName ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) ToolName() (r string, exists bool)
ToolName returns the value of the "tool_name" field in the mutation.
func (ClassificationAnalyticsMutation) Tx ¶ added in v1.12.0
func (m ClassificationAnalyticsMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ClassificationAnalyticsMutation) Type ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) Type() string
Type returns the node type of this mutation (ClassificationAnalytics).
func (*ClassificationAnalyticsMutation) Where ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) Where(ps ...predicate.ClassificationAnalytics)
Where appends a list predicates to the ClassificationAnalyticsMutation builder.
func (*ClassificationAnalyticsMutation) WhereP ¶ added in v1.12.0
func (m *ClassificationAnalyticsMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ClassificationAnalyticsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ClassificationAnalyticsQuery ¶ added in v1.12.0
type ClassificationAnalyticsQuery struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsQuery is the builder for querying ClassificationAnalytics entities.
func (*ClassificationAnalyticsQuery) Aggregate ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Aggregate(fns ...AggregateFunc) *ClassificationAnalyticsSelect
Aggregate returns a ClassificationAnalyticsSelect configured with the given aggregations.
func (*ClassificationAnalyticsQuery) All ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) All(ctx context.Context) ([]*ClassificationAnalytics, error)
All executes the query and returns a list of ClassificationAnalyticsSlice.
func (*ClassificationAnalyticsQuery) AllX ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) AllX(ctx context.Context) []*ClassificationAnalytics
AllX is like All, but panics if an error occurs.
func (*ClassificationAnalyticsQuery) Clone ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Clone() *ClassificationAnalyticsQuery
Clone returns a duplicate of the ClassificationAnalyticsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ClassificationAnalyticsQuery) Count ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ClassificationAnalyticsQuery) CountX ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ClassificationAnalyticsQuery) Exist ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ClassificationAnalyticsQuery) ExistX ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ClassificationAnalyticsQuery) First ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) First(ctx context.Context) (*ClassificationAnalytics, error)
First returns the first ClassificationAnalytics entity from the query. Returns a *NotFoundError when no ClassificationAnalytics was found.
func (*ClassificationAnalyticsQuery) FirstID ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first ClassificationAnalytics ID from the query. Returns a *NotFoundError when no ClassificationAnalytics ID was found.
func (*ClassificationAnalyticsQuery) FirstIDX ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*ClassificationAnalyticsQuery) FirstX ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) FirstX(ctx context.Context) *ClassificationAnalytics
FirstX is like First, but panics if an error occurs.
func (*ClassificationAnalyticsQuery) GroupBy ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) GroupBy(field string, fields ...string) *ClassificationAnalyticsGroupBy
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 {
AnalyticsID string `json:"analytics_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.ClassificationAnalytics.Query().
GroupBy(classificationanalytics.FieldAnalyticsID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*ClassificationAnalyticsQuery) IDs ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of ClassificationAnalytics IDs.
func (*ClassificationAnalyticsQuery) IDsX ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ClassificationAnalyticsQuery) Limit ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Limit(limit int) *ClassificationAnalyticsQuery
Limit the number of records to be returned by this query.
func (*ClassificationAnalyticsQuery) Offset ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Offset(offset int) *ClassificationAnalyticsQuery
Offset to start from.
func (*ClassificationAnalyticsQuery) Only ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Only(ctx context.Context) (*ClassificationAnalytics, error)
Only returns a single ClassificationAnalytics entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ClassificationAnalytics entity is found. Returns a *NotFoundError when no ClassificationAnalytics entities are found.
func (*ClassificationAnalyticsQuery) OnlyID ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only ClassificationAnalytics ID in the query. Returns a *NotSingularError when more than one ClassificationAnalytics ID is found. Returns a *NotFoundError when no entities are found.
func (*ClassificationAnalyticsQuery) OnlyIDX ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ClassificationAnalyticsQuery) OnlyX ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) OnlyX(ctx context.Context) *ClassificationAnalytics
OnlyX is like Only, but panics if an error occurs.
func (*ClassificationAnalyticsQuery) Order ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Order(o ...classificationanalytics.OrderOption) *ClassificationAnalyticsQuery
Order specifies how the records should be ordered.
func (*ClassificationAnalyticsQuery) Select ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Select(fields ...string) *ClassificationAnalyticsSelect
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 {
AnalyticsID string `json:"analytics_id,omitempty"`
}
client.ClassificationAnalytics.Query().
Select(classificationanalytics.FieldAnalyticsID).
Scan(ctx, &v)
func (*ClassificationAnalyticsQuery) Unique ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Unique(unique bool) *ClassificationAnalyticsQuery
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 (*ClassificationAnalyticsQuery) Where ¶ added in v1.12.0
func (_q *ClassificationAnalyticsQuery) Where(ps ...predicate.ClassificationAnalytics) *ClassificationAnalyticsQuery
Where adds a new predicate for the ClassificationAnalyticsQuery builder.
type ClassificationAnalyticsSelect ¶ added in v1.12.0
type ClassificationAnalyticsSelect struct {
*ClassificationAnalyticsQuery
// contains filtered or unexported fields
}
ClassificationAnalyticsSelect is the builder for selecting fields of ClassificationAnalytics entities.
func (*ClassificationAnalyticsSelect) Aggregate ¶ added in v1.12.0
func (_s *ClassificationAnalyticsSelect) Aggregate(fns ...AggregateFunc) *ClassificationAnalyticsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ClassificationAnalyticsSelect) Bool ¶ added in v1.12.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsSelect) BoolX ¶ added in v1.12.0
BoolX is like Bool, but panics if an error occurs.
func (*ClassificationAnalyticsSelect) Bools ¶ added in v1.12.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsSelect) BoolsX ¶ added in v1.12.0
BoolsX is like Bools, but panics if an error occurs.
func (*ClassificationAnalyticsSelect) Float64 ¶ added in v1.12.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsSelect) Float64X ¶ added in v1.12.0
Float64X is like Float64, but panics if an error occurs.
func (*ClassificationAnalyticsSelect) Float64s ¶ added in v1.12.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsSelect) Float64sX ¶ added in v1.12.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ClassificationAnalyticsSelect) Int ¶ added in v1.12.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsSelect) IntX ¶ added in v1.12.0
IntX is like Int, but panics if an error occurs.
func (*ClassificationAnalyticsSelect) Ints ¶ added in v1.12.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsSelect) IntsX ¶ added in v1.12.0
IntsX is like Ints, but panics if an error occurs.
func (*ClassificationAnalyticsSelect) Scan ¶ added in v1.12.0
func (_s *ClassificationAnalyticsSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ClassificationAnalyticsSelect) ScanX ¶ added in v1.12.0
ScanX is like Scan, but panics if an error occurs.
func (*ClassificationAnalyticsSelect) String ¶ added in v1.12.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ClassificationAnalyticsSelect) StringX ¶ added in v1.12.0
StringX is like String, but panics if an error occurs.
type ClassificationAnalyticsSlice ¶ added in v1.12.0
type ClassificationAnalyticsSlice []*ClassificationAnalytics
ClassificationAnalyticsSlice is a parsable slice of ClassificationAnalytics.
type ClassificationAnalyticsUpdate ¶ added in v1.12.0
type ClassificationAnalyticsUpdate struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsUpdate is the builder for updating ClassificationAnalytics entities.
func (*ClassificationAnalyticsUpdate) AddDurationMs ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) AddDurationMs(v int64) *ClassificationAnalyticsUpdate
AddDurationMs adds value to the "duration_ms" field.
func (*ClassificationAnalyticsUpdate) AppendPythonImports ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) AppendPythonImports(v []string) *ClassificationAnalyticsUpdate
AppendPythonImports appends value to the "python_imports" field.
func (*ClassificationAnalyticsUpdate) ClearAlternative ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearAlternative() *ClassificationAnalyticsUpdate
ClearAlternative clears the value of the "alternative" field.
func (*ClassificationAnalyticsUpdate) ClearApprovalID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearApprovalID() *ClassificationAnalyticsUpdate
ClearApprovalID clears the value of the "approval_id" field.
func (*ClassificationAnalyticsUpdate) ClearCommandCategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearCommandCategory() *ClassificationAnalyticsUpdate
ClearCommandCategory clears the value of the "command_category" field.
func (*ClassificationAnalyticsUpdate) ClearCommandPreview ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearCommandPreview() *ClassificationAnalyticsUpdate
ClearCommandPreview clears the value of the "command_preview" field.
func (*ClassificationAnalyticsUpdate) ClearCommandProgram ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearCommandProgram() *ClassificationAnalyticsUpdate
ClearCommandProgram clears the value of the "command_program" field.
func (*ClassificationAnalyticsUpdate) ClearCommandSubcategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearCommandSubcategory() *ClassificationAnalyticsUpdate
ClearCommandSubcategory clears the value of the "command_subcategory" field.
func (*ClassificationAnalyticsUpdate) ClearCwd ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearCwd() *ClassificationAnalyticsUpdate
ClearCwd clears the value of the "cwd" field.
func (*ClassificationAnalyticsUpdate) ClearPythonImports ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearPythonImports() *ClassificationAnalyticsUpdate
ClearPythonImports clears the value of the "python_imports" field.
func (*ClassificationAnalyticsUpdate) ClearReason ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearReason() *ClassificationAnalyticsUpdate
ClearReason clears the value of the "reason" field.
func (*ClassificationAnalyticsUpdate) ClearRuleID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearRuleID() *ClassificationAnalyticsUpdate
ClearRuleID clears the value of the "rule_id" field.
func (*ClassificationAnalyticsUpdate) ClearRuleName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearRuleName() *ClassificationAnalyticsUpdate
ClearRuleName clears the value of the "rule_name" field.
func (*ClassificationAnalyticsUpdate) ClearSessionID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ClearSessionID() *ClassificationAnalyticsUpdate
ClearSessionID clears the value of the "session_id" field.
func (*ClassificationAnalyticsUpdate) Exec ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClassificationAnalyticsUpdate) ExecX ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClassificationAnalyticsUpdate) Mutation ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) Mutation() *ClassificationAnalyticsMutation
Mutation returns the ClassificationAnalyticsMutation object of the builder.
func (*ClassificationAnalyticsUpdate) Save ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ClassificationAnalyticsUpdate) SaveX ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ClassificationAnalyticsUpdate) SetAlternative ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetAlternative(v string) *ClassificationAnalyticsUpdate
SetAlternative sets the "alternative" field.
func (*ClassificationAnalyticsUpdate) SetAnalyticsID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetAnalyticsID(v string) *ClassificationAnalyticsUpdate
SetAnalyticsID sets the "analytics_id" field.
func (*ClassificationAnalyticsUpdate) SetApprovalID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetApprovalID(v string) *ClassificationAnalyticsUpdate
SetApprovalID sets the "approval_id" field.
func (*ClassificationAnalyticsUpdate) SetCommandCategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetCommandCategory(v string) *ClassificationAnalyticsUpdate
SetCommandCategory sets the "command_category" field.
func (*ClassificationAnalyticsUpdate) SetCommandPreview ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetCommandPreview(v string) *ClassificationAnalyticsUpdate
SetCommandPreview sets the "command_preview" field.
func (*ClassificationAnalyticsUpdate) SetCommandProgram ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetCommandProgram(v string) *ClassificationAnalyticsUpdate
SetCommandProgram sets the "command_program" field.
func (*ClassificationAnalyticsUpdate) SetCommandSubcategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetCommandSubcategory(v string) *ClassificationAnalyticsUpdate
SetCommandSubcategory sets the "command_subcategory" field.
func (*ClassificationAnalyticsUpdate) SetCwd ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetCwd(v string) *ClassificationAnalyticsUpdate
SetCwd sets the "cwd" field.
func (*ClassificationAnalyticsUpdate) SetDecision ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetDecision(v string) *ClassificationAnalyticsUpdate
SetDecision sets the "decision" field.
func (*ClassificationAnalyticsUpdate) SetDurationMs ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetDurationMs(v int64) *ClassificationAnalyticsUpdate
SetDurationMs sets the "duration_ms" field.
func (*ClassificationAnalyticsUpdate) SetNillableAlternative ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableAlternative(v *string) *ClassificationAnalyticsUpdate
SetNillableAlternative sets the "alternative" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableAnalyticsID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableAnalyticsID(v *string) *ClassificationAnalyticsUpdate
SetNillableAnalyticsID sets the "analytics_id" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableApprovalID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableApprovalID(v *string) *ClassificationAnalyticsUpdate
SetNillableApprovalID sets the "approval_id" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableCommandCategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableCommandCategory(v *string) *ClassificationAnalyticsUpdate
SetNillableCommandCategory sets the "command_category" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableCommandPreview ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableCommandPreview(v *string) *ClassificationAnalyticsUpdate
SetNillableCommandPreview sets the "command_preview" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableCommandProgram ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableCommandProgram(v *string) *ClassificationAnalyticsUpdate
SetNillableCommandProgram sets the "command_program" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableCommandSubcategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableCommandSubcategory(v *string) *ClassificationAnalyticsUpdate
SetNillableCommandSubcategory sets the "command_subcategory" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableCwd ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableCwd(v *string) *ClassificationAnalyticsUpdate
SetNillableCwd sets the "cwd" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableDecision ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableDecision(v *string) *ClassificationAnalyticsUpdate
SetNillableDecision sets the "decision" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableDurationMs ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableDurationMs(v *int64) *ClassificationAnalyticsUpdate
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableReason ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableReason(v *string) *ClassificationAnalyticsUpdate
SetNillableReason sets the "reason" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableRiskLevel ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableRiskLevel(v *string) *ClassificationAnalyticsUpdate
SetNillableRiskLevel sets the "risk_level" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableRuleID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableRuleID(v *string) *ClassificationAnalyticsUpdate
SetNillableRuleID sets the "rule_id" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableRuleName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableRuleName(v *string) *ClassificationAnalyticsUpdate
SetNillableRuleName sets the "rule_name" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableSessionID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableSessionID(v *string) *ClassificationAnalyticsUpdate
SetNillableSessionID sets the "session_id" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetNillableToolName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetNillableToolName(v *string) *ClassificationAnalyticsUpdate
SetNillableToolName sets the "tool_name" field if the given value is not nil.
func (*ClassificationAnalyticsUpdate) SetPythonImports ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetPythonImports(v []string) *ClassificationAnalyticsUpdate
SetPythonImports sets the "python_imports" field.
func (*ClassificationAnalyticsUpdate) SetReason ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetReason(v string) *ClassificationAnalyticsUpdate
SetReason sets the "reason" field.
func (*ClassificationAnalyticsUpdate) SetRiskLevel ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetRiskLevel(v string) *ClassificationAnalyticsUpdate
SetRiskLevel sets the "risk_level" field.
func (*ClassificationAnalyticsUpdate) SetRuleID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetRuleID(v string) *ClassificationAnalyticsUpdate
SetRuleID sets the "rule_id" field.
func (*ClassificationAnalyticsUpdate) SetRuleName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetRuleName(v string) *ClassificationAnalyticsUpdate
SetRuleName sets the "rule_name" field.
func (*ClassificationAnalyticsUpdate) SetSessionID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetSessionID(v string) *ClassificationAnalyticsUpdate
SetSessionID sets the "session_id" field.
func (*ClassificationAnalyticsUpdate) SetToolName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) SetToolName(v string) *ClassificationAnalyticsUpdate
SetToolName sets the "tool_name" field.
func (*ClassificationAnalyticsUpdate) Where ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdate) Where(ps ...predicate.ClassificationAnalytics) *ClassificationAnalyticsUpdate
Where appends a list predicates to the ClassificationAnalyticsUpdate builder.
type ClassificationAnalyticsUpdateOne ¶ added in v1.12.0
type ClassificationAnalyticsUpdateOne struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsUpdateOne is the builder for updating a single ClassificationAnalytics entity.
func (*ClassificationAnalyticsUpdateOne) AddDurationMs ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) AddDurationMs(v int64) *ClassificationAnalyticsUpdateOne
AddDurationMs adds value to the "duration_ms" field.
func (*ClassificationAnalyticsUpdateOne) AppendPythonImports ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) AppendPythonImports(v []string) *ClassificationAnalyticsUpdateOne
AppendPythonImports appends value to the "python_imports" field.
func (*ClassificationAnalyticsUpdateOne) ClearAlternative ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearAlternative() *ClassificationAnalyticsUpdateOne
ClearAlternative clears the value of the "alternative" field.
func (*ClassificationAnalyticsUpdateOne) ClearApprovalID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearApprovalID() *ClassificationAnalyticsUpdateOne
ClearApprovalID clears the value of the "approval_id" field.
func (*ClassificationAnalyticsUpdateOne) ClearCommandCategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearCommandCategory() *ClassificationAnalyticsUpdateOne
ClearCommandCategory clears the value of the "command_category" field.
func (*ClassificationAnalyticsUpdateOne) ClearCommandPreview ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearCommandPreview() *ClassificationAnalyticsUpdateOne
ClearCommandPreview clears the value of the "command_preview" field.
func (*ClassificationAnalyticsUpdateOne) ClearCommandProgram ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearCommandProgram() *ClassificationAnalyticsUpdateOne
ClearCommandProgram clears the value of the "command_program" field.
func (*ClassificationAnalyticsUpdateOne) ClearCommandSubcategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearCommandSubcategory() *ClassificationAnalyticsUpdateOne
ClearCommandSubcategory clears the value of the "command_subcategory" field.
func (*ClassificationAnalyticsUpdateOne) ClearCwd ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearCwd() *ClassificationAnalyticsUpdateOne
ClearCwd clears the value of the "cwd" field.
func (*ClassificationAnalyticsUpdateOne) ClearPythonImports ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearPythonImports() *ClassificationAnalyticsUpdateOne
ClearPythonImports clears the value of the "python_imports" field.
func (*ClassificationAnalyticsUpdateOne) ClearReason ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearReason() *ClassificationAnalyticsUpdateOne
ClearReason clears the value of the "reason" field.
func (*ClassificationAnalyticsUpdateOne) ClearRuleID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearRuleID() *ClassificationAnalyticsUpdateOne
ClearRuleID clears the value of the "rule_id" field.
func (*ClassificationAnalyticsUpdateOne) ClearRuleName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearRuleName() *ClassificationAnalyticsUpdateOne
ClearRuleName clears the value of the "rule_name" field.
func (*ClassificationAnalyticsUpdateOne) ClearSessionID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ClearSessionID() *ClassificationAnalyticsUpdateOne
ClearSessionID clears the value of the "session_id" field.
func (*ClassificationAnalyticsUpdateOne) Exec ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ClassificationAnalyticsUpdateOne) ExecX ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClassificationAnalyticsUpdateOne) Mutation ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) Mutation() *ClassificationAnalyticsMutation
Mutation returns the ClassificationAnalyticsMutation object of the builder.
func (*ClassificationAnalyticsUpdateOne) Save ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) Save(ctx context.Context) (*ClassificationAnalytics, error)
Save executes the query and returns the updated ClassificationAnalytics entity.
func (*ClassificationAnalyticsUpdateOne) SaveX ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SaveX(ctx context.Context) *ClassificationAnalytics
SaveX is like Save, but panics if an error occurs.
func (*ClassificationAnalyticsUpdateOne) Select ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) Select(field string, fields ...string) *ClassificationAnalyticsUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ClassificationAnalyticsUpdateOne) SetAlternative ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetAlternative(v string) *ClassificationAnalyticsUpdateOne
SetAlternative sets the "alternative" field.
func (*ClassificationAnalyticsUpdateOne) SetAnalyticsID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetAnalyticsID(v string) *ClassificationAnalyticsUpdateOne
SetAnalyticsID sets the "analytics_id" field.
func (*ClassificationAnalyticsUpdateOne) SetApprovalID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetApprovalID(v string) *ClassificationAnalyticsUpdateOne
SetApprovalID sets the "approval_id" field.
func (*ClassificationAnalyticsUpdateOne) SetCommandCategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetCommandCategory(v string) *ClassificationAnalyticsUpdateOne
SetCommandCategory sets the "command_category" field.
func (*ClassificationAnalyticsUpdateOne) SetCommandPreview ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetCommandPreview(v string) *ClassificationAnalyticsUpdateOne
SetCommandPreview sets the "command_preview" field.
func (*ClassificationAnalyticsUpdateOne) SetCommandProgram ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetCommandProgram(v string) *ClassificationAnalyticsUpdateOne
SetCommandProgram sets the "command_program" field.
func (*ClassificationAnalyticsUpdateOne) SetCommandSubcategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetCommandSubcategory(v string) *ClassificationAnalyticsUpdateOne
SetCommandSubcategory sets the "command_subcategory" field.
func (*ClassificationAnalyticsUpdateOne) SetCwd ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetCwd(v string) *ClassificationAnalyticsUpdateOne
SetCwd sets the "cwd" field.
func (*ClassificationAnalyticsUpdateOne) SetDecision ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetDecision(v string) *ClassificationAnalyticsUpdateOne
SetDecision sets the "decision" field.
func (*ClassificationAnalyticsUpdateOne) SetDurationMs ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetDurationMs(v int64) *ClassificationAnalyticsUpdateOne
SetDurationMs sets the "duration_ms" field.
func (*ClassificationAnalyticsUpdateOne) SetNillableAlternative ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableAlternative(v *string) *ClassificationAnalyticsUpdateOne
SetNillableAlternative sets the "alternative" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableAnalyticsID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableAnalyticsID(v *string) *ClassificationAnalyticsUpdateOne
SetNillableAnalyticsID sets the "analytics_id" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableApprovalID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableApprovalID(v *string) *ClassificationAnalyticsUpdateOne
SetNillableApprovalID sets the "approval_id" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableCommandCategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableCommandCategory(v *string) *ClassificationAnalyticsUpdateOne
SetNillableCommandCategory sets the "command_category" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableCommandPreview ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableCommandPreview(v *string) *ClassificationAnalyticsUpdateOne
SetNillableCommandPreview sets the "command_preview" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableCommandProgram ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableCommandProgram(v *string) *ClassificationAnalyticsUpdateOne
SetNillableCommandProgram sets the "command_program" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableCommandSubcategory ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableCommandSubcategory(v *string) *ClassificationAnalyticsUpdateOne
SetNillableCommandSubcategory sets the "command_subcategory" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableCwd ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableCwd(v *string) *ClassificationAnalyticsUpdateOne
SetNillableCwd sets the "cwd" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableDecision ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableDecision(v *string) *ClassificationAnalyticsUpdateOne
SetNillableDecision sets the "decision" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableDurationMs ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableDurationMs(v *int64) *ClassificationAnalyticsUpdateOne
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableReason ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableReason(v *string) *ClassificationAnalyticsUpdateOne
SetNillableReason sets the "reason" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableRiskLevel ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableRiskLevel(v *string) *ClassificationAnalyticsUpdateOne
SetNillableRiskLevel sets the "risk_level" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableRuleID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableRuleID(v *string) *ClassificationAnalyticsUpdateOne
SetNillableRuleID sets the "rule_id" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableRuleName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableRuleName(v *string) *ClassificationAnalyticsUpdateOne
SetNillableRuleName sets the "rule_name" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableSessionID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableSessionID(v *string) *ClassificationAnalyticsUpdateOne
SetNillableSessionID sets the "session_id" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetNillableToolName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetNillableToolName(v *string) *ClassificationAnalyticsUpdateOne
SetNillableToolName sets the "tool_name" field if the given value is not nil.
func (*ClassificationAnalyticsUpdateOne) SetPythonImports ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetPythonImports(v []string) *ClassificationAnalyticsUpdateOne
SetPythonImports sets the "python_imports" field.
func (*ClassificationAnalyticsUpdateOne) SetReason ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetReason(v string) *ClassificationAnalyticsUpdateOne
SetReason sets the "reason" field.
func (*ClassificationAnalyticsUpdateOne) SetRiskLevel ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetRiskLevel(v string) *ClassificationAnalyticsUpdateOne
SetRiskLevel sets the "risk_level" field.
func (*ClassificationAnalyticsUpdateOne) SetRuleID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetRuleID(v string) *ClassificationAnalyticsUpdateOne
SetRuleID sets the "rule_id" field.
func (*ClassificationAnalyticsUpdateOne) SetRuleName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetRuleName(v string) *ClassificationAnalyticsUpdateOne
SetRuleName sets the "rule_name" field.
func (*ClassificationAnalyticsUpdateOne) SetSessionID ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetSessionID(v string) *ClassificationAnalyticsUpdateOne
SetSessionID sets the "session_id" field.
func (*ClassificationAnalyticsUpdateOne) SetToolName ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) SetToolName(v string) *ClassificationAnalyticsUpdateOne
SetToolName sets the "tool_name" field.
func (*ClassificationAnalyticsUpdateOne) Where ¶ added in v1.12.0
func (_u *ClassificationAnalyticsUpdateOne) Where(ps ...predicate.ClassificationAnalytics) *ClassificationAnalyticsUpdateOne
Where appends a list predicates to the ClassificationAnalyticsUpdate builder.
type ClassificationAnalyticsUpsert ¶ added in v1.12.0
ClassificationAnalyticsUpsert is the "OnConflict" setter.
func (*ClassificationAnalyticsUpsert) AddDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) AddDurationMs(v int64) *ClassificationAnalyticsUpsert
AddDurationMs adds v to the "duration_ms" field.
func (*ClassificationAnalyticsUpsert) ClearAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearAlternative() *ClassificationAnalyticsUpsert
ClearAlternative clears the value of the "alternative" field.
func (*ClassificationAnalyticsUpsert) ClearApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearApprovalID() *ClassificationAnalyticsUpsert
ClearApprovalID clears the value of the "approval_id" field.
func (*ClassificationAnalyticsUpsert) ClearCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearCommandCategory() *ClassificationAnalyticsUpsert
ClearCommandCategory clears the value of the "command_category" field.
func (*ClassificationAnalyticsUpsert) ClearCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearCommandPreview() *ClassificationAnalyticsUpsert
ClearCommandPreview clears the value of the "command_preview" field.
func (*ClassificationAnalyticsUpsert) ClearCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearCommandProgram() *ClassificationAnalyticsUpsert
ClearCommandProgram clears the value of the "command_program" field.
func (*ClassificationAnalyticsUpsert) ClearCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearCommandSubcategory() *ClassificationAnalyticsUpsert
ClearCommandSubcategory clears the value of the "command_subcategory" field.
func (*ClassificationAnalyticsUpsert) ClearCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearCwd() *ClassificationAnalyticsUpsert
ClearCwd clears the value of the "cwd" field.
func (*ClassificationAnalyticsUpsert) ClearPythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearPythonImports() *ClassificationAnalyticsUpsert
ClearPythonImports clears the value of the "python_imports" field.
func (*ClassificationAnalyticsUpsert) ClearReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearReason() *ClassificationAnalyticsUpsert
ClearReason clears the value of the "reason" field.
func (*ClassificationAnalyticsUpsert) ClearRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearRuleID() *ClassificationAnalyticsUpsert
ClearRuleID clears the value of the "rule_id" field.
func (*ClassificationAnalyticsUpsert) ClearRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearRuleName() *ClassificationAnalyticsUpsert
ClearRuleName clears the value of the "rule_name" field.
func (*ClassificationAnalyticsUpsert) ClearSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) ClearSessionID() *ClassificationAnalyticsUpsert
ClearSessionID clears the value of the "session_id" field.
func (*ClassificationAnalyticsUpsert) SetAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetAlternative(v string) *ClassificationAnalyticsUpsert
SetAlternative sets the "alternative" field.
func (*ClassificationAnalyticsUpsert) SetAnalyticsID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetAnalyticsID(v string) *ClassificationAnalyticsUpsert
SetAnalyticsID sets the "analytics_id" field.
func (*ClassificationAnalyticsUpsert) SetApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetApprovalID(v string) *ClassificationAnalyticsUpsert
SetApprovalID sets the "approval_id" field.
func (*ClassificationAnalyticsUpsert) SetCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetCommandCategory(v string) *ClassificationAnalyticsUpsert
SetCommandCategory sets the "command_category" field.
func (*ClassificationAnalyticsUpsert) SetCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetCommandPreview(v string) *ClassificationAnalyticsUpsert
SetCommandPreview sets the "command_preview" field.
func (*ClassificationAnalyticsUpsert) SetCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetCommandProgram(v string) *ClassificationAnalyticsUpsert
SetCommandProgram sets the "command_program" field.
func (*ClassificationAnalyticsUpsert) SetCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetCommandSubcategory(v string) *ClassificationAnalyticsUpsert
SetCommandSubcategory sets the "command_subcategory" field.
func (*ClassificationAnalyticsUpsert) SetCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetCwd(v string) *ClassificationAnalyticsUpsert
SetCwd sets the "cwd" field.
func (*ClassificationAnalyticsUpsert) SetDecision ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetDecision(v string) *ClassificationAnalyticsUpsert
SetDecision sets the "decision" field.
func (*ClassificationAnalyticsUpsert) SetDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetDurationMs(v int64) *ClassificationAnalyticsUpsert
SetDurationMs sets the "duration_ms" field.
func (*ClassificationAnalyticsUpsert) SetPythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetPythonImports(v []string) *ClassificationAnalyticsUpsert
SetPythonImports sets the "python_imports" field.
func (*ClassificationAnalyticsUpsert) SetReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetReason(v string) *ClassificationAnalyticsUpsert
SetReason sets the "reason" field.
func (*ClassificationAnalyticsUpsert) SetRiskLevel ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetRiskLevel(v string) *ClassificationAnalyticsUpsert
SetRiskLevel sets the "risk_level" field.
func (*ClassificationAnalyticsUpsert) SetRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetRuleID(v string) *ClassificationAnalyticsUpsert
SetRuleID sets the "rule_id" field.
func (*ClassificationAnalyticsUpsert) SetRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetRuleName(v string) *ClassificationAnalyticsUpsert
SetRuleName sets the "rule_name" field.
func (*ClassificationAnalyticsUpsert) SetSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetSessionID(v string) *ClassificationAnalyticsUpsert
SetSessionID sets the "session_id" field.
func (*ClassificationAnalyticsUpsert) SetToolName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) SetToolName(v string) *ClassificationAnalyticsUpsert
SetToolName sets the "tool_name" field.
func (*ClassificationAnalyticsUpsert) UpdateAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateAlternative() *ClassificationAnalyticsUpsert
UpdateAlternative sets the "alternative" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateAnalyticsID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateAnalyticsID() *ClassificationAnalyticsUpsert
UpdateAnalyticsID sets the "analytics_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateApprovalID() *ClassificationAnalyticsUpsert
UpdateApprovalID sets the "approval_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateCommandCategory() *ClassificationAnalyticsUpsert
UpdateCommandCategory sets the "command_category" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateCommandPreview() *ClassificationAnalyticsUpsert
UpdateCommandPreview sets the "command_preview" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateCommandProgram() *ClassificationAnalyticsUpsert
UpdateCommandProgram sets the "command_program" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateCommandSubcategory() *ClassificationAnalyticsUpsert
UpdateCommandSubcategory sets the "command_subcategory" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateCwd() *ClassificationAnalyticsUpsert
UpdateCwd sets the "cwd" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateDecision ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateDecision() *ClassificationAnalyticsUpsert
UpdateDecision sets the "decision" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateDurationMs() *ClassificationAnalyticsUpsert
UpdateDurationMs sets the "duration_ms" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdatePythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdatePythonImports() *ClassificationAnalyticsUpsert
UpdatePythonImports sets the "python_imports" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateReason() *ClassificationAnalyticsUpsert
UpdateReason sets the "reason" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateRiskLevel ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateRiskLevel() *ClassificationAnalyticsUpsert
UpdateRiskLevel sets the "risk_level" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateRuleID() *ClassificationAnalyticsUpsert
UpdateRuleID sets the "rule_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateRuleName() *ClassificationAnalyticsUpsert
UpdateRuleName sets the "rule_name" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateSessionID() *ClassificationAnalyticsUpsert
UpdateSessionID sets the "session_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsert) UpdateToolName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsert) UpdateToolName() *ClassificationAnalyticsUpsert
UpdateToolName sets the "tool_name" field to the value that was provided on create.
type ClassificationAnalyticsUpsertBulk ¶ added in v1.12.0
type ClassificationAnalyticsUpsertBulk struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsUpsertBulk is the builder for "upsert"-ing a bulk of ClassificationAnalytics nodes.
func (*ClassificationAnalyticsUpsertBulk) AddDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) AddDurationMs(v int64) *ClassificationAnalyticsUpsertBulk
AddDurationMs adds v to the "duration_ms" field.
func (*ClassificationAnalyticsUpsertBulk) ClearAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearAlternative() *ClassificationAnalyticsUpsertBulk
ClearAlternative clears the value of the "alternative" field.
func (*ClassificationAnalyticsUpsertBulk) ClearApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearApprovalID() *ClassificationAnalyticsUpsertBulk
ClearApprovalID clears the value of the "approval_id" field.
func (*ClassificationAnalyticsUpsertBulk) ClearCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearCommandCategory() *ClassificationAnalyticsUpsertBulk
ClearCommandCategory clears the value of the "command_category" field.
func (*ClassificationAnalyticsUpsertBulk) ClearCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearCommandPreview() *ClassificationAnalyticsUpsertBulk
ClearCommandPreview clears the value of the "command_preview" field.
func (*ClassificationAnalyticsUpsertBulk) ClearCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearCommandProgram() *ClassificationAnalyticsUpsertBulk
ClearCommandProgram clears the value of the "command_program" field.
func (*ClassificationAnalyticsUpsertBulk) ClearCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearCommandSubcategory() *ClassificationAnalyticsUpsertBulk
ClearCommandSubcategory clears the value of the "command_subcategory" field.
func (*ClassificationAnalyticsUpsertBulk) ClearCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearCwd() *ClassificationAnalyticsUpsertBulk
ClearCwd clears the value of the "cwd" field.
func (*ClassificationAnalyticsUpsertBulk) ClearPythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearPythonImports() *ClassificationAnalyticsUpsertBulk
ClearPythonImports clears the value of the "python_imports" field.
func (*ClassificationAnalyticsUpsertBulk) ClearReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearReason() *ClassificationAnalyticsUpsertBulk
ClearReason clears the value of the "reason" field.
func (*ClassificationAnalyticsUpsertBulk) ClearRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearRuleID() *ClassificationAnalyticsUpsertBulk
ClearRuleID clears the value of the "rule_id" field.
func (*ClassificationAnalyticsUpsertBulk) ClearRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearRuleName() *ClassificationAnalyticsUpsertBulk
ClearRuleName clears the value of the "rule_name" field.
func (*ClassificationAnalyticsUpsertBulk) ClearSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ClearSessionID() *ClassificationAnalyticsUpsertBulk
ClearSessionID clears the value of the "session_id" field.
func (*ClassificationAnalyticsUpsertBulk) DoNothing ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) DoNothing() *ClassificationAnalyticsUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ClassificationAnalyticsUpsertBulk) Exec ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ClassificationAnalyticsUpsertBulk) ExecX ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClassificationAnalyticsUpsertBulk) Ignore ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) Ignore() *ClassificationAnalyticsUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ClassificationAnalytics.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ClassificationAnalyticsUpsertBulk) SetAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetAlternative(v string) *ClassificationAnalyticsUpsertBulk
SetAlternative sets the "alternative" field.
func (*ClassificationAnalyticsUpsertBulk) SetAnalyticsID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetAnalyticsID(v string) *ClassificationAnalyticsUpsertBulk
SetAnalyticsID sets the "analytics_id" field.
func (*ClassificationAnalyticsUpsertBulk) SetApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetApprovalID(v string) *ClassificationAnalyticsUpsertBulk
SetApprovalID sets the "approval_id" field.
func (*ClassificationAnalyticsUpsertBulk) SetCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetCommandCategory(v string) *ClassificationAnalyticsUpsertBulk
SetCommandCategory sets the "command_category" field.
func (*ClassificationAnalyticsUpsertBulk) SetCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetCommandPreview(v string) *ClassificationAnalyticsUpsertBulk
SetCommandPreview sets the "command_preview" field.
func (*ClassificationAnalyticsUpsertBulk) SetCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetCommandProgram(v string) *ClassificationAnalyticsUpsertBulk
SetCommandProgram sets the "command_program" field.
func (*ClassificationAnalyticsUpsertBulk) SetCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetCommandSubcategory(v string) *ClassificationAnalyticsUpsertBulk
SetCommandSubcategory sets the "command_subcategory" field.
func (*ClassificationAnalyticsUpsertBulk) SetCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetCwd(v string) *ClassificationAnalyticsUpsertBulk
SetCwd sets the "cwd" field.
func (*ClassificationAnalyticsUpsertBulk) SetDecision ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetDecision(v string) *ClassificationAnalyticsUpsertBulk
SetDecision sets the "decision" field.
func (*ClassificationAnalyticsUpsertBulk) SetDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetDurationMs(v int64) *ClassificationAnalyticsUpsertBulk
SetDurationMs sets the "duration_ms" field.
func (*ClassificationAnalyticsUpsertBulk) SetPythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetPythonImports(v []string) *ClassificationAnalyticsUpsertBulk
SetPythonImports sets the "python_imports" field.
func (*ClassificationAnalyticsUpsertBulk) SetReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetReason(v string) *ClassificationAnalyticsUpsertBulk
SetReason sets the "reason" field.
func (*ClassificationAnalyticsUpsertBulk) SetRiskLevel ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetRiskLevel(v string) *ClassificationAnalyticsUpsertBulk
SetRiskLevel sets the "risk_level" field.
func (*ClassificationAnalyticsUpsertBulk) SetRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetRuleID(v string) *ClassificationAnalyticsUpsertBulk
SetRuleID sets the "rule_id" field.
func (*ClassificationAnalyticsUpsertBulk) SetRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetRuleName(v string) *ClassificationAnalyticsUpsertBulk
SetRuleName sets the "rule_name" field.
func (*ClassificationAnalyticsUpsertBulk) SetSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetSessionID(v string) *ClassificationAnalyticsUpsertBulk
SetSessionID sets the "session_id" field.
func (*ClassificationAnalyticsUpsertBulk) SetToolName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) SetToolName(v string) *ClassificationAnalyticsUpsertBulk
SetToolName sets the "tool_name" field.
func (*ClassificationAnalyticsUpsertBulk) Update ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) Update(set func(*ClassificationAnalyticsUpsert)) *ClassificationAnalyticsUpsertBulk
Update allows overriding fields `UPDATE` values. See the ClassificationAnalyticsCreateBulk.OnConflict documentation for more info.
func (*ClassificationAnalyticsUpsertBulk) UpdateAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateAlternative() *ClassificationAnalyticsUpsertBulk
UpdateAlternative sets the "alternative" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateAnalyticsID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateAnalyticsID() *ClassificationAnalyticsUpsertBulk
UpdateAnalyticsID sets the "analytics_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateApprovalID() *ClassificationAnalyticsUpsertBulk
UpdateApprovalID sets the "approval_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateCommandCategory() *ClassificationAnalyticsUpsertBulk
UpdateCommandCategory sets the "command_category" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateCommandPreview() *ClassificationAnalyticsUpsertBulk
UpdateCommandPreview sets the "command_preview" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateCommandProgram() *ClassificationAnalyticsUpsertBulk
UpdateCommandProgram sets the "command_program" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateCommandSubcategory() *ClassificationAnalyticsUpsertBulk
UpdateCommandSubcategory sets the "command_subcategory" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateCwd() *ClassificationAnalyticsUpsertBulk
UpdateCwd sets the "cwd" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateDecision ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateDecision() *ClassificationAnalyticsUpsertBulk
UpdateDecision sets the "decision" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateDurationMs() *ClassificationAnalyticsUpsertBulk
UpdateDurationMs sets the "duration_ms" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateNewValues ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateNewValues() *ClassificationAnalyticsUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ClassificationAnalytics.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ClassificationAnalyticsUpsertBulk) UpdatePythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdatePythonImports() *ClassificationAnalyticsUpsertBulk
UpdatePythonImports sets the "python_imports" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateReason() *ClassificationAnalyticsUpsertBulk
UpdateReason sets the "reason" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateRiskLevel ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateRiskLevel() *ClassificationAnalyticsUpsertBulk
UpdateRiskLevel sets the "risk_level" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateRuleID() *ClassificationAnalyticsUpsertBulk
UpdateRuleID sets the "rule_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateRuleName() *ClassificationAnalyticsUpsertBulk
UpdateRuleName sets the "rule_name" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateSessionID() *ClassificationAnalyticsUpsertBulk
UpdateSessionID sets the "session_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertBulk) UpdateToolName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertBulk) UpdateToolName() *ClassificationAnalyticsUpsertBulk
UpdateToolName sets the "tool_name" field to the value that was provided on create.
type ClassificationAnalyticsUpsertOne ¶ added in v1.12.0
type ClassificationAnalyticsUpsertOne struct {
// contains filtered or unexported fields
}
ClassificationAnalyticsUpsertOne is the builder for "upsert"-ing
one ClassificationAnalytics node.
func (*ClassificationAnalyticsUpsertOne) AddDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) AddDurationMs(v int64) *ClassificationAnalyticsUpsertOne
AddDurationMs adds v to the "duration_ms" field.
func (*ClassificationAnalyticsUpsertOne) ClearAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearAlternative() *ClassificationAnalyticsUpsertOne
ClearAlternative clears the value of the "alternative" field.
func (*ClassificationAnalyticsUpsertOne) ClearApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearApprovalID() *ClassificationAnalyticsUpsertOne
ClearApprovalID clears the value of the "approval_id" field.
func (*ClassificationAnalyticsUpsertOne) ClearCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearCommandCategory() *ClassificationAnalyticsUpsertOne
ClearCommandCategory clears the value of the "command_category" field.
func (*ClassificationAnalyticsUpsertOne) ClearCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearCommandPreview() *ClassificationAnalyticsUpsertOne
ClearCommandPreview clears the value of the "command_preview" field.
func (*ClassificationAnalyticsUpsertOne) ClearCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearCommandProgram() *ClassificationAnalyticsUpsertOne
ClearCommandProgram clears the value of the "command_program" field.
func (*ClassificationAnalyticsUpsertOne) ClearCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearCommandSubcategory() *ClassificationAnalyticsUpsertOne
ClearCommandSubcategory clears the value of the "command_subcategory" field.
func (*ClassificationAnalyticsUpsertOne) ClearCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearCwd() *ClassificationAnalyticsUpsertOne
ClearCwd clears the value of the "cwd" field.
func (*ClassificationAnalyticsUpsertOne) ClearPythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearPythonImports() *ClassificationAnalyticsUpsertOne
ClearPythonImports clears the value of the "python_imports" field.
func (*ClassificationAnalyticsUpsertOne) ClearReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearReason() *ClassificationAnalyticsUpsertOne
ClearReason clears the value of the "reason" field.
func (*ClassificationAnalyticsUpsertOne) ClearRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearRuleID() *ClassificationAnalyticsUpsertOne
ClearRuleID clears the value of the "rule_id" field.
func (*ClassificationAnalyticsUpsertOne) ClearRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearRuleName() *ClassificationAnalyticsUpsertOne
ClearRuleName clears the value of the "rule_name" field.
func (*ClassificationAnalyticsUpsertOne) ClearSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ClearSessionID() *ClassificationAnalyticsUpsertOne
ClearSessionID clears the value of the "session_id" field.
func (*ClassificationAnalyticsUpsertOne) DoNothing ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) DoNothing() *ClassificationAnalyticsUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ClassificationAnalyticsUpsertOne) Exec ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ClassificationAnalyticsUpsertOne) ExecX ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClassificationAnalyticsUpsertOne) ID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ClassificationAnalyticsUpsertOne) IDX ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ClassificationAnalyticsUpsertOne) Ignore ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) Ignore() *ClassificationAnalyticsUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ClassificationAnalytics.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*ClassificationAnalyticsUpsertOne) SetAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetAlternative(v string) *ClassificationAnalyticsUpsertOne
SetAlternative sets the "alternative" field.
func (*ClassificationAnalyticsUpsertOne) SetAnalyticsID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetAnalyticsID(v string) *ClassificationAnalyticsUpsertOne
SetAnalyticsID sets the "analytics_id" field.
func (*ClassificationAnalyticsUpsertOne) SetApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetApprovalID(v string) *ClassificationAnalyticsUpsertOne
SetApprovalID sets the "approval_id" field.
func (*ClassificationAnalyticsUpsertOne) SetCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetCommandCategory(v string) *ClassificationAnalyticsUpsertOne
SetCommandCategory sets the "command_category" field.
func (*ClassificationAnalyticsUpsertOne) SetCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetCommandPreview(v string) *ClassificationAnalyticsUpsertOne
SetCommandPreview sets the "command_preview" field.
func (*ClassificationAnalyticsUpsertOne) SetCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetCommandProgram(v string) *ClassificationAnalyticsUpsertOne
SetCommandProgram sets the "command_program" field.
func (*ClassificationAnalyticsUpsertOne) SetCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetCommandSubcategory(v string) *ClassificationAnalyticsUpsertOne
SetCommandSubcategory sets the "command_subcategory" field.
func (*ClassificationAnalyticsUpsertOne) SetCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetCwd(v string) *ClassificationAnalyticsUpsertOne
SetCwd sets the "cwd" field.
func (*ClassificationAnalyticsUpsertOne) SetDecision ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetDecision(v string) *ClassificationAnalyticsUpsertOne
SetDecision sets the "decision" field.
func (*ClassificationAnalyticsUpsertOne) SetDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetDurationMs(v int64) *ClassificationAnalyticsUpsertOne
SetDurationMs sets the "duration_ms" field.
func (*ClassificationAnalyticsUpsertOne) SetPythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetPythonImports(v []string) *ClassificationAnalyticsUpsertOne
SetPythonImports sets the "python_imports" field.
func (*ClassificationAnalyticsUpsertOne) SetReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetReason(v string) *ClassificationAnalyticsUpsertOne
SetReason sets the "reason" field.
func (*ClassificationAnalyticsUpsertOne) SetRiskLevel ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetRiskLevel(v string) *ClassificationAnalyticsUpsertOne
SetRiskLevel sets the "risk_level" field.
func (*ClassificationAnalyticsUpsertOne) SetRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetRuleID(v string) *ClassificationAnalyticsUpsertOne
SetRuleID sets the "rule_id" field.
func (*ClassificationAnalyticsUpsertOne) SetRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetRuleName(v string) *ClassificationAnalyticsUpsertOne
SetRuleName sets the "rule_name" field.
func (*ClassificationAnalyticsUpsertOne) SetSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetSessionID(v string) *ClassificationAnalyticsUpsertOne
SetSessionID sets the "session_id" field.
func (*ClassificationAnalyticsUpsertOne) SetToolName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) SetToolName(v string) *ClassificationAnalyticsUpsertOne
SetToolName sets the "tool_name" field.
func (*ClassificationAnalyticsUpsertOne) Update ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) Update(set func(*ClassificationAnalyticsUpsert)) *ClassificationAnalyticsUpsertOne
Update allows overriding fields `UPDATE` values. See the ClassificationAnalyticsCreate.OnConflict documentation for more info.
func (*ClassificationAnalyticsUpsertOne) UpdateAlternative ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateAlternative() *ClassificationAnalyticsUpsertOne
UpdateAlternative sets the "alternative" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateAnalyticsID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateAnalyticsID() *ClassificationAnalyticsUpsertOne
UpdateAnalyticsID sets the "analytics_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateApprovalID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateApprovalID() *ClassificationAnalyticsUpsertOne
UpdateApprovalID sets the "approval_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateCommandCategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateCommandCategory() *ClassificationAnalyticsUpsertOne
UpdateCommandCategory sets the "command_category" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateCommandPreview ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateCommandPreview() *ClassificationAnalyticsUpsertOne
UpdateCommandPreview sets the "command_preview" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateCommandProgram ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateCommandProgram() *ClassificationAnalyticsUpsertOne
UpdateCommandProgram sets the "command_program" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateCommandSubcategory ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateCommandSubcategory() *ClassificationAnalyticsUpsertOne
UpdateCommandSubcategory sets the "command_subcategory" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateCwd ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateCwd() *ClassificationAnalyticsUpsertOne
UpdateCwd sets the "cwd" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateDecision ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateDecision() *ClassificationAnalyticsUpsertOne
UpdateDecision sets the "decision" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateDurationMs ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateDurationMs() *ClassificationAnalyticsUpsertOne
UpdateDurationMs sets the "duration_ms" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateNewValues ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateNewValues() *ClassificationAnalyticsUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ClassificationAnalytics.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ClassificationAnalyticsUpsertOne) UpdatePythonImports ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdatePythonImports() *ClassificationAnalyticsUpsertOne
UpdatePythonImports sets the "python_imports" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateReason ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateReason() *ClassificationAnalyticsUpsertOne
UpdateReason sets the "reason" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateRiskLevel ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateRiskLevel() *ClassificationAnalyticsUpsertOne
UpdateRiskLevel sets the "risk_level" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateRuleID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateRuleID() *ClassificationAnalyticsUpsertOne
UpdateRuleID sets the "rule_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateRuleName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateRuleName() *ClassificationAnalyticsUpsertOne
UpdateRuleName sets the "rule_name" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateSessionID ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateSessionID() *ClassificationAnalyticsUpsertOne
UpdateSessionID sets the "session_id" field to the value that was provided on create.
func (*ClassificationAnalyticsUpsertOne) UpdateToolName ¶ added in v1.12.0
func (u *ClassificationAnalyticsUpsertOne) UpdateToolName() *ClassificationAnalyticsUpsertOne
UpdateToolName sets the "tool_name" field to the value that was provided on create.
type ClaudeMetadata ¶
type ClaudeMetadata struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// Key holds the value of the "key" field.
Key string `json:"key,omitempty"`
// Value holds the value of the "value" field.
Value string `json:"value,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the ClaudeMetadataQuery when eager-loading is set.
Edges ClaudeMetadataEdges `json:"edges"`
// contains filtered or unexported fields
}
ClaudeMetadata is the model entity for the ClaudeMetadata schema.
func (*ClaudeMetadata) GetValue ¶
func (_m *ClaudeMetadata) GetValue(name string) (ent.Value, error)
GetValue returns the ent.Value that was dynamically selected and assigned to the ClaudeMetadata. This includes values selected through modifiers, order, etc.
func (*ClaudeMetadata) QueryClaudeSession ¶
func (_m *ClaudeMetadata) QueryClaudeSession() *ClaudeSessionQuery
QueryClaudeSession queries the "claude_session" edge of the ClaudeMetadata entity.
func (*ClaudeMetadata) String ¶
func (_m *ClaudeMetadata) String() string
String implements the fmt.Stringer.
func (*ClaudeMetadata) Unwrap ¶
func (_m *ClaudeMetadata) Unwrap() *ClaudeMetadata
Unwrap unwraps the ClaudeMetadata 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 (*ClaudeMetadata) Update ¶
func (_m *ClaudeMetadata) Update() *ClaudeMetadataUpdateOne
Update returns a builder for updating this ClaudeMetadata. Note that you need to call ClaudeMetadata.Unwrap() before calling this method if this ClaudeMetadata was returned from a transaction, and the transaction was committed or rolled back.
type ClaudeMetadataClient ¶
type ClaudeMetadataClient struct {
// contains filtered or unexported fields
}
ClaudeMetadataClient is a client for the ClaudeMetadata schema.
func NewClaudeMetadataClient ¶
func NewClaudeMetadataClient(c config) *ClaudeMetadataClient
NewClaudeMetadataClient returns a client for the ClaudeMetadata from the given config.
func (*ClaudeMetadataClient) Create ¶
func (c *ClaudeMetadataClient) Create() *ClaudeMetadataCreate
Create returns a builder for creating a ClaudeMetadata entity.
func (*ClaudeMetadataClient) CreateBulk ¶
func (c *ClaudeMetadataClient) CreateBulk(builders ...*ClaudeMetadataCreate) *ClaudeMetadataCreateBulk
CreateBulk returns a builder for creating a bulk of ClaudeMetadata entities.
func (*ClaudeMetadataClient) Delete ¶
func (c *ClaudeMetadataClient) Delete() *ClaudeMetadataDelete
Delete returns a delete builder for ClaudeMetadata.
func (*ClaudeMetadataClient) DeleteOne ¶
func (c *ClaudeMetadataClient) DeleteOne(_m *ClaudeMetadata) *ClaudeMetadataDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ClaudeMetadataClient) DeleteOneID ¶
func (c *ClaudeMetadataClient) DeleteOneID(id int) *ClaudeMetadataDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ClaudeMetadataClient) Get ¶
func (c *ClaudeMetadataClient) Get(ctx context.Context, id int) (*ClaudeMetadata, error)
Get returns a ClaudeMetadata entity by its id.
func (*ClaudeMetadataClient) GetX ¶
func (c *ClaudeMetadataClient) GetX(ctx context.Context, id int) *ClaudeMetadata
GetX is like Get, but panics if an error occurs.
func (*ClaudeMetadataClient) Hooks ¶
func (c *ClaudeMetadataClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ClaudeMetadataClient) Intercept ¶
func (c *ClaudeMetadataClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `claudemetadata.Intercept(f(g(h())))`.
func (*ClaudeMetadataClient) Interceptors ¶
func (c *ClaudeMetadataClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ClaudeMetadataClient) MapCreateBulk ¶
func (c *ClaudeMetadataClient) MapCreateBulk(slice any, setFunc func(*ClaudeMetadataCreate, int)) *ClaudeMetadataCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*ClaudeMetadataClient) Query ¶
func (c *ClaudeMetadataClient) Query() *ClaudeMetadataQuery
Query returns a query builder for ClaudeMetadata.
func (*ClaudeMetadataClient) QueryClaudeSession ¶
func (c *ClaudeMetadataClient) QueryClaudeSession(_m *ClaudeMetadata) *ClaudeSessionQuery
QueryClaudeSession queries the claude_session edge of a ClaudeMetadata.
func (*ClaudeMetadataClient) Update ¶
func (c *ClaudeMetadataClient) Update() *ClaudeMetadataUpdate
Update returns an update builder for ClaudeMetadata.
func (*ClaudeMetadataClient) UpdateOne ¶
func (c *ClaudeMetadataClient) UpdateOne(_m *ClaudeMetadata) *ClaudeMetadataUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ClaudeMetadataClient) UpdateOneID ¶
func (c *ClaudeMetadataClient) UpdateOneID(id int) *ClaudeMetadataUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ClaudeMetadataClient) Use ¶
func (c *ClaudeMetadataClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `claudemetadata.Hooks(f(g(h())))`.
type ClaudeMetadataCreate ¶
type ClaudeMetadataCreate struct {
// contains filtered or unexported fields
}
ClaudeMetadataCreate is the builder for creating a ClaudeMetadata entity.
func (*ClaudeMetadataCreate) Exec ¶
func (_c *ClaudeMetadataCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeMetadataCreate) ExecX ¶
func (_c *ClaudeMetadataCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeMetadataCreate) Mutation ¶
func (_c *ClaudeMetadataCreate) Mutation() *ClaudeMetadataMutation
Mutation returns the ClaudeMetadataMutation object of the builder.
func (*ClaudeMetadataCreate) OnConflict ¶ added in v1.12.0
func (_c *ClaudeMetadataCreate) OnConflict(opts ...sql.ConflictOption) *ClaudeMetadataUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ClaudeMetadata.Create().
SetKey(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.ClaudeMetadataUpsert) {
SetKey(v+v).
}).
Exec(ctx)
func (*ClaudeMetadataCreate) OnConflictColumns ¶ added in v1.12.0
func (_c *ClaudeMetadataCreate) OnConflictColumns(columns ...string) *ClaudeMetadataUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ClaudeMetadata.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ClaudeMetadataCreate) Save ¶
func (_c *ClaudeMetadataCreate) Save(ctx context.Context) (*ClaudeMetadata, error)
Save creates the ClaudeMetadata in the database.
func (*ClaudeMetadataCreate) SaveX ¶
func (_c *ClaudeMetadataCreate) SaveX(ctx context.Context) *ClaudeMetadata
SaveX calls Save and panics if Save returns an error.
func (*ClaudeMetadataCreate) SetClaudeSession ¶
func (_c *ClaudeMetadataCreate) SetClaudeSession(v *ClaudeSession) *ClaudeMetadataCreate
SetClaudeSession sets the "claude_session" edge to the ClaudeSession entity.
func (*ClaudeMetadataCreate) SetClaudeSessionID ¶
func (_c *ClaudeMetadataCreate) SetClaudeSessionID(id int) *ClaudeMetadataCreate
SetClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID.
func (*ClaudeMetadataCreate) SetKey ¶
func (_c *ClaudeMetadataCreate) SetKey(v string) *ClaudeMetadataCreate
SetKey sets the "key" field.
func (*ClaudeMetadataCreate) SetValue ¶
func (_c *ClaudeMetadataCreate) SetValue(v string) *ClaudeMetadataCreate
SetValue sets the "value" field.
type ClaudeMetadataCreateBulk ¶
type ClaudeMetadataCreateBulk struct {
// contains filtered or unexported fields
}
ClaudeMetadataCreateBulk is the builder for creating many ClaudeMetadata entities in bulk.
func (*ClaudeMetadataCreateBulk) Exec ¶
func (_c *ClaudeMetadataCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeMetadataCreateBulk) ExecX ¶
func (_c *ClaudeMetadataCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeMetadataCreateBulk) OnConflict ¶ added in v1.12.0
func (_c *ClaudeMetadataCreateBulk) OnConflict(opts ...sql.ConflictOption) *ClaudeMetadataUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ClaudeMetadata.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.ClaudeMetadataUpsert) {
SetKey(v+v).
}).
Exec(ctx)
func (*ClaudeMetadataCreateBulk) OnConflictColumns ¶ added in v1.12.0
func (_c *ClaudeMetadataCreateBulk) OnConflictColumns(columns ...string) *ClaudeMetadataUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ClaudeMetadata.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ClaudeMetadataCreateBulk) Save ¶
func (_c *ClaudeMetadataCreateBulk) Save(ctx context.Context) ([]*ClaudeMetadata, error)
Save creates the ClaudeMetadata entities in the database.
func (*ClaudeMetadataCreateBulk) SaveX ¶
func (_c *ClaudeMetadataCreateBulk) SaveX(ctx context.Context) []*ClaudeMetadata
SaveX is like Save, but panics if an error occurs.
type ClaudeMetadataDelete ¶
type ClaudeMetadataDelete struct {
// contains filtered or unexported fields
}
ClaudeMetadataDelete is the builder for deleting a ClaudeMetadata entity.
func (*ClaudeMetadataDelete) Exec ¶
func (_d *ClaudeMetadataDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ClaudeMetadataDelete) ExecX ¶
func (_d *ClaudeMetadataDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeMetadataDelete) Where ¶
func (_d *ClaudeMetadataDelete) Where(ps ...predicate.ClaudeMetadata) *ClaudeMetadataDelete
Where appends a list predicates to the ClaudeMetadataDelete builder.
type ClaudeMetadataDeleteOne ¶
type ClaudeMetadataDeleteOne struct {
// contains filtered or unexported fields
}
ClaudeMetadataDeleteOne is the builder for deleting a single ClaudeMetadata entity.
func (*ClaudeMetadataDeleteOne) Exec ¶
func (_d *ClaudeMetadataDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ClaudeMetadataDeleteOne) ExecX ¶
func (_d *ClaudeMetadataDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeMetadataDeleteOne) Where ¶
func (_d *ClaudeMetadataDeleteOne) Where(ps ...predicate.ClaudeMetadata) *ClaudeMetadataDeleteOne
Where appends a list predicates to the ClaudeMetadataDelete builder.
type ClaudeMetadataEdges ¶
type ClaudeMetadataEdges struct {
// ClaudeSession holds the value of the claude_session edge.
ClaudeSession *ClaudeSession `json:"claude_session,omitempty"`
// contains filtered or unexported fields
}
ClaudeMetadataEdges holds the relations/edges for other nodes in the graph.
func (ClaudeMetadataEdges) ClaudeSessionOrErr ¶
func (e ClaudeMetadataEdges) ClaudeSessionOrErr() (*ClaudeSession, error)
ClaudeSessionOrErr returns the ClaudeSession value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ClaudeMetadataGroupBy ¶
type ClaudeMetadataGroupBy struct {
// contains filtered or unexported fields
}
ClaudeMetadataGroupBy is the group-by builder for ClaudeMetadata entities.
func (*ClaudeMetadataGroupBy) Aggregate ¶
func (_g *ClaudeMetadataGroupBy) Aggregate(fns ...AggregateFunc) *ClaudeMetadataGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ClaudeMetadataGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataGroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*ClaudeMetadataGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataGroupBy) Scan ¶
func (_g *ClaudeMetadataGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ClaudeMetadataGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ClaudeMetadataMutation ¶
type ClaudeMetadataMutation struct {
// contains filtered or unexported fields
}
ClaudeMetadataMutation represents an operation that mutates the ClaudeMetadata nodes in the graph.
func (*ClaudeMetadataMutation) AddField ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) AddedEdges ¶
func (m *ClaudeMetadataMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ClaudeMetadataMutation) AddedField ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) AddedFields ¶
func (m *ClaudeMetadataMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ClaudeMetadataMutation) AddedIDs ¶
func (m *ClaudeMetadataMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ClaudeMetadataMutation) ClaudeSessionCleared ¶
func (m *ClaudeMetadataMutation) ClaudeSessionCleared() bool
ClaudeSessionCleared reports if the "claude_session" edge to the ClaudeSession entity was cleared.
func (*ClaudeMetadataMutation) ClaudeSessionID ¶
func (m *ClaudeMetadataMutation) ClaudeSessionID() (id int, exists bool)
ClaudeSessionID returns the "claude_session" edge ID in the mutation.
func (*ClaudeMetadataMutation) ClaudeSessionIDs ¶
func (m *ClaudeMetadataMutation) ClaudeSessionIDs() (ids []int)
ClaudeSessionIDs returns the "claude_session" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ClaudeSessionID instead. It exists only for internal usage by the builders.
func (*ClaudeMetadataMutation) ClearClaudeSession ¶
func (m *ClaudeMetadataMutation) ClearClaudeSession()
ClearClaudeSession clears the "claude_session" edge to the ClaudeSession entity.
func (*ClaudeMetadataMutation) ClearEdge ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) ClearField ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) ClearedEdges ¶
func (m *ClaudeMetadataMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ClaudeMetadataMutation) ClearedFields ¶
func (m *ClaudeMetadataMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ClaudeMetadataMutation) Client ¶
func (m ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) EdgeCleared ¶
func (m *ClaudeMetadataMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ClaudeMetadataMutation) Field ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) FieldCleared ¶
func (m *ClaudeMetadataMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ClaudeMetadataMutation) Fields ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) ID ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) IDs ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) Key ¶
func (m *ClaudeMetadataMutation) Key() (r string, exists bool)
Key returns the value of the "key" field in the mutation.
func (*ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) OldKey ¶
func (m *ClaudeMetadataMutation) OldKey(ctx context.Context) (v string, err error)
OldKey returns the old "key" field's value of the ClaudeMetadata entity. If the ClaudeMetadata object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeMetadataMutation) OldValue ¶
func (m *ClaudeMetadataMutation) OldValue(ctx context.Context) (v string, err error)
OldValue returns the old "value" field's value of the ClaudeMetadata entity. If the ClaudeMetadata object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeMetadataMutation) Op ¶
func (m *ClaudeMetadataMutation) Op() Op
Op returns the operation name.
func (*ClaudeMetadataMutation) RemovedEdges ¶
func (m *ClaudeMetadataMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ClaudeMetadataMutation) RemovedIDs ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) ResetClaudeSession ¶
func (m *ClaudeMetadataMutation) ResetClaudeSession()
ResetClaudeSession resets all changes to the "claude_session" edge.
func (*ClaudeMetadataMutation) ResetEdge ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) ResetField ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) ResetKey ¶
func (m *ClaudeMetadataMutation) ResetKey()
ResetKey resets all changes to the "key" field.
func (*ClaudeMetadataMutation) ResetValue ¶
func (m *ClaudeMetadataMutation) ResetValue()
ResetValue resets all changes to the "value" field.
func (*ClaudeMetadataMutation) SetClaudeSessionID ¶
func (m *ClaudeMetadataMutation) SetClaudeSessionID(id int)
SetClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by id.
func (*ClaudeMetadataMutation) SetField ¶
func (m *ClaudeMetadataMutation) 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 (*ClaudeMetadataMutation) SetKey ¶
func (m *ClaudeMetadataMutation) SetKey(s string)
SetKey sets the "key" field.
func (*ClaudeMetadataMutation) SetOp ¶
func (m *ClaudeMetadataMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ClaudeMetadataMutation) SetValue ¶
func (m *ClaudeMetadataMutation) SetValue(s string)
SetValue sets the "value" field.
func (ClaudeMetadataMutation) Tx ¶
func (m ClaudeMetadataMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ClaudeMetadataMutation) Type ¶
func (m *ClaudeMetadataMutation) Type() string
Type returns the node type of this mutation (ClaudeMetadata).
func (*ClaudeMetadataMutation) Value ¶
func (m *ClaudeMetadataMutation) Value() (r string, exists bool)
Value returns the value of the "value" field in the mutation.
func (*ClaudeMetadataMutation) Where ¶
func (m *ClaudeMetadataMutation) Where(ps ...predicate.ClaudeMetadata)
Where appends a list predicates to the ClaudeMetadataMutation builder.
func (*ClaudeMetadataMutation) WhereP ¶
func (m *ClaudeMetadataMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ClaudeMetadataMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ClaudeMetadataQuery ¶
type ClaudeMetadataQuery struct {
// contains filtered or unexported fields
}
ClaudeMetadataQuery is the builder for querying ClaudeMetadata entities.
func (*ClaudeMetadataQuery) Aggregate ¶
func (_q *ClaudeMetadataQuery) Aggregate(fns ...AggregateFunc) *ClaudeMetadataSelect
Aggregate returns a ClaudeMetadataSelect configured with the given aggregations.
func (*ClaudeMetadataQuery) All ¶
func (_q *ClaudeMetadataQuery) All(ctx context.Context) ([]*ClaudeMetadata, error)
All executes the query and returns a list of ClaudeMetadataSlice.
func (*ClaudeMetadataQuery) AllX ¶
func (_q *ClaudeMetadataQuery) AllX(ctx context.Context) []*ClaudeMetadata
AllX is like All, but panics if an error occurs.
func (*ClaudeMetadataQuery) Clone ¶
func (_q *ClaudeMetadataQuery) Clone() *ClaudeMetadataQuery
Clone returns a duplicate of the ClaudeMetadataQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ClaudeMetadataQuery) Count ¶
func (_q *ClaudeMetadataQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ClaudeMetadataQuery) CountX ¶
func (_q *ClaudeMetadataQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ClaudeMetadataQuery) Exist ¶
func (_q *ClaudeMetadataQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ClaudeMetadataQuery) ExistX ¶
func (_q *ClaudeMetadataQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ClaudeMetadataQuery) First ¶
func (_q *ClaudeMetadataQuery) First(ctx context.Context) (*ClaudeMetadata, error)
First returns the first ClaudeMetadata entity from the query. Returns a *NotFoundError when no ClaudeMetadata was found.
func (*ClaudeMetadataQuery) FirstID ¶
func (_q *ClaudeMetadataQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first ClaudeMetadata ID from the query. Returns a *NotFoundError when no ClaudeMetadata ID was found.
func (*ClaudeMetadataQuery) FirstIDX ¶
func (_q *ClaudeMetadataQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*ClaudeMetadataQuery) FirstX ¶
func (_q *ClaudeMetadataQuery) FirstX(ctx context.Context) *ClaudeMetadata
FirstX is like First, but panics if an error occurs.
func (*ClaudeMetadataQuery) GroupBy ¶
func (_q *ClaudeMetadataQuery) GroupBy(field string, fields ...string) *ClaudeMetadataGroupBy
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 {
Key string `json:"key,omitempty"`
Count int `json:"count,omitempty"`
}
client.ClaudeMetadata.Query().
GroupBy(claudemetadata.FieldKey).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*ClaudeMetadataQuery) IDs ¶
func (_q *ClaudeMetadataQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of ClaudeMetadata IDs.
func (*ClaudeMetadataQuery) IDsX ¶
func (_q *ClaudeMetadataQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ClaudeMetadataQuery) Limit ¶
func (_q *ClaudeMetadataQuery) Limit(limit int) *ClaudeMetadataQuery
Limit the number of records to be returned by this query.
func (*ClaudeMetadataQuery) Offset ¶
func (_q *ClaudeMetadataQuery) Offset(offset int) *ClaudeMetadataQuery
Offset to start from.
func (*ClaudeMetadataQuery) Only ¶
func (_q *ClaudeMetadataQuery) Only(ctx context.Context) (*ClaudeMetadata, error)
Only returns a single ClaudeMetadata entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ClaudeMetadata entity is found. Returns a *NotFoundError when no ClaudeMetadata entities are found.
func (*ClaudeMetadataQuery) OnlyID ¶
func (_q *ClaudeMetadataQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only ClaudeMetadata ID in the query. Returns a *NotSingularError when more than one ClaudeMetadata ID is found. Returns a *NotFoundError when no entities are found.
func (*ClaudeMetadataQuery) OnlyIDX ¶
func (_q *ClaudeMetadataQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ClaudeMetadataQuery) OnlyX ¶
func (_q *ClaudeMetadataQuery) OnlyX(ctx context.Context) *ClaudeMetadata
OnlyX is like Only, but panics if an error occurs.
func (*ClaudeMetadataQuery) Order ¶
func (_q *ClaudeMetadataQuery) Order(o ...claudemetadata.OrderOption) *ClaudeMetadataQuery
Order specifies how the records should be ordered.
func (*ClaudeMetadataQuery) QueryClaudeSession ¶
func (_q *ClaudeMetadataQuery) QueryClaudeSession() *ClaudeSessionQuery
QueryClaudeSession chains the current query on the "claude_session" edge.
func (*ClaudeMetadataQuery) Select ¶
func (_q *ClaudeMetadataQuery) Select(fields ...string) *ClaudeMetadataSelect
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 {
Key string `json:"key,omitempty"`
}
client.ClaudeMetadata.Query().
Select(claudemetadata.FieldKey).
Scan(ctx, &v)
func (*ClaudeMetadataQuery) Unique ¶
func (_q *ClaudeMetadataQuery) Unique(unique bool) *ClaudeMetadataQuery
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 (*ClaudeMetadataQuery) Where ¶
func (_q *ClaudeMetadataQuery) Where(ps ...predicate.ClaudeMetadata) *ClaudeMetadataQuery
Where adds a new predicate for the ClaudeMetadataQuery builder.
func (*ClaudeMetadataQuery) WithClaudeSession ¶
func (_q *ClaudeMetadataQuery) WithClaudeSession(opts ...func(*ClaudeSessionQuery)) *ClaudeMetadataQuery
WithClaudeSession tells the query-builder to eager-load the nodes that are connected to the "claude_session" edge. The optional arguments are used to configure the query builder of the edge.
type ClaudeMetadataSelect ¶
type ClaudeMetadataSelect struct {
*ClaudeMetadataQuery
// contains filtered or unexported fields
}
ClaudeMetadataSelect is the builder for selecting fields of ClaudeMetadata entities.
func (*ClaudeMetadataSelect) Aggregate ¶
func (_s *ClaudeMetadataSelect) Aggregate(fns ...AggregateFunc) *ClaudeMetadataSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ClaudeMetadataSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ClaudeMetadataSelect) Scan ¶
func (_s *ClaudeMetadataSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ClaudeMetadataSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ClaudeMetadataSlice ¶
type ClaudeMetadataSlice []*ClaudeMetadata
ClaudeMetadataSlice is a parsable slice of ClaudeMetadata.
type ClaudeMetadataUpdate ¶
type ClaudeMetadataUpdate struct {
// contains filtered or unexported fields
}
ClaudeMetadataUpdate is the builder for updating ClaudeMetadata entities.
func (*ClaudeMetadataUpdate) ClearClaudeSession ¶
func (_u *ClaudeMetadataUpdate) ClearClaudeSession() *ClaudeMetadataUpdate
ClearClaudeSession clears the "claude_session" edge to the ClaudeSession entity.
func (*ClaudeMetadataUpdate) Exec ¶
func (_u *ClaudeMetadataUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeMetadataUpdate) ExecX ¶
func (_u *ClaudeMetadataUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeMetadataUpdate) Mutation ¶
func (_u *ClaudeMetadataUpdate) Mutation() *ClaudeMetadataMutation
Mutation returns the ClaudeMetadataMutation object of the builder.
func (*ClaudeMetadataUpdate) Save ¶
func (_u *ClaudeMetadataUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ClaudeMetadataUpdate) SaveX ¶
func (_u *ClaudeMetadataUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ClaudeMetadataUpdate) SetClaudeSession ¶
func (_u *ClaudeMetadataUpdate) SetClaudeSession(v *ClaudeSession) *ClaudeMetadataUpdate
SetClaudeSession sets the "claude_session" edge to the ClaudeSession entity.
func (*ClaudeMetadataUpdate) SetClaudeSessionID ¶
func (_u *ClaudeMetadataUpdate) SetClaudeSessionID(id int) *ClaudeMetadataUpdate
SetClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID.
func (*ClaudeMetadataUpdate) SetKey ¶
func (_u *ClaudeMetadataUpdate) SetKey(v string) *ClaudeMetadataUpdate
SetKey sets the "key" field.
func (*ClaudeMetadataUpdate) SetNillableKey ¶
func (_u *ClaudeMetadataUpdate) SetNillableKey(v *string) *ClaudeMetadataUpdate
SetNillableKey sets the "key" field if the given value is not nil.
func (*ClaudeMetadataUpdate) SetNillableValue ¶
func (_u *ClaudeMetadataUpdate) SetNillableValue(v *string) *ClaudeMetadataUpdate
SetNillableValue sets the "value" field if the given value is not nil.
func (*ClaudeMetadataUpdate) SetValue ¶
func (_u *ClaudeMetadataUpdate) SetValue(v string) *ClaudeMetadataUpdate
SetValue sets the "value" field.
func (*ClaudeMetadataUpdate) Where ¶
func (_u *ClaudeMetadataUpdate) Where(ps ...predicate.ClaudeMetadata) *ClaudeMetadataUpdate
Where appends a list predicates to the ClaudeMetadataUpdate builder.
type ClaudeMetadataUpdateOne ¶
type ClaudeMetadataUpdateOne struct {
// contains filtered or unexported fields
}
ClaudeMetadataUpdateOne is the builder for updating a single ClaudeMetadata entity.
func (*ClaudeMetadataUpdateOne) ClearClaudeSession ¶
func (_u *ClaudeMetadataUpdateOne) ClearClaudeSession() *ClaudeMetadataUpdateOne
ClearClaudeSession clears the "claude_session" edge to the ClaudeSession entity.
func (*ClaudeMetadataUpdateOne) Exec ¶
func (_u *ClaudeMetadataUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ClaudeMetadataUpdateOne) ExecX ¶
func (_u *ClaudeMetadataUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeMetadataUpdateOne) Mutation ¶
func (_u *ClaudeMetadataUpdateOne) Mutation() *ClaudeMetadataMutation
Mutation returns the ClaudeMetadataMutation object of the builder.
func (*ClaudeMetadataUpdateOne) Save ¶
func (_u *ClaudeMetadataUpdateOne) Save(ctx context.Context) (*ClaudeMetadata, error)
Save executes the query and returns the updated ClaudeMetadata entity.
func (*ClaudeMetadataUpdateOne) SaveX ¶
func (_u *ClaudeMetadataUpdateOne) SaveX(ctx context.Context) *ClaudeMetadata
SaveX is like Save, but panics if an error occurs.
func (*ClaudeMetadataUpdateOne) Select ¶
func (_u *ClaudeMetadataUpdateOne) Select(field string, fields ...string) *ClaudeMetadataUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ClaudeMetadataUpdateOne) SetClaudeSession ¶
func (_u *ClaudeMetadataUpdateOne) SetClaudeSession(v *ClaudeSession) *ClaudeMetadataUpdateOne
SetClaudeSession sets the "claude_session" edge to the ClaudeSession entity.
func (*ClaudeMetadataUpdateOne) SetClaudeSessionID ¶
func (_u *ClaudeMetadataUpdateOne) SetClaudeSessionID(id int) *ClaudeMetadataUpdateOne
SetClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID.
func (*ClaudeMetadataUpdateOne) SetKey ¶
func (_u *ClaudeMetadataUpdateOne) SetKey(v string) *ClaudeMetadataUpdateOne
SetKey sets the "key" field.
func (*ClaudeMetadataUpdateOne) SetNillableKey ¶
func (_u *ClaudeMetadataUpdateOne) SetNillableKey(v *string) *ClaudeMetadataUpdateOne
SetNillableKey sets the "key" field if the given value is not nil.
func (*ClaudeMetadataUpdateOne) SetNillableValue ¶
func (_u *ClaudeMetadataUpdateOne) SetNillableValue(v *string) *ClaudeMetadataUpdateOne
SetNillableValue sets the "value" field if the given value is not nil.
func (*ClaudeMetadataUpdateOne) SetValue ¶
func (_u *ClaudeMetadataUpdateOne) SetValue(v string) *ClaudeMetadataUpdateOne
SetValue sets the "value" field.
func (*ClaudeMetadataUpdateOne) Where ¶
func (_u *ClaudeMetadataUpdateOne) Where(ps ...predicate.ClaudeMetadata) *ClaudeMetadataUpdateOne
Where appends a list predicates to the ClaudeMetadataUpdate builder.
type ClaudeMetadataUpsert ¶ added in v1.12.0
ClaudeMetadataUpsert is the "OnConflict" setter.
func (*ClaudeMetadataUpsert) SetKey ¶ added in v1.12.0
func (u *ClaudeMetadataUpsert) SetKey(v string) *ClaudeMetadataUpsert
SetKey sets the "key" field.
func (*ClaudeMetadataUpsert) SetValue ¶ added in v1.12.0
func (u *ClaudeMetadataUpsert) SetValue(v string) *ClaudeMetadataUpsert
SetValue sets the "value" field.
func (*ClaudeMetadataUpsert) UpdateKey ¶ added in v1.12.0
func (u *ClaudeMetadataUpsert) UpdateKey() *ClaudeMetadataUpsert
UpdateKey sets the "key" field to the value that was provided on create.
func (*ClaudeMetadataUpsert) UpdateValue ¶ added in v1.12.0
func (u *ClaudeMetadataUpsert) UpdateValue() *ClaudeMetadataUpsert
UpdateValue sets the "value" field to the value that was provided on create.
type ClaudeMetadataUpsertBulk ¶ added in v1.12.0
type ClaudeMetadataUpsertBulk struct {
// contains filtered or unexported fields
}
ClaudeMetadataUpsertBulk is the builder for "upsert"-ing a bulk of ClaudeMetadata nodes.
func (*ClaudeMetadataUpsertBulk) DoNothing ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) DoNothing() *ClaudeMetadataUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ClaudeMetadataUpsertBulk) Exec ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeMetadataUpsertBulk) ExecX ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeMetadataUpsertBulk) Ignore ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) Ignore() *ClaudeMetadataUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ClaudeMetadata.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ClaudeMetadataUpsertBulk) SetKey ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) SetKey(v string) *ClaudeMetadataUpsertBulk
SetKey sets the "key" field.
func (*ClaudeMetadataUpsertBulk) SetValue ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) SetValue(v string) *ClaudeMetadataUpsertBulk
SetValue sets the "value" field.
func (*ClaudeMetadataUpsertBulk) Update ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) Update(set func(*ClaudeMetadataUpsert)) *ClaudeMetadataUpsertBulk
Update allows overriding fields `UPDATE` values. See the ClaudeMetadataCreateBulk.OnConflict documentation for more info.
func (*ClaudeMetadataUpsertBulk) UpdateKey ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) UpdateKey() *ClaudeMetadataUpsertBulk
UpdateKey sets the "key" field to the value that was provided on create.
func (*ClaudeMetadataUpsertBulk) UpdateNewValues ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) UpdateNewValues() *ClaudeMetadataUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ClaudeMetadata.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ClaudeMetadataUpsertBulk) UpdateValue ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertBulk) UpdateValue() *ClaudeMetadataUpsertBulk
UpdateValue sets the "value" field to the value that was provided on create.
type ClaudeMetadataUpsertOne ¶ added in v1.12.0
type ClaudeMetadataUpsertOne struct {
// contains filtered or unexported fields
}
ClaudeMetadataUpsertOne is the builder for "upsert"-ing
one ClaudeMetadata node.
func (*ClaudeMetadataUpsertOne) DoNothing ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) DoNothing() *ClaudeMetadataUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ClaudeMetadataUpsertOne) Exec ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeMetadataUpsertOne) ExecX ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeMetadataUpsertOne) ID ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ClaudeMetadataUpsertOne) IDX ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ClaudeMetadataUpsertOne) Ignore ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) Ignore() *ClaudeMetadataUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ClaudeMetadata.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*ClaudeMetadataUpsertOne) SetKey ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) SetKey(v string) *ClaudeMetadataUpsertOne
SetKey sets the "key" field.
func (*ClaudeMetadataUpsertOne) SetValue ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) SetValue(v string) *ClaudeMetadataUpsertOne
SetValue sets the "value" field.
func (*ClaudeMetadataUpsertOne) Update ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) Update(set func(*ClaudeMetadataUpsert)) *ClaudeMetadataUpsertOne
Update allows overriding fields `UPDATE` values. See the ClaudeMetadataCreate.OnConflict documentation for more info.
func (*ClaudeMetadataUpsertOne) UpdateKey ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) UpdateKey() *ClaudeMetadataUpsertOne
UpdateKey sets the "key" field to the value that was provided on create.
func (*ClaudeMetadataUpsertOne) UpdateNewValues ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) UpdateNewValues() *ClaudeMetadataUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ClaudeMetadata.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ClaudeMetadataUpsertOne) UpdateValue ¶ added in v1.12.0
func (u *ClaudeMetadataUpsertOne) UpdateValue() *ClaudeMetadataUpsertOne
UpdateValue sets the "value" field to the value that was provided on create.
type ClaudeSession ¶
type ClaudeSession struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// ClaudeSessionID holds the value of the "claude_session_id" field.
ClaudeSessionID string `json:"claude_session_id,omitempty"`
// ConversationID holds the value of the "conversation_id" field.
ConversationID string `json:"conversation_id,omitempty"`
// ProjectName holds the value of the "project_name" field.
ProjectName string `json:"project_name,omitempty"`
// LastAttached holds the value of the "last_attached" field.
LastAttached *time.Time `json:"last_attached,omitempty"`
// AutoReattach holds the value of the "auto_reattach" field.
AutoReattach bool `json:"auto_reattach,omitempty"`
// PreferredSessionName holds the value of the "preferred_session_name" field.
PreferredSessionName string `json:"preferred_session_name,omitempty"`
// CreateNewOnMissing holds the value of the "create_new_on_missing" field.
CreateNewOnMissing bool `json:"create_new_on_missing,omitempty"`
// ShowSessionSelector holds the value of the "show_session_selector" field.
ShowSessionSelector bool `json:"show_session_selector,omitempty"`
// SessionTimeoutMinutes holds the value of the "session_timeout_minutes" field.
SessionTimeoutMinutes int `json:"session_timeout_minutes,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the ClaudeSessionQuery when eager-loading is set.
Edges ClaudeSessionEdges `json:"edges"`
// contains filtered or unexported fields
}
ClaudeSession is the model entity for the ClaudeSession schema.
func (*ClaudeSession) QueryMetadata ¶
func (_m *ClaudeSession) QueryMetadata() *ClaudeMetadataQuery
QueryMetadata queries the "metadata" edge of the ClaudeSession entity.
func (*ClaudeSession) QuerySession ¶
func (_m *ClaudeSession) QuerySession() *SessionQuery
QuerySession queries the "session" edge of the ClaudeSession entity.
func (*ClaudeSession) String ¶
func (_m *ClaudeSession) String() string
String implements the fmt.Stringer.
func (*ClaudeSession) Unwrap ¶
func (_m *ClaudeSession) Unwrap() *ClaudeSession
Unwrap unwraps the ClaudeSession 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 (*ClaudeSession) Update ¶
func (_m *ClaudeSession) Update() *ClaudeSessionUpdateOne
Update returns a builder for updating this ClaudeSession. Note that you need to call ClaudeSession.Unwrap() before calling this method if this ClaudeSession was returned from a transaction, and the transaction was committed or rolled back.
type ClaudeSessionClient ¶
type ClaudeSessionClient struct {
// contains filtered or unexported fields
}
ClaudeSessionClient is a client for the ClaudeSession schema.
func NewClaudeSessionClient ¶
func NewClaudeSessionClient(c config) *ClaudeSessionClient
NewClaudeSessionClient returns a client for the ClaudeSession from the given config.
func (*ClaudeSessionClient) Create ¶
func (c *ClaudeSessionClient) Create() *ClaudeSessionCreate
Create returns a builder for creating a ClaudeSession entity.
func (*ClaudeSessionClient) CreateBulk ¶
func (c *ClaudeSessionClient) CreateBulk(builders ...*ClaudeSessionCreate) *ClaudeSessionCreateBulk
CreateBulk returns a builder for creating a bulk of ClaudeSession entities.
func (*ClaudeSessionClient) Delete ¶
func (c *ClaudeSessionClient) Delete() *ClaudeSessionDelete
Delete returns a delete builder for ClaudeSession.
func (*ClaudeSessionClient) DeleteOne ¶
func (c *ClaudeSessionClient) DeleteOne(_m *ClaudeSession) *ClaudeSessionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ClaudeSessionClient) DeleteOneID ¶
func (c *ClaudeSessionClient) DeleteOneID(id int) *ClaudeSessionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ClaudeSessionClient) Get ¶
func (c *ClaudeSessionClient) Get(ctx context.Context, id int) (*ClaudeSession, error)
Get returns a ClaudeSession entity by its id.
func (*ClaudeSessionClient) GetX ¶
func (c *ClaudeSessionClient) GetX(ctx context.Context, id int) *ClaudeSession
GetX is like Get, but panics if an error occurs.
func (*ClaudeSessionClient) Hooks ¶
func (c *ClaudeSessionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ClaudeSessionClient) Intercept ¶
func (c *ClaudeSessionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `claudesession.Intercept(f(g(h())))`.
func (*ClaudeSessionClient) Interceptors ¶
func (c *ClaudeSessionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ClaudeSessionClient) MapCreateBulk ¶
func (c *ClaudeSessionClient) MapCreateBulk(slice any, setFunc func(*ClaudeSessionCreate, int)) *ClaudeSessionCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*ClaudeSessionClient) Query ¶
func (c *ClaudeSessionClient) Query() *ClaudeSessionQuery
Query returns a query builder for ClaudeSession.
func (*ClaudeSessionClient) QueryMetadata ¶
func (c *ClaudeSessionClient) QueryMetadata(_m *ClaudeSession) *ClaudeMetadataQuery
QueryMetadata queries the metadata edge of a ClaudeSession.
func (*ClaudeSessionClient) QuerySession ¶
func (c *ClaudeSessionClient) QuerySession(_m *ClaudeSession) *SessionQuery
QuerySession queries the session edge of a ClaudeSession.
func (*ClaudeSessionClient) Update ¶
func (c *ClaudeSessionClient) Update() *ClaudeSessionUpdate
Update returns an update builder for ClaudeSession.
func (*ClaudeSessionClient) UpdateOne ¶
func (c *ClaudeSessionClient) UpdateOne(_m *ClaudeSession) *ClaudeSessionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ClaudeSessionClient) UpdateOneID ¶
func (c *ClaudeSessionClient) UpdateOneID(id int) *ClaudeSessionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ClaudeSessionClient) Use ¶
func (c *ClaudeSessionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `claudesession.Hooks(f(g(h())))`.
type ClaudeSessionCreate ¶
type ClaudeSessionCreate struct {
// contains filtered or unexported fields
}
ClaudeSessionCreate is the builder for creating a ClaudeSession entity.
func (*ClaudeSessionCreate) AddMetadata ¶
func (_c *ClaudeSessionCreate) AddMetadata(v ...*ClaudeMetadata) *ClaudeSessionCreate
AddMetadata adds the "metadata" edges to the ClaudeMetadata entity.
func (*ClaudeSessionCreate) AddMetadatumIDs ¶
func (_c *ClaudeSessionCreate) AddMetadatumIDs(ids ...int) *ClaudeSessionCreate
AddMetadatumIDs adds the "metadata" edge to the ClaudeMetadata entity by IDs.
func (*ClaudeSessionCreate) Exec ¶
func (_c *ClaudeSessionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeSessionCreate) ExecX ¶
func (_c *ClaudeSessionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeSessionCreate) Mutation ¶
func (_c *ClaudeSessionCreate) Mutation() *ClaudeSessionMutation
Mutation returns the ClaudeSessionMutation object of the builder.
func (*ClaudeSessionCreate) OnConflict ¶ added in v1.12.0
func (_c *ClaudeSessionCreate) OnConflict(opts ...sql.ConflictOption) *ClaudeSessionUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ClaudeSession.Create().
SetClaudeSessionID(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.ClaudeSessionUpsert) {
SetClaudeSessionID(v+v).
}).
Exec(ctx)
func (*ClaudeSessionCreate) OnConflictColumns ¶ added in v1.12.0
func (_c *ClaudeSessionCreate) OnConflictColumns(columns ...string) *ClaudeSessionUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ClaudeSession.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ClaudeSessionCreate) Save ¶
func (_c *ClaudeSessionCreate) Save(ctx context.Context) (*ClaudeSession, error)
Save creates the ClaudeSession in the database.
func (*ClaudeSessionCreate) SaveX ¶
func (_c *ClaudeSessionCreate) SaveX(ctx context.Context) *ClaudeSession
SaveX calls Save and panics if Save returns an error.
func (*ClaudeSessionCreate) SetAutoReattach ¶
func (_c *ClaudeSessionCreate) SetAutoReattach(v bool) *ClaudeSessionCreate
SetAutoReattach sets the "auto_reattach" field.
func (*ClaudeSessionCreate) SetClaudeSessionID ¶
func (_c *ClaudeSessionCreate) SetClaudeSessionID(v string) *ClaudeSessionCreate
SetClaudeSessionID sets the "claude_session_id" field.
func (*ClaudeSessionCreate) SetConversationID ¶
func (_c *ClaudeSessionCreate) SetConversationID(v string) *ClaudeSessionCreate
SetConversationID sets the "conversation_id" field.
func (*ClaudeSessionCreate) SetCreateNewOnMissing ¶
func (_c *ClaudeSessionCreate) SetCreateNewOnMissing(v bool) *ClaudeSessionCreate
SetCreateNewOnMissing sets the "create_new_on_missing" field.
func (*ClaudeSessionCreate) SetLastAttached ¶
func (_c *ClaudeSessionCreate) SetLastAttached(v time.Time) *ClaudeSessionCreate
SetLastAttached sets the "last_attached" field.
func (*ClaudeSessionCreate) SetNillableAutoReattach ¶
func (_c *ClaudeSessionCreate) SetNillableAutoReattach(v *bool) *ClaudeSessionCreate
SetNillableAutoReattach sets the "auto_reattach" field if the given value is not nil.
func (*ClaudeSessionCreate) SetNillableConversationID ¶
func (_c *ClaudeSessionCreate) SetNillableConversationID(v *string) *ClaudeSessionCreate
SetNillableConversationID sets the "conversation_id" field if the given value is not nil.
func (*ClaudeSessionCreate) SetNillableCreateNewOnMissing ¶
func (_c *ClaudeSessionCreate) SetNillableCreateNewOnMissing(v *bool) *ClaudeSessionCreate
SetNillableCreateNewOnMissing sets the "create_new_on_missing" field if the given value is not nil.
func (*ClaudeSessionCreate) SetNillableLastAttached ¶
func (_c *ClaudeSessionCreate) SetNillableLastAttached(v *time.Time) *ClaudeSessionCreate
SetNillableLastAttached sets the "last_attached" field if the given value is not nil.
func (*ClaudeSessionCreate) SetNillablePreferredSessionName ¶
func (_c *ClaudeSessionCreate) SetNillablePreferredSessionName(v *string) *ClaudeSessionCreate
SetNillablePreferredSessionName sets the "preferred_session_name" field if the given value is not nil.
func (*ClaudeSessionCreate) SetNillableProjectName ¶
func (_c *ClaudeSessionCreate) SetNillableProjectName(v *string) *ClaudeSessionCreate
SetNillableProjectName sets the "project_name" field if the given value is not nil.
func (*ClaudeSessionCreate) SetNillableSessionTimeoutMinutes ¶
func (_c *ClaudeSessionCreate) SetNillableSessionTimeoutMinutes(v *int) *ClaudeSessionCreate
SetNillableSessionTimeoutMinutes sets the "session_timeout_minutes" field if the given value is not nil.
func (*ClaudeSessionCreate) SetNillableShowSessionSelector ¶
func (_c *ClaudeSessionCreate) SetNillableShowSessionSelector(v *bool) *ClaudeSessionCreate
SetNillableShowSessionSelector sets the "show_session_selector" field if the given value is not nil.
func (*ClaudeSessionCreate) SetPreferredSessionName ¶
func (_c *ClaudeSessionCreate) SetPreferredSessionName(v string) *ClaudeSessionCreate
SetPreferredSessionName sets the "preferred_session_name" field.
func (*ClaudeSessionCreate) SetProjectName ¶
func (_c *ClaudeSessionCreate) SetProjectName(v string) *ClaudeSessionCreate
SetProjectName sets the "project_name" field.
func (*ClaudeSessionCreate) SetSession ¶
func (_c *ClaudeSessionCreate) SetSession(v *Session) *ClaudeSessionCreate
SetSession sets the "session" edge to the Session entity.
func (*ClaudeSessionCreate) SetSessionID ¶
func (_c *ClaudeSessionCreate) SetSessionID(id int) *ClaudeSessionCreate
SetSessionID sets the "session" edge to the Session entity by ID.
func (*ClaudeSessionCreate) SetSessionTimeoutMinutes ¶
func (_c *ClaudeSessionCreate) SetSessionTimeoutMinutes(v int) *ClaudeSessionCreate
SetSessionTimeoutMinutes sets the "session_timeout_minutes" field.
func (*ClaudeSessionCreate) SetShowSessionSelector ¶
func (_c *ClaudeSessionCreate) SetShowSessionSelector(v bool) *ClaudeSessionCreate
SetShowSessionSelector sets the "show_session_selector" field.
type ClaudeSessionCreateBulk ¶
type ClaudeSessionCreateBulk struct {
// contains filtered or unexported fields
}
ClaudeSessionCreateBulk is the builder for creating many ClaudeSession entities in bulk.
func (*ClaudeSessionCreateBulk) Exec ¶
func (_c *ClaudeSessionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeSessionCreateBulk) ExecX ¶
func (_c *ClaudeSessionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeSessionCreateBulk) OnConflict ¶ added in v1.12.0
func (_c *ClaudeSessionCreateBulk) OnConflict(opts ...sql.ConflictOption) *ClaudeSessionUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.ClaudeSession.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.ClaudeSessionUpsert) {
SetClaudeSessionID(v+v).
}).
Exec(ctx)
func (*ClaudeSessionCreateBulk) OnConflictColumns ¶ added in v1.12.0
func (_c *ClaudeSessionCreateBulk) OnConflictColumns(columns ...string) *ClaudeSessionUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.ClaudeSession.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ClaudeSessionCreateBulk) Save ¶
func (_c *ClaudeSessionCreateBulk) Save(ctx context.Context) ([]*ClaudeSession, error)
Save creates the ClaudeSession entities in the database.
func (*ClaudeSessionCreateBulk) SaveX ¶
func (_c *ClaudeSessionCreateBulk) SaveX(ctx context.Context) []*ClaudeSession
SaveX is like Save, but panics if an error occurs.
type ClaudeSessionDelete ¶
type ClaudeSessionDelete struct {
// contains filtered or unexported fields
}
ClaudeSessionDelete is the builder for deleting a ClaudeSession entity.
func (*ClaudeSessionDelete) Exec ¶
func (_d *ClaudeSessionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ClaudeSessionDelete) ExecX ¶
func (_d *ClaudeSessionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeSessionDelete) Where ¶
func (_d *ClaudeSessionDelete) Where(ps ...predicate.ClaudeSession) *ClaudeSessionDelete
Where appends a list predicates to the ClaudeSessionDelete builder.
type ClaudeSessionDeleteOne ¶
type ClaudeSessionDeleteOne struct {
// contains filtered or unexported fields
}
ClaudeSessionDeleteOne is the builder for deleting a single ClaudeSession entity.
func (*ClaudeSessionDeleteOne) Exec ¶
func (_d *ClaudeSessionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ClaudeSessionDeleteOne) ExecX ¶
func (_d *ClaudeSessionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeSessionDeleteOne) Where ¶
func (_d *ClaudeSessionDeleteOne) Where(ps ...predicate.ClaudeSession) *ClaudeSessionDeleteOne
Where appends a list predicates to the ClaudeSessionDelete builder.
type ClaudeSessionEdges ¶
type ClaudeSessionEdges struct {
// Session holds the value of the session edge.
Session *Session `json:"session,omitempty"`
// Metadata holds the value of the metadata edge.
Metadata []*ClaudeMetadata `json:"metadata,omitempty"`
// contains filtered or unexported fields
}
ClaudeSessionEdges holds the relations/edges for other nodes in the graph.
func (ClaudeSessionEdges) MetadataOrErr ¶
func (e ClaudeSessionEdges) MetadataOrErr() ([]*ClaudeMetadata, error)
MetadataOrErr returns the Metadata value or an error if the edge was not loaded in eager-loading.
func (ClaudeSessionEdges) SessionOrErr ¶
func (e ClaudeSessionEdges) SessionOrErr() (*Session, error)
SessionOrErr returns the Session value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type ClaudeSessionGroupBy ¶
type ClaudeSessionGroupBy struct {
// contains filtered or unexported fields
}
ClaudeSessionGroupBy is the group-by builder for ClaudeSession entities.
func (*ClaudeSessionGroupBy) Aggregate ¶
func (_g *ClaudeSessionGroupBy) Aggregate(fns ...AggregateFunc) *ClaudeSessionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ClaudeSessionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionGroupBy) Scan ¶
func (_g *ClaudeSessionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ClaudeSessionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ClaudeSessionMutation ¶
type ClaudeSessionMutation struct {
// contains filtered or unexported fields
}
ClaudeSessionMutation represents an operation that mutates the ClaudeSession nodes in the graph.
func (*ClaudeSessionMutation) AddField ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) AddMetadatumIDs ¶
func (m *ClaudeSessionMutation) AddMetadatumIDs(ids ...int)
AddMetadatumIDs adds the "metadata" edge to the ClaudeMetadata entity by ids.
func (*ClaudeSessionMutation) AddSessionTimeoutMinutes ¶
func (m *ClaudeSessionMutation) AddSessionTimeoutMinutes(i int)
AddSessionTimeoutMinutes adds i to the "session_timeout_minutes" field.
func (*ClaudeSessionMutation) AddedEdges ¶
func (m *ClaudeSessionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ClaudeSessionMutation) AddedField ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) AddedFields ¶
func (m *ClaudeSessionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ClaudeSessionMutation) AddedIDs ¶
func (m *ClaudeSessionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ClaudeSessionMutation) AddedSessionTimeoutMinutes ¶
func (m *ClaudeSessionMutation) AddedSessionTimeoutMinutes() (r int, exists bool)
AddedSessionTimeoutMinutes returns the value that was added to the "session_timeout_minutes" field in this mutation.
func (*ClaudeSessionMutation) AutoReattach ¶
func (m *ClaudeSessionMutation) AutoReattach() (r bool, exists bool)
AutoReattach returns the value of the "auto_reattach" field in the mutation.
func (*ClaudeSessionMutation) ClaudeSessionID ¶
func (m *ClaudeSessionMutation) ClaudeSessionID() (r string, exists bool)
ClaudeSessionID returns the value of the "claude_session_id" field in the mutation.
func (*ClaudeSessionMutation) ClearConversationID ¶
func (m *ClaudeSessionMutation) ClearConversationID()
ClearConversationID clears the value of the "conversation_id" field.
func (*ClaudeSessionMutation) ClearEdge ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) ClearField ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) ClearLastAttached ¶
func (m *ClaudeSessionMutation) ClearLastAttached()
ClearLastAttached clears the value of the "last_attached" field.
func (*ClaudeSessionMutation) ClearMetadata ¶
func (m *ClaudeSessionMutation) ClearMetadata()
ClearMetadata clears the "metadata" edge to the ClaudeMetadata entity.
func (*ClaudeSessionMutation) ClearPreferredSessionName ¶
func (m *ClaudeSessionMutation) ClearPreferredSessionName()
ClearPreferredSessionName clears the value of the "preferred_session_name" field.
func (*ClaudeSessionMutation) ClearProjectName ¶
func (m *ClaudeSessionMutation) ClearProjectName()
ClearProjectName clears the value of the "project_name" field.
func (*ClaudeSessionMutation) ClearSession ¶
func (m *ClaudeSessionMutation) ClearSession()
ClearSession clears the "session" edge to the Session entity.
func (*ClaudeSessionMutation) ClearedEdges ¶
func (m *ClaudeSessionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ClaudeSessionMutation) ClearedFields ¶
func (m *ClaudeSessionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ClaudeSessionMutation) Client ¶
func (m ClaudeSessionMutation) 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 (*ClaudeSessionMutation) ConversationID ¶
func (m *ClaudeSessionMutation) ConversationID() (r string, exists bool)
ConversationID returns the value of the "conversation_id" field in the mutation.
func (*ClaudeSessionMutation) ConversationIDCleared ¶
func (m *ClaudeSessionMutation) ConversationIDCleared() bool
ConversationIDCleared returns if the "conversation_id" field was cleared in this mutation.
func (*ClaudeSessionMutation) CreateNewOnMissing ¶
func (m *ClaudeSessionMutation) CreateNewOnMissing() (r bool, exists bool)
CreateNewOnMissing returns the value of the "create_new_on_missing" field in the mutation.
func (*ClaudeSessionMutation) EdgeCleared ¶
func (m *ClaudeSessionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ClaudeSessionMutation) Field ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) FieldCleared ¶
func (m *ClaudeSessionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ClaudeSessionMutation) Fields ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) ID ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) IDs ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) LastAttached ¶
func (m *ClaudeSessionMutation) LastAttached() (r time.Time, exists bool)
LastAttached returns the value of the "last_attached" field in the mutation.
func (*ClaudeSessionMutation) LastAttachedCleared ¶
func (m *ClaudeSessionMutation) LastAttachedCleared() bool
LastAttachedCleared returns if the "last_attached" field was cleared in this mutation.
func (*ClaudeSessionMutation) MetadataCleared ¶
func (m *ClaudeSessionMutation) MetadataCleared() bool
MetadataCleared reports if the "metadata" edge to the ClaudeMetadata entity was cleared.
func (*ClaudeSessionMutation) MetadataIDs ¶
func (m *ClaudeSessionMutation) MetadataIDs() (ids []int)
MetadataIDs returns the "metadata" edge IDs in the mutation.
func (*ClaudeSessionMutation) OldAutoReattach ¶
func (m *ClaudeSessionMutation) OldAutoReattach(ctx context.Context) (v bool, err error)
OldAutoReattach returns the old "auto_reattach" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) OldClaudeSessionID ¶
func (m *ClaudeSessionMutation) OldClaudeSessionID(ctx context.Context) (v string, err error)
OldClaudeSessionID returns the old "claude_session_id" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) OldConversationID ¶
func (m *ClaudeSessionMutation) OldConversationID(ctx context.Context) (v string, err error)
OldConversationID returns the old "conversation_id" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) OldCreateNewOnMissing ¶
func (m *ClaudeSessionMutation) OldCreateNewOnMissing(ctx context.Context) (v bool, err error)
OldCreateNewOnMissing returns the old "create_new_on_missing" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) 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 (*ClaudeSessionMutation) OldLastAttached ¶
OldLastAttached returns the old "last_attached" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) OldPreferredSessionName ¶
func (m *ClaudeSessionMutation) OldPreferredSessionName(ctx context.Context) (v string, err error)
OldPreferredSessionName returns the old "preferred_session_name" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) OldProjectName ¶
func (m *ClaudeSessionMutation) OldProjectName(ctx context.Context) (v string, err error)
OldProjectName returns the old "project_name" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) OldSessionTimeoutMinutes ¶
func (m *ClaudeSessionMutation) OldSessionTimeoutMinutes(ctx context.Context) (v int, err error)
OldSessionTimeoutMinutes returns the old "session_timeout_minutes" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) OldShowSessionSelector ¶
func (m *ClaudeSessionMutation) OldShowSessionSelector(ctx context.Context) (v bool, err error)
OldShowSessionSelector returns the old "show_session_selector" field's value of the ClaudeSession entity. If the ClaudeSession object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ClaudeSessionMutation) Op ¶
func (m *ClaudeSessionMutation) Op() Op
Op returns the operation name.
func (*ClaudeSessionMutation) PreferredSessionName ¶
func (m *ClaudeSessionMutation) PreferredSessionName() (r string, exists bool)
PreferredSessionName returns the value of the "preferred_session_name" field in the mutation.
func (*ClaudeSessionMutation) PreferredSessionNameCleared ¶
func (m *ClaudeSessionMutation) PreferredSessionNameCleared() bool
PreferredSessionNameCleared returns if the "preferred_session_name" field was cleared in this mutation.
func (*ClaudeSessionMutation) ProjectName ¶
func (m *ClaudeSessionMutation) ProjectName() (r string, exists bool)
ProjectName returns the value of the "project_name" field in the mutation.
func (*ClaudeSessionMutation) ProjectNameCleared ¶
func (m *ClaudeSessionMutation) ProjectNameCleared() bool
ProjectNameCleared returns if the "project_name" field was cleared in this mutation.
func (*ClaudeSessionMutation) RemoveMetadatumIDs ¶
func (m *ClaudeSessionMutation) RemoveMetadatumIDs(ids ...int)
RemoveMetadatumIDs removes the "metadata" edge to the ClaudeMetadata entity by IDs.
func (*ClaudeSessionMutation) RemovedEdges ¶
func (m *ClaudeSessionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ClaudeSessionMutation) RemovedIDs ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) RemovedMetadataIDs ¶
func (m *ClaudeSessionMutation) RemovedMetadataIDs() (ids []int)
RemovedMetadata returns the removed IDs of the "metadata" edge to the ClaudeMetadata entity.
func (*ClaudeSessionMutation) ResetAutoReattach ¶
func (m *ClaudeSessionMutation) ResetAutoReattach()
ResetAutoReattach resets all changes to the "auto_reattach" field.
func (*ClaudeSessionMutation) ResetClaudeSessionID ¶
func (m *ClaudeSessionMutation) ResetClaudeSessionID()
ResetClaudeSessionID resets all changes to the "claude_session_id" field.
func (*ClaudeSessionMutation) ResetConversationID ¶
func (m *ClaudeSessionMutation) ResetConversationID()
ResetConversationID resets all changes to the "conversation_id" field.
func (*ClaudeSessionMutation) ResetCreateNewOnMissing ¶
func (m *ClaudeSessionMutation) ResetCreateNewOnMissing()
ResetCreateNewOnMissing resets all changes to the "create_new_on_missing" field.
func (*ClaudeSessionMutation) ResetEdge ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) ResetField ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) ResetLastAttached ¶
func (m *ClaudeSessionMutation) ResetLastAttached()
ResetLastAttached resets all changes to the "last_attached" field.
func (*ClaudeSessionMutation) ResetMetadata ¶
func (m *ClaudeSessionMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" edge.
func (*ClaudeSessionMutation) ResetPreferredSessionName ¶
func (m *ClaudeSessionMutation) ResetPreferredSessionName()
ResetPreferredSessionName resets all changes to the "preferred_session_name" field.
func (*ClaudeSessionMutation) ResetProjectName ¶
func (m *ClaudeSessionMutation) ResetProjectName()
ResetProjectName resets all changes to the "project_name" field.
func (*ClaudeSessionMutation) ResetSession ¶
func (m *ClaudeSessionMutation) ResetSession()
ResetSession resets all changes to the "session" edge.
func (*ClaudeSessionMutation) ResetSessionTimeoutMinutes ¶
func (m *ClaudeSessionMutation) ResetSessionTimeoutMinutes()
ResetSessionTimeoutMinutes resets all changes to the "session_timeout_minutes" field.
func (*ClaudeSessionMutation) ResetShowSessionSelector ¶
func (m *ClaudeSessionMutation) ResetShowSessionSelector()
ResetShowSessionSelector resets all changes to the "show_session_selector" field.
func (*ClaudeSessionMutation) SessionCleared ¶
func (m *ClaudeSessionMutation) SessionCleared() bool
SessionCleared reports if the "session" edge to the Session entity was cleared.
func (*ClaudeSessionMutation) SessionID ¶
func (m *ClaudeSessionMutation) SessionID() (id int, exists bool)
SessionID returns the "session" edge ID in the mutation.
func (*ClaudeSessionMutation) SessionIDs ¶
func (m *ClaudeSessionMutation) SessionIDs() (ids []int)
SessionIDs returns the "session" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SessionID instead. It exists only for internal usage by the builders.
func (*ClaudeSessionMutation) SessionTimeoutMinutes ¶
func (m *ClaudeSessionMutation) SessionTimeoutMinutes() (r int, exists bool)
SessionTimeoutMinutes returns the value of the "session_timeout_minutes" field in the mutation.
func (*ClaudeSessionMutation) SetAutoReattach ¶
func (m *ClaudeSessionMutation) SetAutoReattach(b bool)
SetAutoReattach sets the "auto_reattach" field.
func (*ClaudeSessionMutation) SetClaudeSessionID ¶
func (m *ClaudeSessionMutation) SetClaudeSessionID(s string)
SetClaudeSessionID sets the "claude_session_id" field.
func (*ClaudeSessionMutation) SetConversationID ¶
func (m *ClaudeSessionMutation) SetConversationID(s string)
SetConversationID sets the "conversation_id" field.
func (*ClaudeSessionMutation) SetCreateNewOnMissing ¶
func (m *ClaudeSessionMutation) SetCreateNewOnMissing(b bool)
SetCreateNewOnMissing sets the "create_new_on_missing" field.
func (*ClaudeSessionMutation) SetField ¶
func (m *ClaudeSessionMutation) 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 (*ClaudeSessionMutation) SetLastAttached ¶
func (m *ClaudeSessionMutation) SetLastAttached(t time.Time)
SetLastAttached sets the "last_attached" field.
func (*ClaudeSessionMutation) SetOp ¶
func (m *ClaudeSessionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ClaudeSessionMutation) SetPreferredSessionName ¶
func (m *ClaudeSessionMutation) SetPreferredSessionName(s string)
SetPreferredSessionName sets the "preferred_session_name" field.
func (*ClaudeSessionMutation) SetProjectName ¶
func (m *ClaudeSessionMutation) SetProjectName(s string)
SetProjectName sets the "project_name" field.
func (*ClaudeSessionMutation) SetSessionID ¶
func (m *ClaudeSessionMutation) SetSessionID(id int)
SetSessionID sets the "session" edge to the Session entity by id.
func (*ClaudeSessionMutation) SetSessionTimeoutMinutes ¶
func (m *ClaudeSessionMutation) SetSessionTimeoutMinutes(i int)
SetSessionTimeoutMinutes sets the "session_timeout_minutes" field.
func (*ClaudeSessionMutation) SetShowSessionSelector ¶
func (m *ClaudeSessionMutation) SetShowSessionSelector(b bool)
SetShowSessionSelector sets the "show_session_selector" field.
func (*ClaudeSessionMutation) ShowSessionSelector ¶
func (m *ClaudeSessionMutation) ShowSessionSelector() (r bool, exists bool)
ShowSessionSelector returns the value of the "show_session_selector" field in the mutation.
func (ClaudeSessionMutation) Tx ¶
func (m ClaudeSessionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ClaudeSessionMutation) Type ¶
func (m *ClaudeSessionMutation) Type() string
Type returns the node type of this mutation (ClaudeSession).
func (*ClaudeSessionMutation) Where ¶
func (m *ClaudeSessionMutation) Where(ps ...predicate.ClaudeSession)
Where appends a list predicates to the ClaudeSessionMutation builder.
func (*ClaudeSessionMutation) WhereP ¶
func (m *ClaudeSessionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ClaudeSessionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ClaudeSessionQuery ¶
type ClaudeSessionQuery struct {
// contains filtered or unexported fields
}
ClaudeSessionQuery is the builder for querying ClaudeSession entities.
func (*ClaudeSessionQuery) Aggregate ¶
func (_q *ClaudeSessionQuery) Aggregate(fns ...AggregateFunc) *ClaudeSessionSelect
Aggregate returns a ClaudeSessionSelect configured with the given aggregations.
func (*ClaudeSessionQuery) All ¶
func (_q *ClaudeSessionQuery) All(ctx context.Context) ([]*ClaudeSession, error)
All executes the query and returns a list of ClaudeSessions.
func (*ClaudeSessionQuery) AllX ¶
func (_q *ClaudeSessionQuery) AllX(ctx context.Context) []*ClaudeSession
AllX is like All, but panics if an error occurs.
func (*ClaudeSessionQuery) Clone ¶
func (_q *ClaudeSessionQuery) Clone() *ClaudeSessionQuery
Clone returns a duplicate of the ClaudeSessionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ClaudeSessionQuery) Count ¶
func (_q *ClaudeSessionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ClaudeSessionQuery) CountX ¶
func (_q *ClaudeSessionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ClaudeSessionQuery) Exist ¶
func (_q *ClaudeSessionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ClaudeSessionQuery) ExistX ¶
func (_q *ClaudeSessionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ClaudeSessionQuery) First ¶
func (_q *ClaudeSessionQuery) First(ctx context.Context) (*ClaudeSession, error)
First returns the first ClaudeSession entity from the query. Returns a *NotFoundError when no ClaudeSession was found.
func (*ClaudeSessionQuery) FirstID ¶
func (_q *ClaudeSessionQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first ClaudeSession ID from the query. Returns a *NotFoundError when no ClaudeSession ID was found.
func (*ClaudeSessionQuery) FirstIDX ¶
func (_q *ClaudeSessionQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*ClaudeSessionQuery) FirstX ¶
func (_q *ClaudeSessionQuery) FirstX(ctx context.Context) *ClaudeSession
FirstX is like First, but panics if an error occurs.
func (*ClaudeSessionQuery) GroupBy ¶
func (_q *ClaudeSessionQuery) GroupBy(field string, fields ...string) *ClaudeSessionGroupBy
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 {
ClaudeSessionID string `json:"claude_session_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.ClaudeSession.Query().
GroupBy(claudesession.FieldClaudeSessionID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*ClaudeSessionQuery) IDs ¶
func (_q *ClaudeSessionQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of ClaudeSession IDs.
func (*ClaudeSessionQuery) IDsX ¶
func (_q *ClaudeSessionQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ClaudeSessionQuery) Limit ¶
func (_q *ClaudeSessionQuery) Limit(limit int) *ClaudeSessionQuery
Limit the number of records to be returned by this query.
func (*ClaudeSessionQuery) Offset ¶
func (_q *ClaudeSessionQuery) Offset(offset int) *ClaudeSessionQuery
Offset to start from.
func (*ClaudeSessionQuery) Only ¶
func (_q *ClaudeSessionQuery) Only(ctx context.Context) (*ClaudeSession, error)
Only returns a single ClaudeSession entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one ClaudeSession entity is found. Returns a *NotFoundError when no ClaudeSession entities are found.
func (*ClaudeSessionQuery) OnlyID ¶
func (_q *ClaudeSessionQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only ClaudeSession ID in the query. Returns a *NotSingularError when more than one ClaudeSession ID is found. Returns a *NotFoundError when no entities are found.
func (*ClaudeSessionQuery) OnlyIDX ¶
func (_q *ClaudeSessionQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ClaudeSessionQuery) OnlyX ¶
func (_q *ClaudeSessionQuery) OnlyX(ctx context.Context) *ClaudeSession
OnlyX is like Only, but panics if an error occurs.
func (*ClaudeSessionQuery) Order ¶
func (_q *ClaudeSessionQuery) Order(o ...claudesession.OrderOption) *ClaudeSessionQuery
Order specifies how the records should be ordered.
func (*ClaudeSessionQuery) QueryMetadata ¶
func (_q *ClaudeSessionQuery) QueryMetadata() *ClaudeMetadataQuery
QueryMetadata chains the current query on the "metadata" edge.
func (*ClaudeSessionQuery) QuerySession ¶
func (_q *ClaudeSessionQuery) QuerySession() *SessionQuery
QuerySession chains the current query on the "session" edge.
func (*ClaudeSessionQuery) Select ¶
func (_q *ClaudeSessionQuery) Select(fields ...string) *ClaudeSessionSelect
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 {
ClaudeSessionID string `json:"claude_session_id,omitempty"`
}
client.ClaudeSession.Query().
Select(claudesession.FieldClaudeSessionID).
Scan(ctx, &v)
func (*ClaudeSessionQuery) Unique ¶
func (_q *ClaudeSessionQuery) Unique(unique bool) *ClaudeSessionQuery
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 (*ClaudeSessionQuery) Where ¶
func (_q *ClaudeSessionQuery) Where(ps ...predicate.ClaudeSession) *ClaudeSessionQuery
Where adds a new predicate for the ClaudeSessionQuery builder.
func (*ClaudeSessionQuery) WithMetadata ¶
func (_q *ClaudeSessionQuery) WithMetadata(opts ...func(*ClaudeMetadataQuery)) *ClaudeSessionQuery
WithMetadata tells the query-builder to eager-load the nodes that are connected to the "metadata" edge. The optional arguments are used to configure the query builder of the edge.
func (*ClaudeSessionQuery) WithSession ¶
func (_q *ClaudeSessionQuery) WithSession(opts ...func(*SessionQuery)) *ClaudeSessionQuery
WithSession tells the query-builder to eager-load the nodes that are connected to the "session" edge. The optional arguments are used to configure the query builder of the edge.
type ClaudeSessionSelect ¶
type ClaudeSessionSelect struct {
*ClaudeSessionQuery
// contains filtered or unexported fields
}
ClaudeSessionSelect is the builder for selecting fields of ClaudeSession entities.
func (*ClaudeSessionSelect) Aggregate ¶
func (_s *ClaudeSessionSelect) Aggregate(fns ...AggregateFunc) *ClaudeSessionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ClaudeSessionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ClaudeSessionSelect) Scan ¶
func (_s *ClaudeSessionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ClaudeSessionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ClaudeSessionUpdate ¶
type ClaudeSessionUpdate struct {
// contains filtered or unexported fields
}
ClaudeSessionUpdate is the builder for updating ClaudeSession entities.
func (*ClaudeSessionUpdate) AddMetadata ¶
func (_u *ClaudeSessionUpdate) AddMetadata(v ...*ClaudeMetadata) *ClaudeSessionUpdate
AddMetadata adds the "metadata" edges to the ClaudeMetadata entity.
func (*ClaudeSessionUpdate) AddMetadatumIDs ¶
func (_u *ClaudeSessionUpdate) AddMetadatumIDs(ids ...int) *ClaudeSessionUpdate
AddMetadatumIDs adds the "metadata" edge to the ClaudeMetadata entity by IDs.
func (*ClaudeSessionUpdate) AddSessionTimeoutMinutes ¶
func (_u *ClaudeSessionUpdate) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpdate
AddSessionTimeoutMinutes adds value to the "session_timeout_minutes" field.
func (*ClaudeSessionUpdate) ClearConversationID ¶
func (_u *ClaudeSessionUpdate) ClearConversationID() *ClaudeSessionUpdate
ClearConversationID clears the value of the "conversation_id" field.
func (*ClaudeSessionUpdate) ClearLastAttached ¶
func (_u *ClaudeSessionUpdate) ClearLastAttached() *ClaudeSessionUpdate
ClearLastAttached clears the value of the "last_attached" field.
func (*ClaudeSessionUpdate) ClearMetadata ¶
func (_u *ClaudeSessionUpdate) ClearMetadata() *ClaudeSessionUpdate
ClearMetadata clears all "metadata" edges to the ClaudeMetadata entity.
func (*ClaudeSessionUpdate) ClearPreferredSessionName ¶
func (_u *ClaudeSessionUpdate) ClearPreferredSessionName() *ClaudeSessionUpdate
ClearPreferredSessionName clears the value of the "preferred_session_name" field.
func (*ClaudeSessionUpdate) ClearProjectName ¶
func (_u *ClaudeSessionUpdate) ClearProjectName() *ClaudeSessionUpdate
ClearProjectName clears the value of the "project_name" field.
func (*ClaudeSessionUpdate) ClearSession ¶
func (_u *ClaudeSessionUpdate) ClearSession() *ClaudeSessionUpdate
ClearSession clears the "session" edge to the Session entity.
func (*ClaudeSessionUpdate) Exec ¶
func (_u *ClaudeSessionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeSessionUpdate) ExecX ¶
func (_u *ClaudeSessionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeSessionUpdate) Mutation ¶
func (_u *ClaudeSessionUpdate) Mutation() *ClaudeSessionMutation
Mutation returns the ClaudeSessionMutation object of the builder.
func (*ClaudeSessionUpdate) RemoveMetadata ¶
func (_u *ClaudeSessionUpdate) RemoveMetadata(v ...*ClaudeMetadata) *ClaudeSessionUpdate
RemoveMetadata removes "metadata" edges to ClaudeMetadata entities.
func (*ClaudeSessionUpdate) RemoveMetadatumIDs ¶
func (_u *ClaudeSessionUpdate) RemoveMetadatumIDs(ids ...int) *ClaudeSessionUpdate
RemoveMetadatumIDs removes the "metadata" edge to ClaudeMetadata entities by IDs.
func (*ClaudeSessionUpdate) Save ¶
func (_u *ClaudeSessionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ClaudeSessionUpdate) SaveX ¶
func (_u *ClaudeSessionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ClaudeSessionUpdate) SetAutoReattach ¶
func (_u *ClaudeSessionUpdate) SetAutoReattach(v bool) *ClaudeSessionUpdate
SetAutoReattach sets the "auto_reattach" field.
func (*ClaudeSessionUpdate) SetClaudeSessionID ¶
func (_u *ClaudeSessionUpdate) SetClaudeSessionID(v string) *ClaudeSessionUpdate
SetClaudeSessionID sets the "claude_session_id" field.
func (*ClaudeSessionUpdate) SetConversationID ¶
func (_u *ClaudeSessionUpdate) SetConversationID(v string) *ClaudeSessionUpdate
SetConversationID sets the "conversation_id" field.
func (*ClaudeSessionUpdate) SetCreateNewOnMissing ¶
func (_u *ClaudeSessionUpdate) SetCreateNewOnMissing(v bool) *ClaudeSessionUpdate
SetCreateNewOnMissing sets the "create_new_on_missing" field.
func (*ClaudeSessionUpdate) SetLastAttached ¶
func (_u *ClaudeSessionUpdate) SetLastAttached(v time.Time) *ClaudeSessionUpdate
SetLastAttached sets the "last_attached" field.
func (*ClaudeSessionUpdate) SetNillableAutoReattach ¶
func (_u *ClaudeSessionUpdate) SetNillableAutoReattach(v *bool) *ClaudeSessionUpdate
SetNillableAutoReattach sets the "auto_reattach" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetNillableClaudeSessionID ¶
func (_u *ClaudeSessionUpdate) SetNillableClaudeSessionID(v *string) *ClaudeSessionUpdate
SetNillableClaudeSessionID sets the "claude_session_id" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetNillableConversationID ¶
func (_u *ClaudeSessionUpdate) SetNillableConversationID(v *string) *ClaudeSessionUpdate
SetNillableConversationID sets the "conversation_id" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetNillableCreateNewOnMissing ¶
func (_u *ClaudeSessionUpdate) SetNillableCreateNewOnMissing(v *bool) *ClaudeSessionUpdate
SetNillableCreateNewOnMissing sets the "create_new_on_missing" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetNillableLastAttached ¶
func (_u *ClaudeSessionUpdate) SetNillableLastAttached(v *time.Time) *ClaudeSessionUpdate
SetNillableLastAttached sets the "last_attached" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetNillablePreferredSessionName ¶
func (_u *ClaudeSessionUpdate) SetNillablePreferredSessionName(v *string) *ClaudeSessionUpdate
SetNillablePreferredSessionName sets the "preferred_session_name" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetNillableProjectName ¶
func (_u *ClaudeSessionUpdate) SetNillableProjectName(v *string) *ClaudeSessionUpdate
SetNillableProjectName sets the "project_name" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetNillableSessionTimeoutMinutes ¶
func (_u *ClaudeSessionUpdate) SetNillableSessionTimeoutMinutes(v *int) *ClaudeSessionUpdate
SetNillableSessionTimeoutMinutes sets the "session_timeout_minutes" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetNillableShowSessionSelector ¶
func (_u *ClaudeSessionUpdate) SetNillableShowSessionSelector(v *bool) *ClaudeSessionUpdate
SetNillableShowSessionSelector sets the "show_session_selector" field if the given value is not nil.
func (*ClaudeSessionUpdate) SetPreferredSessionName ¶
func (_u *ClaudeSessionUpdate) SetPreferredSessionName(v string) *ClaudeSessionUpdate
SetPreferredSessionName sets the "preferred_session_name" field.
func (*ClaudeSessionUpdate) SetProjectName ¶
func (_u *ClaudeSessionUpdate) SetProjectName(v string) *ClaudeSessionUpdate
SetProjectName sets the "project_name" field.
func (*ClaudeSessionUpdate) SetSession ¶
func (_u *ClaudeSessionUpdate) SetSession(v *Session) *ClaudeSessionUpdate
SetSession sets the "session" edge to the Session entity.
func (*ClaudeSessionUpdate) SetSessionID ¶
func (_u *ClaudeSessionUpdate) SetSessionID(id int) *ClaudeSessionUpdate
SetSessionID sets the "session" edge to the Session entity by ID.
func (*ClaudeSessionUpdate) SetSessionTimeoutMinutes ¶
func (_u *ClaudeSessionUpdate) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpdate
SetSessionTimeoutMinutes sets the "session_timeout_minutes" field.
func (*ClaudeSessionUpdate) SetShowSessionSelector ¶
func (_u *ClaudeSessionUpdate) SetShowSessionSelector(v bool) *ClaudeSessionUpdate
SetShowSessionSelector sets the "show_session_selector" field.
func (*ClaudeSessionUpdate) Where ¶
func (_u *ClaudeSessionUpdate) Where(ps ...predicate.ClaudeSession) *ClaudeSessionUpdate
Where appends a list predicates to the ClaudeSessionUpdate builder.
type ClaudeSessionUpdateOne ¶
type ClaudeSessionUpdateOne struct {
// contains filtered or unexported fields
}
ClaudeSessionUpdateOne is the builder for updating a single ClaudeSession entity.
func (*ClaudeSessionUpdateOne) AddMetadata ¶
func (_u *ClaudeSessionUpdateOne) AddMetadata(v ...*ClaudeMetadata) *ClaudeSessionUpdateOne
AddMetadata adds the "metadata" edges to the ClaudeMetadata entity.
func (*ClaudeSessionUpdateOne) AddMetadatumIDs ¶
func (_u *ClaudeSessionUpdateOne) AddMetadatumIDs(ids ...int) *ClaudeSessionUpdateOne
AddMetadatumIDs adds the "metadata" edge to the ClaudeMetadata entity by IDs.
func (*ClaudeSessionUpdateOne) AddSessionTimeoutMinutes ¶
func (_u *ClaudeSessionUpdateOne) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpdateOne
AddSessionTimeoutMinutes adds value to the "session_timeout_minutes" field.
func (*ClaudeSessionUpdateOne) ClearConversationID ¶
func (_u *ClaudeSessionUpdateOne) ClearConversationID() *ClaudeSessionUpdateOne
ClearConversationID clears the value of the "conversation_id" field.
func (*ClaudeSessionUpdateOne) ClearLastAttached ¶
func (_u *ClaudeSessionUpdateOne) ClearLastAttached() *ClaudeSessionUpdateOne
ClearLastAttached clears the value of the "last_attached" field.
func (*ClaudeSessionUpdateOne) ClearMetadata ¶
func (_u *ClaudeSessionUpdateOne) ClearMetadata() *ClaudeSessionUpdateOne
ClearMetadata clears all "metadata" edges to the ClaudeMetadata entity.
func (*ClaudeSessionUpdateOne) ClearPreferredSessionName ¶
func (_u *ClaudeSessionUpdateOne) ClearPreferredSessionName() *ClaudeSessionUpdateOne
ClearPreferredSessionName clears the value of the "preferred_session_name" field.
func (*ClaudeSessionUpdateOne) ClearProjectName ¶
func (_u *ClaudeSessionUpdateOne) ClearProjectName() *ClaudeSessionUpdateOne
ClearProjectName clears the value of the "project_name" field.
func (*ClaudeSessionUpdateOne) ClearSession ¶
func (_u *ClaudeSessionUpdateOne) ClearSession() *ClaudeSessionUpdateOne
ClearSession clears the "session" edge to the Session entity.
func (*ClaudeSessionUpdateOne) Exec ¶
func (_u *ClaudeSessionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ClaudeSessionUpdateOne) ExecX ¶
func (_u *ClaudeSessionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeSessionUpdateOne) Mutation ¶
func (_u *ClaudeSessionUpdateOne) Mutation() *ClaudeSessionMutation
Mutation returns the ClaudeSessionMutation object of the builder.
func (*ClaudeSessionUpdateOne) RemoveMetadata ¶
func (_u *ClaudeSessionUpdateOne) RemoveMetadata(v ...*ClaudeMetadata) *ClaudeSessionUpdateOne
RemoveMetadata removes "metadata" edges to ClaudeMetadata entities.
func (*ClaudeSessionUpdateOne) RemoveMetadatumIDs ¶
func (_u *ClaudeSessionUpdateOne) RemoveMetadatumIDs(ids ...int) *ClaudeSessionUpdateOne
RemoveMetadatumIDs removes the "metadata" edge to ClaudeMetadata entities by IDs.
func (*ClaudeSessionUpdateOne) Save ¶
func (_u *ClaudeSessionUpdateOne) Save(ctx context.Context) (*ClaudeSession, error)
Save executes the query and returns the updated ClaudeSession entity.
func (*ClaudeSessionUpdateOne) SaveX ¶
func (_u *ClaudeSessionUpdateOne) SaveX(ctx context.Context) *ClaudeSession
SaveX is like Save, but panics if an error occurs.
func (*ClaudeSessionUpdateOne) Select ¶
func (_u *ClaudeSessionUpdateOne) Select(field string, fields ...string) *ClaudeSessionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ClaudeSessionUpdateOne) SetAutoReattach ¶
func (_u *ClaudeSessionUpdateOne) SetAutoReattach(v bool) *ClaudeSessionUpdateOne
SetAutoReattach sets the "auto_reattach" field.
func (*ClaudeSessionUpdateOne) SetClaudeSessionID ¶
func (_u *ClaudeSessionUpdateOne) SetClaudeSessionID(v string) *ClaudeSessionUpdateOne
SetClaudeSessionID sets the "claude_session_id" field.
func (*ClaudeSessionUpdateOne) SetConversationID ¶
func (_u *ClaudeSessionUpdateOne) SetConversationID(v string) *ClaudeSessionUpdateOne
SetConversationID sets the "conversation_id" field.
func (*ClaudeSessionUpdateOne) SetCreateNewOnMissing ¶
func (_u *ClaudeSessionUpdateOne) SetCreateNewOnMissing(v bool) *ClaudeSessionUpdateOne
SetCreateNewOnMissing sets the "create_new_on_missing" field.
func (*ClaudeSessionUpdateOne) SetLastAttached ¶
func (_u *ClaudeSessionUpdateOne) SetLastAttached(v time.Time) *ClaudeSessionUpdateOne
SetLastAttached sets the "last_attached" field.
func (*ClaudeSessionUpdateOne) SetNillableAutoReattach ¶
func (_u *ClaudeSessionUpdateOne) SetNillableAutoReattach(v *bool) *ClaudeSessionUpdateOne
SetNillableAutoReattach sets the "auto_reattach" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetNillableClaudeSessionID ¶
func (_u *ClaudeSessionUpdateOne) SetNillableClaudeSessionID(v *string) *ClaudeSessionUpdateOne
SetNillableClaudeSessionID sets the "claude_session_id" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetNillableConversationID ¶
func (_u *ClaudeSessionUpdateOne) SetNillableConversationID(v *string) *ClaudeSessionUpdateOne
SetNillableConversationID sets the "conversation_id" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetNillableCreateNewOnMissing ¶
func (_u *ClaudeSessionUpdateOne) SetNillableCreateNewOnMissing(v *bool) *ClaudeSessionUpdateOne
SetNillableCreateNewOnMissing sets the "create_new_on_missing" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetNillableLastAttached ¶
func (_u *ClaudeSessionUpdateOne) SetNillableLastAttached(v *time.Time) *ClaudeSessionUpdateOne
SetNillableLastAttached sets the "last_attached" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetNillablePreferredSessionName ¶
func (_u *ClaudeSessionUpdateOne) SetNillablePreferredSessionName(v *string) *ClaudeSessionUpdateOne
SetNillablePreferredSessionName sets the "preferred_session_name" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetNillableProjectName ¶
func (_u *ClaudeSessionUpdateOne) SetNillableProjectName(v *string) *ClaudeSessionUpdateOne
SetNillableProjectName sets the "project_name" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetNillableSessionTimeoutMinutes ¶
func (_u *ClaudeSessionUpdateOne) SetNillableSessionTimeoutMinutes(v *int) *ClaudeSessionUpdateOne
SetNillableSessionTimeoutMinutes sets the "session_timeout_minutes" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetNillableShowSessionSelector ¶
func (_u *ClaudeSessionUpdateOne) SetNillableShowSessionSelector(v *bool) *ClaudeSessionUpdateOne
SetNillableShowSessionSelector sets the "show_session_selector" field if the given value is not nil.
func (*ClaudeSessionUpdateOne) SetPreferredSessionName ¶
func (_u *ClaudeSessionUpdateOne) SetPreferredSessionName(v string) *ClaudeSessionUpdateOne
SetPreferredSessionName sets the "preferred_session_name" field.
func (*ClaudeSessionUpdateOne) SetProjectName ¶
func (_u *ClaudeSessionUpdateOne) SetProjectName(v string) *ClaudeSessionUpdateOne
SetProjectName sets the "project_name" field.
func (*ClaudeSessionUpdateOne) SetSession ¶
func (_u *ClaudeSessionUpdateOne) SetSession(v *Session) *ClaudeSessionUpdateOne
SetSession sets the "session" edge to the Session entity.
func (*ClaudeSessionUpdateOne) SetSessionID ¶
func (_u *ClaudeSessionUpdateOne) SetSessionID(id int) *ClaudeSessionUpdateOne
SetSessionID sets the "session" edge to the Session entity by ID.
func (*ClaudeSessionUpdateOne) SetSessionTimeoutMinutes ¶
func (_u *ClaudeSessionUpdateOne) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpdateOne
SetSessionTimeoutMinutes sets the "session_timeout_minutes" field.
func (*ClaudeSessionUpdateOne) SetShowSessionSelector ¶
func (_u *ClaudeSessionUpdateOne) SetShowSessionSelector(v bool) *ClaudeSessionUpdateOne
SetShowSessionSelector sets the "show_session_selector" field.
func (*ClaudeSessionUpdateOne) Where ¶
func (_u *ClaudeSessionUpdateOne) Where(ps ...predicate.ClaudeSession) *ClaudeSessionUpdateOne
Where appends a list predicates to the ClaudeSessionUpdate builder.
type ClaudeSessionUpsert ¶ added in v1.12.0
ClaudeSessionUpsert is the "OnConflict" setter.
func (*ClaudeSessionUpsert) AddSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpsert
AddSessionTimeoutMinutes adds v to the "session_timeout_minutes" field.
func (*ClaudeSessionUpsert) ClearConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) ClearConversationID() *ClaudeSessionUpsert
ClearConversationID clears the value of the "conversation_id" field.
func (*ClaudeSessionUpsert) ClearLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) ClearLastAttached() *ClaudeSessionUpsert
ClearLastAttached clears the value of the "last_attached" field.
func (*ClaudeSessionUpsert) ClearPreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) ClearPreferredSessionName() *ClaudeSessionUpsert
ClearPreferredSessionName clears the value of the "preferred_session_name" field.
func (*ClaudeSessionUpsert) ClearProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) ClearProjectName() *ClaudeSessionUpsert
ClearProjectName clears the value of the "project_name" field.
func (*ClaudeSessionUpsert) SetAutoReattach ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetAutoReattach(v bool) *ClaudeSessionUpsert
SetAutoReattach sets the "auto_reattach" field.
func (*ClaudeSessionUpsert) SetClaudeSessionID ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetClaudeSessionID(v string) *ClaudeSessionUpsert
SetClaudeSessionID sets the "claude_session_id" field.
func (*ClaudeSessionUpsert) SetConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetConversationID(v string) *ClaudeSessionUpsert
SetConversationID sets the "conversation_id" field.
func (*ClaudeSessionUpsert) SetCreateNewOnMissing ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetCreateNewOnMissing(v bool) *ClaudeSessionUpsert
SetCreateNewOnMissing sets the "create_new_on_missing" field.
func (*ClaudeSessionUpsert) SetLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetLastAttached(v time.Time) *ClaudeSessionUpsert
SetLastAttached sets the "last_attached" field.
func (*ClaudeSessionUpsert) SetPreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetPreferredSessionName(v string) *ClaudeSessionUpsert
SetPreferredSessionName sets the "preferred_session_name" field.
func (*ClaudeSessionUpsert) SetProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetProjectName(v string) *ClaudeSessionUpsert
SetProjectName sets the "project_name" field.
func (*ClaudeSessionUpsert) SetSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpsert
SetSessionTimeoutMinutes sets the "session_timeout_minutes" field.
func (*ClaudeSessionUpsert) SetShowSessionSelector ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) SetShowSessionSelector(v bool) *ClaudeSessionUpsert
SetShowSessionSelector sets the "show_session_selector" field.
func (*ClaudeSessionUpsert) UpdateAutoReattach ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdateAutoReattach() *ClaudeSessionUpsert
UpdateAutoReattach sets the "auto_reattach" field to the value that was provided on create.
func (*ClaudeSessionUpsert) UpdateClaudeSessionID ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdateClaudeSessionID() *ClaudeSessionUpsert
UpdateClaudeSessionID sets the "claude_session_id" field to the value that was provided on create.
func (*ClaudeSessionUpsert) UpdateConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdateConversationID() *ClaudeSessionUpsert
UpdateConversationID sets the "conversation_id" field to the value that was provided on create.
func (*ClaudeSessionUpsert) UpdateCreateNewOnMissing ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdateCreateNewOnMissing() *ClaudeSessionUpsert
UpdateCreateNewOnMissing sets the "create_new_on_missing" field to the value that was provided on create.
func (*ClaudeSessionUpsert) UpdateLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdateLastAttached() *ClaudeSessionUpsert
UpdateLastAttached sets the "last_attached" field to the value that was provided on create.
func (*ClaudeSessionUpsert) UpdatePreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdatePreferredSessionName() *ClaudeSessionUpsert
UpdatePreferredSessionName sets the "preferred_session_name" field to the value that was provided on create.
func (*ClaudeSessionUpsert) UpdateProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdateProjectName() *ClaudeSessionUpsert
UpdateProjectName sets the "project_name" field to the value that was provided on create.
func (*ClaudeSessionUpsert) UpdateSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdateSessionTimeoutMinutes() *ClaudeSessionUpsert
UpdateSessionTimeoutMinutes sets the "session_timeout_minutes" field to the value that was provided on create.
func (*ClaudeSessionUpsert) UpdateShowSessionSelector ¶ added in v1.12.0
func (u *ClaudeSessionUpsert) UpdateShowSessionSelector() *ClaudeSessionUpsert
UpdateShowSessionSelector sets the "show_session_selector" field to the value that was provided on create.
type ClaudeSessionUpsertBulk ¶ added in v1.12.0
type ClaudeSessionUpsertBulk struct {
// contains filtered or unexported fields
}
ClaudeSessionUpsertBulk is the builder for "upsert"-ing a bulk of ClaudeSession nodes.
func (*ClaudeSessionUpsertBulk) AddSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpsertBulk
AddSessionTimeoutMinutes adds v to the "session_timeout_minutes" field.
func (*ClaudeSessionUpsertBulk) ClearConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) ClearConversationID() *ClaudeSessionUpsertBulk
ClearConversationID clears the value of the "conversation_id" field.
func (*ClaudeSessionUpsertBulk) ClearLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) ClearLastAttached() *ClaudeSessionUpsertBulk
ClearLastAttached clears the value of the "last_attached" field.
func (*ClaudeSessionUpsertBulk) ClearPreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) ClearPreferredSessionName() *ClaudeSessionUpsertBulk
ClearPreferredSessionName clears the value of the "preferred_session_name" field.
func (*ClaudeSessionUpsertBulk) ClearProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) ClearProjectName() *ClaudeSessionUpsertBulk
ClearProjectName clears the value of the "project_name" field.
func (*ClaudeSessionUpsertBulk) DoNothing ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) DoNothing() *ClaudeSessionUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ClaudeSessionUpsertBulk) Exec ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeSessionUpsertBulk) ExecX ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeSessionUpsertBulk) Ignore ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) Ignore() *ClaudeSessionUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ClaudeSession.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ClaudeSessionUpsertBulk) SetAutoReattach ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetAutoReattach(v bool) *ClaudeSessionUpsertBulk
SetAutoReattach sets the "auto_reattach" field.
func (*ClaudeSessionUpsertBulk) SetClaudeSessionID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetClaudeSessionID(v string) *ClaudeSessionUpsertBulk
SetClaudeSessionID sets the "claude_session_id" field.
func (*ClaudeSessionUpsertBulk) SetConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetConversationID(v string) *ClaudeSessionUpsertBulk
SetConversationID sets the "conversation_id" field.
func (*ClaudeSessionUpsertBulk) SetCreateNewOnMissing ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetCreateNewOnMissing(v bool) *ClaudeSessionUpsertBulk
SetCreateNewOnMissing sets the "create_new_on_missing" field.
func (*ClaudeSessionUpsertBulk) SetLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetLastAttached(v time.Time) *ClaudeSessionUpsertBulk
SetLastAttached sets the "last_attached" field.
func (*ClaudeSessionUpsertBulk) SetPreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetPreferredSessionName(v string) *ClaudeSessionUpsertBulk
SetPreferredSessionName sets the "preferred_session_name" field.
func (*ClaudeSessionUpsertBulk) SetProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetProjectName(v string) *ClaudeSessionUpsertBulk
SetProjectName sets the "project_name" field.
func (*ClaudeSessionUpsertBulk) SetSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpsertBulk
SetSessionTimeoutMinutes sets the "session_timeout_minutes" field.
func (*ClaudeSessionUpsertBulk) SetShowSessionSelector ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) SetShowSessionSelector(v bool) *ClaudeSessionUpsertBulk
SetShowSessionSelector sets the "show_session_selector" field.
func (*ClaudeSessionUpsertBulk) Update ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) Update(set func(*ClaudeSessionUpsert)) *ClaudeSessionUpsertBulk
Update allows overriding fields `UPDATE` values. See the ClaudeSessionCreateBulk.OnConflict documentation for more info.
func (*ClaudeSessionUpsertBulk) UpdateAutoReattach ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateAutoReattach() *ClaudeSessionUpsertBulk
UpdateAutoReattach sets the "auto_reattach" field to the value that was provided on create.
func (*ClaudeSessionUpsertBulk) UpdateClaudeSessionID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateClaudeSessionID() *ClaudeSessionUpsertBulk
UpdateClaudeSessionID sets the "claude_session_id" field to the value that was provided on create.
func (*ClaudeSessionUpsertBulk) UpdateConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateConversationID() *ClaudeSessionUpsertBulk
UpdateConversationID sets the "conversation_id" field to the value that was provided on create.
func (*ClaudeSessionUpsertBulk) UpdateCreateNewOnMissing ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateCreateNewOnMissing() *ClaudeSessionUpsertBulk
UpdateCreateNewOnMissing sets the "create_new_on_missing" field to the value that was provided on create.
func (*ClaudeSessionUpsertBulk) UpdateLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateLastAttached() *ClaudeSessionUpsertBulk
UpdateLastAttached sets the "last_attached" field to the value that was provided on create.
func (*ClaudeSessionUpsertBulk) UpdateNewValues ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateNewValues() *ClaudeSessionUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ClaudeSession.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ClaudeSessionUpsertBulk) UpdatePreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdatePreferredSessionName() *ClaudeSessionUpsertBulk
UpdatePreferredSessionName sets the "preferred_session_name" field to the value that was provided on create.
func (*ClaudeSessionUpsertBulk) UpdateProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateProjectName() *ClaudeSessionUpsertBulk
UpdateProjectName sets the "project_name" field to the value that was provided on create.
func (*ClaudeSessionUpsertBulk) UpdateSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateSessionTimeoutMinutes() *ClaudeSessionUpsertBulk
UpdateSessionTimeoutMinutes sets the "session_timeout_minutes" field to the value that was provided on create.
func (*ClaudeSessionUpsertBulk) UpdateShowSessionSelector ¶ added in v1.12.0
func (u *ClaudeSessionUpsertBulk) UpdateShowSessionSelector() *ClaudeSessionUpsertBulk
UpdateShowSessionSelector sets the "show_session_selector" field to the value that was provided on create.
type ClaudeSessionUpsertOne ¶ added in v1.12.0
type ClaudeSessionUpsertOne struct {
// contains filtered or unexported fields
}
ClaudeSessionUpsertOne is the builder for "upsert"-ing
one ClaudeSession node.
func (*ClaudeSessionUpsertOne) AddSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) AddSessionTimeoutMinutes(v int) *ClaudeSessionUpsertOne
AddSessionTimeoutMinutes adds v to the "session_timeout_minutes" field.
func (*ClaudeSessionUpsertOne) ClearConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) ClearConversationID() *ClaudeSessionUpsertOne
ClearConversationID clears the value of the "conversation_id" field.
func (*ClaudeSessionUpsertOne) ClearLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) ClearLastAttached() *ClaudeSessionUpsertOne
ClearLastAttached clears the value of the "last_attached" field.
func (*ClaudeSessionUpsertOne) ClearPreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) ClearPreferredSessionName() *ClaudeSessionUpsertOne
ClearPreferredSessionName clears the value of the "preferred_session_name" field.
func (*ClaudeSessionUpsertOne) ClearProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) ClearProjectName() *ClaudeSessionUpsertOne
ClearProjectName clears the value of the "project_name" field.
func (*ClaudeSessionUpsertOne) DoNothing ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) DoNothing() *ClaudeSessionUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ClaudeSessionUpsertOne) Exec ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ClaudeSessionUpsertOne) ExecX ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClaudeSessionUpsertOne) ID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ClaudeSessionUpsertOne) IDX ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ClaudeSessionUpsertOne) Ignore ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) Ignore() *ClaudeSessionUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.ClaudeSession.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*ClaudeSessionUpsertOne) SetAutoReattach ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetAutoReattach(v bool) *ClaudeSessionUpsertOne
SetAutoReattach sets the "auto_reattach" field.
func (*ClaudeSessionUpsertOne) SetClaudeSessionID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetClaudeSessionID(v string) *ClaudeSessionUpsertOne
SetClaudeSessionID sets the "claude_session_id" field.
func (*ClaudeSessionUpsertOne) SetConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetConversationID(v string) *ClaudeSessionUpsertOne
SetConversationID sets the "conversation_id" field.
func (*ClaudeSessionUpsertOne) SetCreateNewOnMissing ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetCreateNewOnMissing(v bool) *ClaudeSessionUpsertOne
SetCreateNewOnMissing sets the "create_new_on_missing" field.
func (*ClaudeSessionUpsertOne) SetLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetLastAttached(v time.Time) *ClaudeSessionUpsertOne
SetLastAttached sets the "last_attached" field.
func (*ClaudeSessionUpsertOne) SetPreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetPreferredSessionName(v string) *ClaudeSessionUpsertOne
SetPreferredSessionName sets the "preferred_session_name" field.
func (*ClaudeSessionUpsertOne) SetProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetProjectName(v string) *ClaudeSessionUpsertOne
SetProjectName sets the "project_name" field.
func (*ClaudeSessionUpsertOne) SetSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetSessionTimeoutMinutes(v int) *ClaudeSessionUpsertOne
SetSessionTimeoutMinutes sets the "session_timeout_minutes" field.
func (*ClaudeSessionUpsertOne) SetShowSessionSelector ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) SetShowSessionSelector(v bool) *ClaudeSessionUpsertOne
SetShowSessionSelector sets the "show_session_selector" field.
func (*ClaudeSessionUpsertOne) Update ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) Update(set func(*ClaudeSessionUpsert)) *ClaudeSessionUpsertOne
Update allows overriding fields `UPDATE` values. See the ClaudeSessionCreate.OnConflict documentation for more info.
func (*ClaudeSessionUpsertOne) UpdateAutoReattach ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateAutoReattach() *ClaudeSessionUpsertOne
UpdateAutoReattach sets the "auto_reattach" field to the value that was provided on create.
func (*ClaudeSessionUpsertOne) UpdateClaudeSessionID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateClaudeSessionID() *ClaudeSessionUpsertOne
UpdateClaudeSessionID sets the "claude_session_id" field to the value that was provided on create.
func (*ClaudeSessionUpsertOne) UpdateConversationID ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateConversationID() *ClaudeSessionUpsertOne
UpdateConversationID sets the "conversation_id" field to the value that was provided on create.
func (*ClaudeSessionUpsertOne) UpdateCreateNewOnMissing ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateCreateNewOnMissing() *ClaudeSessionUpsertOne
UpdateCreateNewOnMissing sets the "create_new_on_missing" field to the value that was provided on create.
func (*ClaudeSessionUpsertOne) UpdateLastAttached ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateLastAttached() *ClaudeSessionUpsertOne
UpdateLastAttached sets the "last_attached" field to the value that was provided on create.
func (*ClaudeSessionUpsertOne) UpdateNewValues ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateNewValues() *ClaudeSessionUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.ClaudeSession.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ClaudeSessionUpsertOne) UpdatePreferredSessionName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdatePreferredSessionName() *ClaudeSessionUpsertOne
UpdatePreferredSessionName sets the "preferred_session_name" field to the value that was provided on create.
func (*ClaudeSessionUpsertOne) UpdateProjectName ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateProjectName() *ClaudeSessionUpsertOne
UpdateProjectName sets the "project_name" field to the value that was provided on create.
func (*ClaudeSessionUpsertOne) UpdateSessionTimeoutMinutes ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateSessionTimeoutMinutes() *ClaudeSessionUpsertOne
UpdateSessionTimeoutMinutes sets the "session_timeout_minutes" field to the value that was provided on create.
func (*ClaudeSessionUpsertOne) UpdateShowSessionSelector ¶ added in v1.12.0
func (u *ClaudeSessionUpsertOne) UpdateShowSessionSelector() *ClaudeSessionUpsertOne
UpdateShowSessionSelector sets the "show_session_selector" field to the value that was provided on create.
type ClaudeSessions ¶
type ClaudeSessions []*ClaudeSession
ClaudeSessions is a parsable slice of ClaudeSession.
type Client ¶
type Client struct {
// Schema is the client for creating, migrating and dropping schema.
Schema *migrate.Schema
// ApprovalRule is the client for interacting with the ApprovalRule builders.
ApprovalRule *ApprovalRuleClient
// ClassificationAnalytics is the client for interacting with the ClassificationAnalytics builders.
ClassificationAnalytics *ClassificationAnalyticsClient
// ClaudeMetadata is the client for interacting with the ClaudeMetadata builders.
ClaudeMetadata *ClaudeMetadataClient
// ClaudeSession is the client for interacting with the ClaudeSession builders.
ClaudeSession *ClaudeSessionClient
// DiffStats is the client for interacting with the DiffStats builders.
DiffStats *DiffStatsClient
// Project is the client for interacting with the Project builders.
Project *ProjectClient
// Session is the client for interacting with the Session builders.
Session *SessionClient
// Tag is the client for interacting with the Tag builders.
Tag *TagClient
// Worktree is the client for interacting with the Worktree builders.
Worktree *WorktreeClient
// 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(). ApprovalRule. 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 DiffStats ¶
type DiffStats struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// Added holds the value of the "added" field.
Added int `json:"added,omitempty"`
// Removed holds the value of the "removed" field.
Removed int `json:"removed,omitempty"`
// Content holds the value of the "content" field.
Content string `json:"content,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the DiffStatsQuery when eager-loading is set.
Edges DiffStatsEdges `json:"edges"`
// contains filtered or unexported fields
}
DiffStats is the model entity for the DiffStats schema.
func (*DiffStats) QuerySession ¶
func (_m *DiffStats) QuerySession() *SessionQuery
QuerySession queries the "session" edge of the DiffStats entity.
func (*DiffStats) Unwrap ¶
Unwrap unwraps the DiffStats 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 (*DiffStats) Update ¶
func (_m *DiffStats) Update() *DiffStatsUpdateOne
Update returns a builder for updating this DiffStats. Note that you need to call DiffStats.Unwrap() before calling this method if this DiffStats was returned from a transaction, and the transaction was committed or rolled back.
type DiffStatsClient ¶
type DiffStatsClient struct {
// contains filtered or unexported fields
}
DiffStatsClient is a client for the DiffStats schema.
func NewDiffStatsClient ¶
func NewDiffStatsClient(c config) *DiffStatsClient
NewDiffStatsClient returns a client for the DiffStats from the given config.
func (*DiffStatsClient) Create ¶
func (c *DiffStatsClient) Create() *DiffStatsCreate
Create returns a builder for creating a DiffStats entity.
func (*DiffStatsClient) CreateBulk ¶
func (c *DiffStatsClient) CreateBulk(builders ...*DiffStatsCreate) *DiffStatsCreateBulk
CreateBulk returns a builder for creating a bulk of DiffStats entities.
func (*DiffStatsClient) Delete ¶
func (c *DiffStatsClient) Delete() *DiffStatsDelete
Delete returns a delete builder for DiffStats.
func (*DiffStatsClient) DeleteOne ¶
func (c *DiffStatsClient) DeleteOne(_m *DiffStats) *DiffStatsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*DiffStatsClient) DeleteOneID ¶
func (c *DiffStatsClient) DeleteOneID(id int) *DiffStatsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*DiffStatsClient) GetX ¶
func (c *DiffStatsClient) GetX(ctx context.Context, id int) *DiffStats
GetX is like Get, but panics if an error occurs.
func (*DiffStatsClient) Hooks ¶
func (c *DiffStatsClient) Hooks() []Hook
Hooks returns the client hooks.
func (*DiffStatsClient) Intercept ¶
func (c *DiffStatsClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `diffstats.Intercept(f(g(h())))`.
func (*DiffStatsClient) Interceptors ¶
func (c *DiffStatsClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*DiffStatsClient) MapCreateBulk ¶
func (c *DiffStatsClient) MapCreateBulk(slice any, setFunc func(*DiffStatsCreate, int)) *DiffStatsCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*DiffStatsClient) Query ¶
func (c *DiffStatsClient) Query() *DiffStatsQuery
Query returns a query builder for DiffStats.
func (*DiffStatsClient) QuerySession ¶
func (c *DiffStatsClient) QuerySession(_m *DiffStats) *SessionQuery
QuerySession queries the session edge of a DiffStats.
func (*DiffStatsClient) Update ¶
func (c *DiffStatsClient) Update() *DiffStatsUpdate
Update returns an update builder for DiffStats.
func (*DiffStatsClient) UpdateOne ¶
func (c *DiffStatsClient) UpdateOne(_m *DiffStats) *DiffStatsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*DiffStatsClient) UpdateOneID ¶
func (c *DiffStatsClient) UpdateOneID(id int) *DiffStatsUpdateOne
UpdateOneID returns an update builder for the given id.
func (*DiffStatsClient) Use ¶
func (c *DiffStatsClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `diffstats.Hooks(f(g(h())))`.
type DiffStatsCreate ¶
type DiffStatsCreate struct {
// contains filtered or unexported fields
}
DiffStatsCreate is the builder for creating a DiffStats entity.
func (*DiffStatsCreate) Exec ¶
func (_c *DiffStatsCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*DiffStatsCreate) ExecX ¶
func (_c *DiffStatsCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DiffStatsCreate) Mutation ¶
func (_c *DiffStatsCreate) Mutation() *DiffStatsMutation
Mutation returns the DiffStatsMutation object of the builder.
func (*DiffStatsCreate) OnConflict ¶ added in v1.12.0
func (_c *DiffStatsCreate) OnConflict(opts ...sql.ConflictOption) *DiffStatsUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DiffStats.Create().
SetAdded(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.DiffStatsUpsert) {
SetAdded(v+v).
}).
Exec(ctx)
func (*DiffStatsCreate) OnConflictColumns ¶ added in v1.12.0
func (_c *DiffStatsCreate) OnConflictColumns(columns ...string) *DiffStatsUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DiffStats.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*DiffStatsCreate) Save ¶
func (_c *DiffStatsCreate) Save(ctx context.Context) (*DiffStats, error)
Save creates the DiffStats in the database.
func (*DiffStatsCreate) SaveX ¶
func (_c *DiffStatsCreate) SaveX(ctx context.Context) *DiffStats
SaveX calls Save and panics if Save returns an error.
func (*DiffStatsCreate) SetAdded ¶
func (_c *DiffStatsCreate) SetAdded(v int) *DiffStatsCreate
SetAdded sets the "added" field.
func (*DiffStatsCreate) SetContent ¶
func (_c *DiffStatsCreate) SetContent(v string) *DiffStatsCreate
SetContent sets the "content" field.
func (*DiffStatsCreate) SetNillableAdded ¶
func (_c *DiffStatsCreate) SetNillableAdded(v *int) *DiffStatsCreate
SetNillableAdded sets the "added" field if the given value is not nil.
func (*DiffStatsCreate) SetNillableContent ¶
func (_c *DiffStatsCreate) SetNillableContent(v *string) *DiffStatsCreate
SetNillableContent sets the "content" field if the given value is not nil.
func (*DiffStatsCreate) SetNillableRemoved ¶
func (_c *DiffStatsCreate) SetNillableRemoved(v *int) *DiffStatsCreate
SetNillableRemoved sets the "removed" field if the given value is not nil.
func (*DiffStatsCreate) SetRemoved ¶
func (_c *DiffStatsCreate) SetRemoved(v int) *DiffStatsCreate
SetRemoved sets the "removed" field.
func (*DiffStatsCreate) SetSession ¶
func (_c *DiffStatsCreate) SetSession(v *Session) *DiffStatsCreate
SetSession sets the "session" edge to the Session entity.
func (*DiffStatsCreate) SetSessionID ¶
func (_c *DiffStatsCreate) SetSessionID(id int) *DiffStatsCreate
SetSessionID sets the "session" edge to the Session entity by ID.
type DiffStatsCreateBulk ¶
type DiffStatsCreateBulk struct {
// contains filtered or unexported fields
}
DiffStatsCreateBulk is the builder for creating many DiffStats entities in bulk.
func (*DiffStatsCreateBulk) Exec ¶
func (_c *DiffStatsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DiffStatsCreateBulk) ExecX ¶
func (_c *DiffStatsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DiffStatsCreateBulk) OnConflict ¶ added in v1.12.0
func (_c *DiffStatsCreateBulk) OnConflict(opts ...sql.ConflictOption) *DiffStatsUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.DiffStats.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.DiffStatsUpsert) {
SetAdded(v+v).
}).
Exec(ctx)
func (*DiffStatsCreateBulk) OnConflictColumns ¶ added in v1.12.0
func (_c *DiffStatsCreateBulk) OnConflictColumns(columns ...string) *DiffStatsUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.DiffStats.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type DiffStatsDelete ¶
type DiffStatsDelete struct {
// contains filtered or unexported fields
}
DiffStatsDelete is the builder for deleting a DiffStats entity.
func (*DiffStatsDelete) Exec ¶
func (_d *DiffStatsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*DiffStatsDelete) ExecX ¶
func (_d *DiffStatsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*DiffStatsDelete) Where ¶
func (_d *DiffStatsDelete) Where(ps ...predicate.DiffStats) *DiffStatsDelete
Where appends a list predicates to the DiffStatsDelete builder.
type DiffStatsDeleteOne ¶
type DiffStatsDeleteOne struct {
// contains filtered or unexported fields
}
DiffStatsDeleteOne is the builder for deleting a single DiffStats entity.
func (*DiffStatsDeleteOne) Exec ¶
func (_d *DiffStatsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*DiffStatsDeleteOne) ExecX ¶
func (_d *DiffStatsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DiffStatsDeleteOne) Where ¶
func (_d *DiffStatsDeleteOne) Where(ps ...predicate.DiffStats) *DiffStatsDeleteOne
Where appends a list predicates to the DiffStatsDelete builder.
type DiffStatsEdges ¶
type DiffStatsEdges struct {
// Session holds the value of the session edge.
Session *Session `json:"session,omitempty"`
// contains filtered or unexported fields
}
DiffStatsEdges holds the relations/edges for other nodes in the graph.
func (DiffStatsEdges) SessionOrErr ¶
func (e DiffStatsEdges) SessionOrErr() (*Session, error)
SessionOrErr returns the Session value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type DiffStatsGroupBy ¶
type DiffStatsGroupBy struct {
// contains filtered or unexported fields
}
DiffStatsGroupBy is the group-by builder for DiffStats entities.
func (*DiffStatsGroupBy) Aggregate ¶
func (_g *DiffStatsGroupBy) Aggregate(fns ...AggregateFunc) *DiffStatsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*DiffStatsGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DiffStatsGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DiffStatsGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DiffStatsGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DiffStatsGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DiffStatsGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DiffStatsGroupBy) Scan ¶
func (_g *DiffStatsGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DiffStatsGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DiffStatsMutation ¶
type DiffStatsMutation struct {
// contains filtered or unexported fields
}
DiffStatsMutation represents an operation that mutates the DiffStats nodes in the graph.
func (*DiffStatsMutation) AddAdded ¶
func (m *DiffStatsMutation) AddAdded(i int)
AddAdded adds i to the "added" field.
func (*DiffStatsMutation) AddField ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) AddRemoved ¶
func (m *DiffStatsMutation) AddRemoved(i int)
AddRemoved adds i to the "removed" field.
func (*DiffStatsMutation) Added ¶
func (m *DiffStatsMutation) Added() (r int, exists bool)
Added returns the value of the "added" field in the mutation.
func (*DiffStatsMutation) AddedAdded ¶
func (m *DiffStatsMutation) AddedAdded() (r int, exists bool)
AddedAdded returns the value that was added to the "added" field in this mutation.
func (*DiffStatsMutation) AddedEdges ¶
func (m *DiffStatsMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*DiffStatsMutation) AddedField ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) AddedFields ¶
func (m *DiffStatsMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*DiffStatsMutation) AddedIDs ¶
func (m *DiffStatsMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*DiffStatsMutation) AddedRemoved ¶
func (m *DiffStatsMutation) AddedRemoved() (r int, exists bool)
AddedRemoved returns the value that was added to the "removed" field in this mutation.
func (*DiffStatsMutation) ClearContent ¶
func (m *DiffStatsMutation) ClearContent()
ClearContent clears the value of the "content" field.
func (*DiffStatsMutation) ClearEdge ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) ClearField ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) ClearSession ¶
func (m *DiffStatsMutation) ClearSession()
ClearSession clears the "session" edge to the Session entity.
func (*DiffStatsMutation) ClearedEdges ¶
func (m *DiffStatsMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*DiffStatsMutation) ClearedFields ¶
func (m *DiffStatsMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (DiffStatsMutation) Client ¶
func (m DiffStatsMutation) 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 (*DiffStatsMutation) Content ¶
func (m *DiffStatsMutation) Content() (r string, exists bool)
Content returns the value of the "content" field in the mutation.
func (*DiffStatsMutation) ContentCleared ¶
func (m *DiffStatsMutation) ContentCleared() bool
ContentCleared returns if the "content" field was cleared in this mutation.
func (*DiffStatsMutation) EdgeCleared ¶
func (m *DiffStatsMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*DiffStatsMutation) Field ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) FieldCleared ¶
func (m *DiffStatsMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*DiffStatsMutation) Fields ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) ID ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) IDs ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) OldAdded ¶
func (m *DiffStatsMutation) OldAdded(ctx context.Context) (v int, err error)
OldAdded returns the old "added" field's value of the DiffStats entity. If the DiffStats object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DiffStatsMutation) OldContent ¶
func (m *DiffStatsMutation) OldContent(ctx context.Context) (v string, err error)
OldContent returns the old "content" field's value of the DiffStats entity. If the DiffStats object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DiffStatsMutation) 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 (*DiffStatsMutation) OldRemoved ¶
func (m *DiffStatsMutation) OldRemoved(ctx context.Context) (v int, err error)
OldRemoved returns the old "removed" field's value of the DiffStats entity. If the DiffStats object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*DiffStatsMutation) Removed ¶
func (m *DiffStatsMutation) Removed() (r int, exists bool)
Removed returns the value of the "removed" field in the mutation.
func (*DiffStatsMutation) RemovedEdges ¶
func (m *DiffStatsMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*DiffStatsMutation) RemovedIDs ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) ResetAdded ¶
func (m *DiffStatsMutation) ResetAdded()
ResetAdded resets all changes to the "added" field.
func (*DiffStatsMutation) ResetContent ¶
func (m *DiffStatsMutation) ResetContent()
ResetContent resets all changes to the "content" field.
func (*DiffStatsMutation) ResetEdge ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) ResetField ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) ResetRemoved ¶
func (m *DiffStatsMutation) ResetRemoved()
ResetRemoved resets all changes to the "removed" field.
func (*DiffStatsMutation) ResetSession ¶
func (m *DiffStatsMutation) ResetSession()
ResetSession resets all changes to the "session" edge.
func (*DiffStatsMutation) SessionCleared ¶
func (m *DiffStatsMutation) SessionCleared() bool
SessionCleared reports if the "session" edge to the Session entity was cleared.
func (*DiffStatsMutation) SessionID ¶
func (m *DiffStatsMutation) SessionID() (id int, exists bool)
SessionID returns the "session" edge ID in the mutation.
func (*DiffStatsMutation) SessionIDs ¶
func (m *DiffStatsMutation) SessionIDs() (ids []int)
SessionIDs returns the "session" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SessionID instead. It exists only for internal usage by the builders.
func (*DiffStatsMutation) SetAdded ¶
func (m *DiffStatsMutation) SetAdded(i int)
SetAdded sets the "added" field.
func (*DiffStatsMutation) SetContent ¶
func (m *DiffStatsMutation) SetContent(s string)
SetContent sets the "content" field.
func (*DiffStatsMutation) SetField ¶
func (m *DiffStatsMutation) 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 (*DiffStatsMutation) SetOp ¶
func (m *DiffStatsMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*DiffStatsMutation) SetRemoved ¶
func (m *DiffStatsMutation) SetRemoved(i int)
SetRemoved sets the "removed" field.
func (*DiffStatsMutation) SetSessionID ¶
func (m *DiffStatsMutation) SetSessionID(id int)
SetSessionID sets the "session" edge to the Session entity by id.
func (DiffStatsMutation) Tx ¶
func (m DiffStatsMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*DiffStatsMutation) Type ¶
func (m *DiffStatsMutation) Type() string
Type returns the node type of this mutation (DiffStats).
func (*DiffStatsMutation) Where ¶
func (m *DiffStatsMutation) Where(ps ...predicate.DiffStats)
Where appends a list predicates to the DiffStatsMutation builder.
func (*DiffStatsMutation) WhereP ¶
func (m *DiffStatsMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the DiffStatsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type DiffStatsQuery ¶
type DiffStatsQuery struct {
// contains filtered or unexported fields
}
DiffStatsQuery is the builder for querying DiffStats entities.
func (*DiffStatsQuery) Aggregate ¶
func (_q *DiffStatsQuery) Aggregate(fns ...AggregateFunc) *DiffStatsSelect
Aggregate returns a DiffStatsSelect configured with the given aggregations.
func (*DiffStatsQuery) All ¶
func (_q *DiffStatsQuery) All(ctx context.Context) ([]*DiffStats, error)
All executes the query and returns a list of DiffStatsSlice.
func (*DiffStatsQuery) AllX ¶
func (_q *DiffStatsQuery) AllX(ctx context.Context) []*DiffStats
AllX is like All, but panics if an error occurs.
func (*DiffStatsQuery) Clone ¶
func (_q *DiffStatsQuery) Clone() *DiffStatsQuery
Clone returns a duplicate of the DiffStatsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*DiffStatsQuery) Count ¶
func (_q *DiffStatsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*DiffStatsQuery) CountX ¶
func (_q *DiffStatsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*DiffStatsQuery) Exist ¶
func (_q *DiffStatsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*DiffStatsQuery) ExistX ¶
func (_q *DiffStatsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*DiffStatsQuery) First ¶
func (_q *DiffStatsQuery) First(ctx context.Context) (*DiffStats, error)
First returns the first DiffStats entity from the query. Returns a *NotFoundError when no DiffStats was found.
func (*DiffStatsQuery) FirstID ¶
func (_q *DiffStatsQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first DiffStats ID from the query. Returns a *NotFoundError when no DiffStats ID was found.
func (*DiffStatsQuery) FirstIDX ¶
func (_q *DiffStatsQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*DiffStatsQuery) FirstX ¶
func (_q *DiffStatsQuery) FirstX(ctx context.Context) *DiffStats
FirstX is like First, but panics if an error occurs.
func (*DiffStatsQuery) GroupBy ¶
func (_q *DiffStatsQuery) GroupBy(field string, fields ...string) *DiffStatsGroupBy
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 {
Added int `json:"added,omitempty"`
Count int `json:"count,omitempty"`
}
client.DiffStats.Query().
GroupBy(diffstats.FieldAdded).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*DiffStatsQuery) IDs ¶
func (_q *DiffStatsQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of DiffStats IDs.
func (*DiffStatsQuery) IDsX ¶
func (_q *DiffStatsQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*DiffStatsQuery) Limit ¶
func (_q *DiffStatsQuery) Limit(limit int) *DiffStatsQuery
Limit the number of records to be returned by this query.
func (*DiffStatsQuery) Offset ¶
func (_q *DiffStatsQuery) Offset(offset int) *DiffStatsQuery
Offset to start from.
func (*DiffStatsQuery) Only ¶
func (_q *DiffStatsQuery) Only(ctx context.Context) (*DiffStats, error)
Only returns a single DiffStats entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one DiffStats entity is found. Returns a *NotFoundError when no DiffStats entities are found.
func (*DiffStatsQuery) OnlyID ¶
func (_q *DiffStatsQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only DiffStats ID in the query. Returns a *NotSingularError when more than one DiffStats ID is found. Returns a *NotFoundError when no entities are found.
func (*DiffStatsQuery) OnlyIDX ¶
func (_q *DiffStatsQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*DiffStatsQuery) OnlyX ¶
func (_q *DiffStatsQuery) OnlyX(ctx context.Context) *DiffStats
OnlyX is like Only, but panics if an error occurs.
func (*DiffStatsQuery) Order ¶
func (_q *DiffStatsQuery) Order(o ...diffstats.OrderOption) *DiffStatsQuery
Order specifies how the records should be ordered.
func (*DiffStatsQuery) QuerySession ¶
func (_q *DiffStatsQuery) QuerySession() *SessionQuery
QuerySession chains the current query on the "session" edge.
func (*DiffStatsQuery) Select ¶
func (_q *DiffStatsQuery) Select(fields ...string) *DiffStatsSelect
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 {
Added int `json:"added,omitempty"`
}
client.DiffStats.Query().
Select(diffstats.FieldAdded).
Scan(ctx, &v)
func (*DiffStatsQuery) Unique ¶
func (_q *DiffStatsQuery) Unique(unique bool) *DiffStatsQuery
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 (*DiffStatsQuery) Where ¶
func (_q *DiffStatsQuery) Where(ps ...predicate.DiffStats) *DiffStatsQuery
Where adds a new predicate for the DiffStatsQuery builder.
func (*DiffStatsQuery) WithSession ¶
func (_q *DiffStatsQuery) WithSession(opts ...func(*SessionQuery)) *DiffStatsQuery
WithSession tells the query-builder to eager-load the nodes that are connected to the "session" edge. The optional arguments are used to configure the query builder of the edge.
type DiffStatsSelect ¶
type DiffStatsSelect struct {
*DiffStatsQuery
// contains filtered or unexported fields
}
DiffStatsSelect is the builder for selecting fields of DiffStats entities.
func (*DiffStatsSelect) Aggregate ¶
func (_s *DiffStatsSelect) Aggregate(fns ...AggregateFunc) *DiffStatsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*DiffStatsSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*DiffStatsSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*DiffStatsSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*DiffStatsSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*DiffStatsSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*DiffStatsSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*DiffStatsSelect) Scan ¶
func (_s *DiffStatsSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*DiffStatsSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type DiffStatsSlice ¶
type DiffStatsSlice []*DiffStats
DiffStatsSlice is a parsable slice of DiffStats.
type DiffStatsUpdate ¶
type DiffStatsUpdate struct {
// contains filtered or unexported fields
}
DiffStatsUpdate is the builder for updating DiffStats entities.
func (*DiffStatsUpdate) AddAdded ¶
func (_u *DiffStatsUpdate) AddAdded(v int) *DiffStatsUpdate
AddAdded adds value to the "added" field.
func (*DiffStatsUpdate) AddRemoved ¶
func (_u *DiffStatsUpdate) AddRemoved(v int) *DiffStatsUpdate
AddRemoved adds value to the "removed" field.
func (*DiffStatsUpdate) ClearContent ¶
func (_u *DiffStatsUpdate) ClearContent() *DiffStatsUpdate
ClearContent clears the value of the "content" field.
func (*DiffStatsUpdate) ClearSession ¶
func (_u *DiffStatsUpdate) ClearSession() *DiffStatsUpdate
ClearSession clears the "session" edge to the Session entity.
func (*DiffStatsUpdate) Exec ¶
func (_u *DiffStatsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*DiffStatsUpdate) ExecX ¶
func (_u *DiffStatsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DiffStatsUpdate) Mutation ¶
func (_u *DiffStatsUpdate) Mutation() *DiffStatsMutation
Mutation returns the DiffStatsMutation object of the builder.
func (*DiffStatsUpdate) Save ¶
func (_u *DiffStatsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*DiffStatsUpdate) SaveX ¶
func (_u *DiffStatsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*DiffStatsUpdate) SetAdded ¶
func (_u *DiffStatsUpdate) SetAdded(v int) *DiffStatsUpdate
SetAdded sets the "added" field.
func (*DiffStatsUpdate) SetContent ¶
func (_u *DiffStatsUpdate) SetContent(v string) *DiffStatsUpdate
SetContent sets the "content" field.
func (*DiffStatsUpdate) SetNillableAdded ¶
func (_u *DiffStatsUpdate) SetNillableAdded(v *int) *DiffStatsUpdate
SetNillableAdded sets the "added" field if the given value is not nil.
func (*DiffStatsUpdate) SetNillableContent ¶
func (_u *DiffStatsUpdate) SetNillableContent(v *string) *DiffStatsUpdate
SetNillableContent sets the "content" field if the given value is not nil.
func (*DiffStatsUpdate) SetNillableRemoved ¶
func (_u *DiffStatsUpdate) SetNillableRemoved(v *int) *DiffStatsUpdate
SetNillableRemoved sets the "removed" field if the given value is not nil.
func (*DiffStatsUpdate) SetRemoved ¶
func (_u *DiffStatsUpdate) SetRemoved(v int) *DiffStatsUpdate
SetRemoved sets the "removed" field.
func (*DiffStatsUpdate) SetSession ¶
func (_u *DiffStatsUpdate) SetSession(v *Session) *DiffStatsUpdate
SetSession sets the "session" edge to the Session entity.
func (*DiffStatsUpdate) SetSessionID ¶
func (_u *DiffStatsUpdate) SetSessionID(id int) *DiffStatsUpdate
SetSessionID sets the "session" edge to the Session entity by ID.
func (*DiffStatsUpdate) Where ¶
func (_u *DiffStatsUpdate) Where(ps ...predicate.DiffStats) *DiffStatsUpdate
Where appends a list predicates to the DiffStatsUpdate builder.
type DiffStatsUpdateOne ¶
type DiffStatsUpdateOne struct {
// contains filtered or unexported fields
}
DiffStatsUpdateOne is the builder for updating a single DiffStats entity.
func (*DiffStatsUpdateOne) AddAdded ¶
func (_u *DiffStatsUpdateOne) AddAdded(v int) *DiffStatsUpdateOne
AddAdded adds value to the "added" field.
func (*DiffStatsUpdateOne) AddRemoved ¶
func (_u *DiffStatsUpdateOne) AddRemoved(v int) *DiffStatsUpdateOne
AddRemoved adds value to the "removed" field.
func (*DiffStatsUpdateOne) ClearContent ¶
func (_u *DiffStatsUpdateOne) ClearContent() *DiffStatsUpdateOne
ClearContent clears the value of the "content" field.
func (*DiffStatsUpdateOne) ClearSession ¶
func (_u *DiffStatsUpdateOne) ClearSession() *DiffStatsUpdateOne
ClearSession clears the "session" edge to the Session entity.
func (*DiffStatsUpdateOne) Exec ¶
func (_u *DiffStatsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*DiffStatsUpdateOne) ExecX ¶
func (_u *DiffStatsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DiffStatsUpdateOne) Mutation ¶
func (_u *DiffStatsUpdateOne) Mutation() *DiffStatsMutation
Mutation returns the DiffStatsMutation object of the builder.
func (*DiffStatsUpdateOne) Save ¶
func (_u *DiffStatsUpdateOne) Save(ctx context.Context) (*DiffStats, error)
Save executes the query and returns the updated DiffStats entity.
func (*DiffStatsUpdateOne) SaveX ¶
func (_u *DiffStatsUpdateOne) SaveX(ctx context.Context) *DiffStats
SaveX is like Save, but panics if an error occurs.
func (*DiffStatsUpdateOne) Select ¶
func (_u *DiffStatsUpdateOne) Select(field string, fields ...string) *DiffStatsUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*DiffStatsUpdateOne) SetAdded ¶
func (_u *DiffStatsUpdateOne) SetAdded(v int) *DiffStatsUpdateOne
SetAdded sets the "added" field.
func (*DiffStatsUpdateOne) SetContent ¶
func (_u *DiffStatsUpdateOne) SetContent(v string) *DiffStatsUpdateOne
SetContent sets the "content" field.
func (*DiffStatsUpdateOne) SetNillableAdded ¶
func (_u *DiffStatsUpdateOne) SetNillableAdded(v *int) *DiffStatsUpdateOne
SetNillableAdded sets the "added" field if the given value is not nil.
func (*DiffStatsUpdateOne) SetNillableContent ¶
func (_u *DiffStatsUpdateOne) SetNillableContent(v *string) *DiffStatsUpdateOne
SetNillableContent sets the "content" field if the given value is not nil.
func (*DiffStatsUpdateOne) SetNillableRemoved ¶
func (_u *DiffStatsUpdateOne) SetNillableRemoved(v *int) *DiffStatsUpdateOne
SetNillableRemoved sets the "removed" field if the given value is not nil.
func (*DiffStatsUpdateOne) SetRemoved ¶
func (_u *DiffStatsUpdateOne) SetRemoved(v int) *DiffStatsUpdateOne
SetRemoved sets the "removed" field.
func (*DiffStatsUpdateOne) SetSession ¶
func (_u *DiffStatsUpdateOne) SetSession(v *Session) *DiffStatsUpdateOne
SetSession sets the "session" edge to the Session entity.
func (*DiffStatsUpdateOne) SetSessionID ¶
func (_u *DiffStatsUpdateOne) SetSessionID(id int) *DiffStatsUpdateOne
SetSessionID sets the "session" edge to the Session entity by ID.
func (*DiffStatsUpdateOne) Where ¶
func (_u *DiffStatsUpdateOne) Where(ps ...predicate.DiffStats) *DiffStatsUpdateOne
Where appends a list predicates to the DiffStatsUpdate builder.
type DiffStatsUpsert ¶ added in v1.12.0
DiffStatsUpsert is the "OnConflict" setter.
func (*DiffStatsUpsert) AddAdded ¶ added in v1.12.0
func (u *DiffStatsUpsert) AddAdded(v int) *DiffStatsUpsert
AddAdded adds v to the "added" field.
func (*DiffStatsUpsert) AddRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsert) AddRemoved(v int) *DiffStatsUpsert
AddRemoved adds v to the "removed" field.
func (*DiffStatsUpsert) ClearContent ¶ added in v1.12.0
func (u *DiffStatsUpsert) ClearContent() *DiffStatsUpsert
ClearContent clears the value of the "content" field.
func (*DiffStatsUpsert) SetAdded ¶ added in v1.12.0
func (u *DiffStatsUpsert) SetAdded(v int) *DiffStatsUpsert
SetAdded sets the "added" field.
func (*DiffStatsUpsert) SetContent ¶ added in v1.12.0
func (u *DiffStatsUpsert) SetContent(v string) *DiffStatsUpsert
SetContent sets the "content" field.
func (*DiffStatsUpsert) SetRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsert) SetRemoved(v int) *DiffStatsUpsert
SetRemoved sets the "removed" field.
func (*DiffStatsUpsert) UpdateAdded ¶ added in v1.12.0
func (u *DiffStatsUpsert) UpdateAdded() *DiffStatsUpsert
UpdateAdded sets the "added" field to the value that was provided on create.
func (*DiffStatsUpsert) UpdateContent ¶ added in v1.12.0
func (u *DiffStatsUpsert) UpdateContent() *DiffStatsUpsert
UpdateContent sets the "content" field to the value that was provided on create.
func (*DiffStatsUpsert) UpdateRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsert) UpdateRemoved() *DiffStatsUpsert
UpdateRemoved sets the "removed" field to the value that was provided on create.
type DiffStatsUpsertBulk ¶ added in v1.12.0
type DiffStatsUpsertBulk struct {
// contains filtered or unexported fields
}
DiffStatsUpsertBulk is the builder for "upsert"-ing a bulk of DiffStats nodes.
func (*DiffStatsUpsertBulk) AddAdded ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) AddAdded(v int) *DiffStatsUpsertBulk
AddAdded adds v to the "added" field.
func (*DiffStatsUpsertBulk) AddRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) AddRemoved(v int) *DiffStatsUpsertBulk
AddRemoved adds v to the "removed" field.
func (*DiffStatsUpsertBulk) ClearContent ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) ClearContent() *DiffStatsUpsertBulk
ClearContent clears the value of the "content" field.
func (*DiffStatsUpsertBulk) DoNothing ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) DoNothing() *DiffStatsUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DiffStatsUpsertBulk) Exec ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*DiffStatsUpsertBulk) ExecX ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DiffStatsUpsertBulk) Ignore ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) Ignore() *DiffStatsUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DiffStats.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*DiffStatsUpsertBulk) SetAdded ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) SetAdded(v int) *DiffStatsUpsertBulk
SetAdded sets the "added" field.
func (*DiffStatsUpsertBulk) SetContent ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) SetContent(v string) *DiffStatsUpsertBulk
SetContent sets the "content" field.
func (*DiffStatsUpsertBulk) SetRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) SetRemoved(v int) *DiffStatsUpsertBulk
SetRemoved sets the "removed" field.
func (*DiffStatsUpsertBulk) Update ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) Update(set func(*DiffStatsUpsert)) *DiffStatsUpsertBulk
Update allows overriding fields `UPDATE` values. See the DiffStatsCreateBulk.OnConflict documentation for more info.
func (*DiffStatsUpsertBulk) UpdateAdded ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) UpdateAdded() *DiffStatsUpsertBulk
UpdateAdded sets the "added" field to the value that was provided on create.
func (*DiffStatsUpsertBulk) UpdateContent ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) UpdateContent() *DiffStatsUpsertBulk
UpdateContent sets the "content" field to the value that was provided on create.
func (*DiffStatsUpsertBulk) UpdateNewValues ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) UpdateNewValues() *DiffStatsUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DiffStats.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*DiffStatsUpsertBulk) UpdateRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsertBulk) UpdateRemoved() *DiffStatsUpsertBulk
UpdateRemoved sets the "removed" field to the value that was provided on create.
type DiffStatsUpsertOne ¶ added in v1.12.0
type DiffStatsUpsertOne struct {
// contains filtered or unexported fields
}
DiffStatsUpsertOne is the builder for "upsert"-ing
one DiffStats node.
func (*DiffStatsUpsertOne) AddAdded ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) AddAdded(v int) *DiffStatsUpsertOne
AddAdded adds v to the "added" field.
func (*DiffStatsUpsertOne) AddRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) AddRemoved(v int) *DiffStatsUpsertOne
AddRemoved adds v to the "removed" field.
func (*DiffStatsUpsertOne) ClearContent ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) ClearContent() *DiffStatsUpsertOne
ClearContent clears the value of the "content" field.
func (*DiffStatsUpsertOne) DoNothing ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) DoNothing() *DiffStatsUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*DiffStatsUpsertOne) Exec ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*DiffStatsUpsertOne) ExecX ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*DiffStatsUpsertOne) ID ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*DiffStatsUpsertOne) IDX ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*DiffStatsUpsertOne) Ignore ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) Ignore() *DiffStatsUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.DiffStats.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*DiffStatsUpsertOne) SetAdded ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) SetAdded(v int) *DiffStatsUpsertOne
SetAdded sets the "added" field.
func (*DiffStatsUpsertOne) SetContent ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) SetContent(v string) *DiffStatsUpsertOne
SetContent sets the "content" field.
func (*DiffStatsUpsertOne) SetRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) SetRemoved(v int) *DiffStatsUpsertOne
SetRemoved sets the "removed" field.
func (*DiffStatsUpsertOne) Update ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) Update(set func(*DiffStatsUpsert)) *DiffStatsUpsertOne
Update allows overriding fields `UPDATE` values. See the DiffStatsCreate.OnConflict documentation for more info.
func (*DiffStatsUpsertOne) UpdateAdded ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) UpdateAdded() *DiffStatsUpsertOne
UpdateAdded sets the "added" field to the value that was provided on create.
func (*DiffStatsUpsertOne) UpdateContent ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) UpdateContent() *DiffStatsUpsertOne
UpdateContent sets the "content" field to the value that was provided on create.
func (*DiffStatsUpsertOne) UpdateNewValues ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) UpdateNewValues() *DiffStatsUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.DiffStats.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*DiffStatsUpsertOne) UpdateRemoved ¶ added in v1.12.0
func (u *DiffStatsUpsertOne) UpdateRemoved() *DiffStatsUpsertOne
UpdateRemoved sets the "removed" field to the value that was provided on create.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type Project ¶ added in v1.23.0
type Project struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// Description holds the value of the "description" field.
Description string `json:"description,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the ProjectQuery when eager-loading is set.
Edges ProjectEdges `json:"edges"`
// contains filtered or unexported fields
}
Project is the model entity for the Project schema.
func (*Project) QuerySessions ¶ added in v1.23.0
func (_m *Project) QuerySessions() *SessionQuery
QuerySessions queries the "sessions" edge of the Project entity.
func (*Project) Unwrap ¶ added in v1.23.0
Unwrap unwraps the Project 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 (*Project) Update ¶ added in v1.23.0
func (_m *Project) Update() *ProjectUpdateOne
Update returns a builder for updating this Project. Note that you need to call Project.Unwrap() before calling this method if this Project was returned from a transaction, and the transaction was committed or rolled back.
type ProjectClient ¶ added in v1.23.0
type ProjectClient struct {
// contains filtered or unexported fields
}
ProjectClient is a client for the Project schema.
func NewProjectClient ¶ added in v1.23.0
func NewProjectClient(c config) *ProjectClient
NewProjectClient returns a client for the Project from the given config.
func (*ProjectClient) Create ¶ added in v1.23.0
func (c *ProjectClient) Create() *ProjectCreate
Create returns a builder for creating a Project entity.
func (*ProjectClient) CreateBulk ¶ added in v1.23.0
func (c *ProjectClient) CreateBulk(builders ...*ProjectCreate) *ProjectCreateBulk
CreateBulk returns a builder for creating a bulk of Project entities.
func (*ProjectClient) Delete ¶ added in v1.23.0
func (c *ProjectClient) Delete() *ProjectDelete
Delete returns a delete builder for Project.
func (*ProjectClient) DeleteOne ¶ added in v1.23.0
func (c *ProjectClient) DeleteOne(_m *Project) *ProjectDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProjectClient) DeleteOneID ¶ added in v1.23.0
func (c *ProjectClient) DeleteOneID(id int) *ProjectDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProjectClient) GetX ¶ added in v1.23.0
func (c *ProjectClient) GetX(ctx context.Context, id int) *Project
GetX is like Get, but panics if an error occurs.
func (*ProjectClient) Hooks ¶ added in v1.23.0
func (c *ProjectClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProjectClient) Intercept ¶ added in v1.23.0
func (c *ProjectClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `project.Intercept(f(g(h())))`.
func (*ProjectClient) Interceptors ¶ added in v1.23.0
func (c *ProjectClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ProjectClient) MapCreateBulk ¶ added in v1.23.0
func (c *ProjectClient) MapCreateBulk(slice any, setFunc func(*ProjectCreate, int)) *ProjectCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*ProjectClient) Query ¶ added in v1.23.0
func (c *ProjectClient) Query() *ProjectQuery
Query returns a query builder for Project.
func (*ProjectClient) QuerySessions ¶ added in v1.23.0
func (c *ProjectClient) QuerySessions(_m *Project) *SessionQuery
QuerySessions queries the sessions edge of a Project.
func (*ProjectClient) Update ¶ added in v1.23.0
func (c *ProjectClient) Update() *ProjectUpdate
Update returns an update builder for Project.
func (*ProjectClient) UpdateOne ¶ added in v1.23.0
func (c *ProjectClient) UpdateOne(_m *Project) *ProjectUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProjectClient) UpdateOneID ¶ added in v1.23.0
func (c *ProjectClient) UpdateOneID(id int) *ProjectUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProjectClient) Use ¶ added in v1.23.0
func (c *ProjectClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `project.Hooks(f(g(h())))`.
type ProjectCreate ¶ added in v1.23.0
type ProjectCreate struct {
// contains filtered or unexported fields
}
ProjectCreate is the builder for creating a Project entity.
func (*ProjectCreate) AddSessionIDs ¶ added in v1.23.0
func (_c *ProjectCreate) AddSessionIDs(ids ...int) *ProjectCreate
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*ProjectCreate) AddSessions ¶ added in v1.23.0
func (_c *ProjectCreate) AddSessions(v ...*Session) *ProjectCreate
AddSessions adds the "sessions" edges to the Session entity.
func (*ProjectCreate) Exec ¶ added in v1.23.0
func (_c *ProjectCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProjectCreate) ExecX ¶ added in v1.23.0
func (_c *ProjectCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectCreate) Mutation ¶ added in v1.23.0
func (_c *ProjectCreate) Mutation() *ProjectMutation
Mutation returns the ProjectMutation object of the builder.
func (*ProjectCreate) OnConflict ¶ added in v1.23.0
func (_c *ProjectCreate) OnConflict(opts ...sql.ConflictOption) *ProjectUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Project.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.ProjectUpsert) {
SetName(v+v).
}).
Exec(ctx)
func (*ProjectCreate) OnConflictColumns ¶ added in v1.23.0
func (_c *ProjectCreate) OnConflictColumns(columns ...string) *ProjectUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Project.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*ProjectCreate) Save ¶ added in v1.23.0
func (_c *ProjectCreate) Save(ctx context.Context) (*Project, error)
Save creates the Project in the database.
func (*ProjectCreate) SaveX ¶ added in v1.23.0
func (_c *ProjectCreate) SaveX(ctx context.Context) *Project
SaveX calls Save and panics if Save returns an error.
func (*ProjectCreate) SetCreatedAt ¶ added in v1.23.0
func (_c *ProjectCreate) SetCreatedAt(v time.Time) *ProjectCreate
SetCreatedAt sets the "created_at" field.
func (*ProjectCreate) SetDescription ¶ added in v1.23.0
func (_c *ProjectCreate) SetDescription(v string) *ProjectCreate
SetDescription sets the "description" field.
func (*ProjectCreate) SetName ¶ added in v1.23.0
func (_c *ProjectCreate) SetName(v string) *ProjectCreate
SetName sets the "name" field.
func (*ProjectCreate) SetNillableCreatedAt ¶ added in v1.23.0
func (_c *ProjectCreate) SetNillableCreatedAt(v *time.Time) *ProjectCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProjectCreate) SetNillableDescription ¶ added in v1.23.0
func (_c *ProjectCreate) SetNillableDescription(v *string) *ProjectCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*ProjectCreate) SetNillableUpdatedAt ¶ added in v1.23.0
func (_c *ProjectCreate) SetNillableUpdatedAt(v *time.Time) *ProjectCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProjectCreate) SetUpdatedAt ¶ added in v1.23.0
func (_c *ProjectCreate) SetUpdatedAt(v time.Time) *ProjectCreate
SetUpdatedAt sets the "updated_at" field.
type ProjectCreateBulk ¶ added in v1.23.0
type ProjectCreateBulk struct {
// contains filtered or unexported fields
}
ProjectCreateBulk is the builder for creating many Project entities in bulk.
func (*ProjectCreateBulk) Exec ¶ added in v1.23.0
func (_c *ProjectCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProjectCreateBulk) ExecX ¶ added in v1.23.0
func (_c *ProjectCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectCreateBulk) OnConflict ¶ added in v1.23.0
func (_c *ProjectCreateBulk) OnConflict(opts ...sql.ConflictOption) *ProjectUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Project.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.ProjectUpsert) {
SetName(v+v).
}).
Exec(ctx)
func (*ProjectCreateBulk) OnConflictColumns ¶ added in v1.23.0
func (_c *ProjectCreateBulk) OnConflictColumns(columns ...string) *ProjectUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Project.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type ProjectDelete ¶ added in v1.23.0
type ProjectDelete struct {
// contains filtered or unexported fields
}
ProjectDelete is the builder for deleting a Project entity.
func (*ProjectDelete) Exec ¶ added in v1.23.0
func (_d *ProjectDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProjectDelete) ExecX ¶ added in v1.23.0
func (_d *ProjectDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProjectDelete) Where ¶ added in v1.23.0
func (_d *ProjectDelete) Where(ps ...predicate.Project) *ProjectDelete
Where appends a list predicates to the ProjectDelete builder.
type ProjectDeleteOne ¶ added in v1.23.0
type ProjectDeleteOne struct {
// contains filtered or unexported fields
}
ProjectDeleteOne is the builder for deleting a single Project entity.
func (*ProjectDeleteOne) Exec ¶ added in v1.23.0
func (_d *ProjectDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProjectDeleteOne) ExecX ¶ added in v1.23.0
func (_d *ProjectDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectDeleteOne) Where ¶ added in v1.23.0
func (_d *ProjectDeleteOne) Where(ps ...predicate.Project) *ProjectDeleteOne
Where appends a list predicates to the ProjectDelete builder.
type ProjectEdges ¶ added in v1.23.0
type ProjectEdges struct {
// Sessions holds the value of the sessions edge.
Sessions []*Session `json:"sessions,omitempty"`
// contains filtered or unexported fields
}
ProjectEdges holds the relations/edges for other nodes in the graph.
func (ProjectEdges) SessionsOrErr ¶ added in v1.23.0
func (e ProjectEdges) SessionsOrErr() ([]*Session, error)
SessionsOrErr returns the Sessions value or an error if the edge was not loaded in eager-loading.
type ProjectGroupBy ¶ added in v1.23.0
type ProjectGroupBy struct {
// contains filtered or unexported fields
}
ProjectGroupBy is the group-by builder for Project entities.
func (*ProjectGroupBy) Aggregate ¶ added in v1.23.0
func (_g *ProjectGroupBy) Aggregate(fns ...AggregateFunc) *ProjectGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProjectGroupBy) Bool ¶ added in v1.23.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Bools ¶ added in v1.23.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) BoolsX ¶ added in v1.23.0
BoolsX is like Bools, but panics if an error occurs.
func (*ProjectGroupBy) Float64 ¶ added in v1.23.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Float64X ¶ added in v1.23.0
Float64X is like Float64, but panics if an error occurs.
func (*ProjectGroupBy) Float64s ¶ added in v1.23.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Float64sX ¶ added in v1.23.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ProjectGroupBy) Int ¶ added in v1.23.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Ints ¶ added in v1.23.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Scan ¶ added in v1.23.0
func (_g *ProjectGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProjectGroupBy) String ¶ added in v1.23.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) StringX ¶ added in v1.23.0
StringX is like String, but panics if an error occurs.
type ProjectMutation ¶ added in v1.23.0
type ProjectMutation struct {
// contains filtered or unexported fields
}
ProjectMutation represents an operation that mutates the Project nodes in the graph.
func (*ProjectMutation) AddField ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) AddSessionIDs ¶ added in v1.23.0
func (m *ProjectMutation) AddSessionIDs(ids ...int)
AddSessionIDs adds the "sessions" edge to the Session entity by ids.
func (*ProjectMutation) AddedEdges ¶ added in v1.23.0
func (m *ProjectMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProjectMutation) AddedField ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) AddedFields ¶ added in v1.23.0
func (m *ProjectMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProjectMutation) AddedIDs ¶ added in v1.23.0
func (m *ProjectMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProjectMutation) ClearDescription ¶ added in v1.23.0
func (m *ProjectMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*ProjectMutation) ClearEdge ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) ClearField ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) ClearSessions ¶ added in v1.23.0
func (m *ProjectMutation) ClearSessions()
ClearSessions clears the "sessions" edge to the Session entity.
func (*ProjectMutation) ClearedEdges ¶ added in v1.23.0
func (m *ProjectMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProjectMutation) ClearedFields ¶ added in v1.23.0
func (m *ProjectMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProjectMutation) Client ¶ added in v1.23.0
func (m ProjectMutation) 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 (*ProjectMutation) CreatedAt ¶ added in v1.23.0
func (m *ProjectMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProjectMutation) Description ¶ added in v1.23.0
func (m *ProjectMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*ProjectMutation) DescriptionCleared ¶ added in v1.23.0
func (m *ProjectMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*ProjectMutation) EdgeCleared ¶ added in v1.23.0
func (m *ProjectMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProjectMutation) Field ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) FieldCleared ¶ added in v1.23.0
func (m *ProjectMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProjectMutation) Fields ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) ID ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) IDs ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) Name ¶ added in v1.23.0
func (m *ProjectMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*ProjectMutation) OldCreatedAt ¶ added in v1.23.0
OldCreatedAt returns the old "created_at" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldDescription ¶ added in v1.23.0
func (m *ProjectMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldField ¶ added in v1.23.0
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 (*ProjectMutation) OldName ¶ added in v1.23.0
func (m *ProjectMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldUpdatedAt ¶ added in v1.23.0
OldUpdatedAt returns the old "updated_at" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) Op ¶ added in v1.23.0
func (m *ProjectMutation) Op() Op
Op returns the operation name.
func (*ProjectMutation) RemoveSessionIDs ¶ added in v1.23.0
func (m *ProjectMutation) RemoveSessionIDs(ids ...int)
RemoveSessionIDs removes the "sessions" edge to the Session entity by IDs.
func (*ProjectMutation) RemovedEdges ¶ added in v1.23.0
func (m *ProjectMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProjectMutation) RemovedIDs ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) RemovedSessionsIDs ¶ added in v1.23.0
func (m *ProjectMutation) RemovedSessionsIDs() (ids []int)
RemovedSessions returns the removed IDs of the "sessions" edge to the Session entity.
func (*ProjectMutation) ResetCreatedAt ¶ added in v1.23.0
func (m *ProjectMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProjectMutation) ResetDescription ¶ added in v1.23.0
func (m *ProjectMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*ProjectMutation) ResetEdge ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) ResetField ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) ResetName ¶ added in v1.23.0
func (m *ProjectMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*ProjectMutation) ResetSessions ¶ added in v1.23.0
func (m *ProjectMutation) ResetSessions()
ResetSessions resets all changes to the "sessions" edge.
func (*ProjectMutation) ResetUpdatedAt ¶ added in v1.23.0
func (m *ProjectMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProjectMutation) SessionsCleared ¶ added in v1.23.0
func (m *ProjectMutation) SessionsCleared() bool
SessionsCleared reports if the "sessions" edge to the Session entity was cleared.
func (*ProjectMutation) SessionsIDs ¶ added in v1.23.0
func (m *ProjectMutation) SessionsIDs() (ids []int)
SessionsIDs returns the "sessions" edge IDs in the mutation.
func (*ProjectMutation) SetCreatedAt ¶ added in v1.23.0
func (m *ProjectMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProjectMutation) SetDescription ¶ added in v1.23.0
func (m *ProjectMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*ProjectMutation) SetField ¶ added in v1.23.0
func (m *ProjectMutation) 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 (*ProjectMutation) SetName ¶ added in v1.23.0
func (m *ProjectMutation) SetName(s string)
SetName sets the "name" field.
func (*ProjectMutation) SetOp ¶ added in v1.23.0
func (m *ProjectMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ProjectMutation) SetUpdatedAt ¶ added in v1.23.0
func (m *ProjectMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (ProjectMutation) Tx ¶ added in v1.23.0
func (m ProjectMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProjectMutation) Type ¶ added in v1.23.0
func (m *ProjectMutation) Type() string
Type returns the node type of this mutation (Project).
func (*ProjectMutation) UpdatedAt ¶ added in v1.23.0
func (m *ProjectMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProjectMutation) Where ¶ added in v1.23.0
func (m *ProjectMutation) Where(ps ...predicate.Project)
Where appends a list predicates to the ProjectMutation builder.
func (*ProjectMutation) WhereP ¶ added in v1.23.0
func (m *ProjectMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ProjectMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ProjectQuery ¶ added in v1.23.0
type ProjectQuery struct {
// contains filtered or unexported fields
}
ProjectQuery is the builder for querying Project entities.
func (*ProjectQuery) Aggregate ¶ added in v1.23.0
func (_q *ProjectQuery) Aggregate(fns ...AggregateFunc) *ProjectSelect
Aggregate returns a ProjectSelect configured with the given aggregations.
func (*ProjectQuery) All ¶ added in v1.23.0
func (_q *ProjectQuery) All(ctx context.Context) ([]*Project, error)
All executes the query and returns a list of Projects.
func (*ProjectQuery) AllX ¶ added in v1.23.0
func (_q *ProjectQuery) AllX(ctx context.Context) []*Project
AllX is like All, but panics if an error occurs.
func (*ProjectQuery) Clone ¶ added in v1.23.0
func (_q *ProjectQuery) Clone() *ProjectQuery
Clone returns a duplicate of the ProjectQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProjectQuery) Count ¶ added in v1.23.0
func (_q *ProjectQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProjectQuery) CountX ¶ added in v1.23.0
func (_q *ProjectQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProjectQuery) Exist ¶ added in v1.23.0
func (_q *ProjectQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProjectQuery) ExistX ¶ added in v1.23.0
func (_q *ProjectQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProjectQuery) First ¶ added in v1.23.0
func (_q *ProjectQuery) First(ctx context.Context) (*Project, error)
First returns the first Project entity from the query. Returns a *NotFoundError when no Project was found.
func (*ProjectQuery) FirstID ¶ added in v1.23.0
func (_q *ProjectQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Project ID from the query. Returns a *NotFoundError when no Project ID was found.
func (*ProjectQuery) FirstIDX ¶ added in v1.23.0
func (_q *ProjectQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProjectQuery) FirstX ¶ added in v1.23.0
func (_q *ProjectQuery) FirstX(ctx context.Context) *Project
FirstX is like First, but panics if an error occurs.
func (*ProjectQuery) GroupBy ¶ added in v1.23.0
func (_q *ProjectQuery) GroupBy(field string, fields ...string) *ProjectGroupBy
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.Project.Query().
GroupBy(project.FieldName).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*ProjectQuery) IDs ¶ added in v1.23.0
func (_q *ProjectQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Project IDs.
func (*ProjectQuery) IDsX ¶ added in v1.23.0
func (_q *ProjectQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ProjectQuery) Limit ¶ added in v1.23.0
func (_q *ProjectQuery) Limit(limit int) *ProjectQuery
Limit the number of records to be returned by this query.
func (*ProjectQuery) Offset ¶ added in v1.23.0
func (_q *ProjectQuery) Offset(offset int) *ProjectQuery
Offset to start from.
func (*ProjectQuery) Only ¶ added in v1.23.0
func (_q *ProjectQuery) Only(ctx context.Context) (*Project, error)
Only returns a single Project entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Project entity is found. Returns a *NotFoundError when no Project entities are found.
func (*ProjectQuery) OnlyID ¶ added in v1.23.0
func (_q *ProjectQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Project ID in the query. Returns a *NotSingularError when more than one Project ID is found. Returns a *NotFoundError when no entities are found.
func (*ProjectQuery) OnlyIDX ¶ added in v1.23.0
func (_q *ProjectQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProjectQuery) OnlyX ¶ added in v1.23.0
func (_q *ProjectQuery) OnlyX(ctx context.Context) *Project
OnlyX is like Only, but panics if an error occurs.
func (*ProjectQuery) Order ¶ added in v1.23.0
func (_q *ProjectQuery) Order(o ...project.OrderOption) *ProjectQuery
Order specifies how the records should be ordered.
func (*ProjectQuery) QuerySessions ¶ added in v1.23.0
func (_q *ProjectQuery) QuerySessions() *SessionQuery
QuerySessions chains the current query on the "sessions" edge.
func (*ProjectQuery) Select ¶ added in v1.23.0
func (_q *ProjectQuery) Select(fields ...string) *ProjectSelect
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.Project.Query().
Select(project.FieldName).
Scan(ctx, &v)
func (*ProjectQuery) Unique ¶ added in v1.23.0
func (_q *ProjectQuery) Unique(unique bool) *ProjectQuery
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 (*ProjectQuery) Where ¶ added in v1.23.0
func (_q *ProjectQuery) Where(ps ...predicate.Project) *ProjectQuery
Where adds a new predicate for the ProjectQuery builder.
func (*ProjectQuery) WithSessions ¶ added in v1.23.0
func (_q *ProjectQuery) WithSessions(opts ...func(*SessionQuery)) *ProjectQuery
WithSessions tells the query-builder to eager-load the nodes that are connected to the "sessions" edge. The optional arguments are used to configure the query builder of the edge.
type ProjectSelect ¶ added in v1.23.0
type ProjectSelect struct {
*ProjectQuery
// contains filtered or unexported fields
}
ProjectSelect is the builder for selecting fields of Project entities.
func (*ProjectSelect) Aggregate ¶ added in v1.23.0
func (_s *ProjectSelect) Aggregate(fns ...AggregateFunc) *ProjectSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProjectSelect) Bool ¶ added in v1.23.0
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Bools ¶ added in v1.23.0
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) BoolsX ¶ added in v1.23.0
BoolsX is like Bools, but panics if an error occurs.
func (*ProjectSelect) Float64 ¶ added in v1.23.0
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Float64X ¶ added in v1.23.0
Float64X is like Float64, but panics if an error occurs.
func (*ProjectSelect) Float64s ¶ added in v1.23.0
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Float64sX ¶ added in v1.23.0
Float64sX is like Float64s, but panics if an error occurs.
func (*ProjectSelect) Int ¶ added in v1.23.0
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Ints ¶ added in v1.23.0
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Scan ¶ added in v1.23.0
func (_s *ProjectSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProjectSelect) String ¶ added in v1.23.0
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) StringX ¶ added in v1.23.0
StringX is like String, but panics if an error occurs.
type ProjectUpdate ¶ added in v1.23.0
type ProjectUpdate struct {
// contains filtered or unexported fields
}
ProjectUpdate is the builder for updating Project entities.
func (*ProjectUpdate) AddSessionIDs ¶ added in v1.23.0
func (_u *ProjectUpdate) AddSessionIDs(ids ...int) *ProjectUpdate
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*ProjectUpdate) AddSessions ¶ added in v1.23.0
func (_u *ProjectUpdate) AddSessions(v ...*Session) *ProjectUpdate
AddSessions adds the "sessions" edges to the Session entity.
func (*ProjectUpdate) ClearDescription ¶ added in v1.23.0
func (_u *ProjectUpdate) ClearDescription() *ProjectUpdate
ClearDescription clears the value of the "description" field.
func (*ProjectUpdate) ClearSessions ¶ added in v1.23.0
func (_u *ProjectUpdate) ClearSessions() *ProjectUpdate
ClearSessions clears all "sessions" edges to the Session entity.
func (*ProjectUpdate) Exec ¶ added in v1.23.0
func (_u *ProjectUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProjectUpdate) ExecX ¶ added in v1.23.0
func (_u *ProjectUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectUpdate) Mutation ¶ added in v1.23.0
func (_u *ProjectUpdate) Mutation() *ProjectMutation
Mutation returns the ProjectMutation object of the builder.
func (*ProjectUpdate) RemoveSessionIDs ¶ added in v1.23.0
func (_u *ProjectUpdate) RemoveSessionIDs(ids ...int) *ProjectUpdate
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*ProjectUpdate) RemoveSessions ¶ added in v1.23.0
func (_u *ProjectUpdate) RemoveSessions(v ...*Session) *ProjectUpdate
RemoveSessions removes "sessions" edges to Session entities.
func (*ProjectUpdate) Save ¶ added in v1.23.0
func (_u *ProjectUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProjectUpdate) SaveX ¶ added in v1.23.0
func (_u *ProjectUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProjectUpdate) SetDescription ¶ added in v1.23.0
func (_u *ProjectUpdate) SetDescription(v string) *ProjectUpdate
SetDescription sets the "description" field.
func (*ProjectUpdate) SetName ¶ added in v1.23.0
func (_u *ProjectUpdate) SetName(v string) *ProjectUpdate
SetName sets the "name" field.
func (*ProjectUpdate) SetNillableDescription ¶ added in v1.23.0
func (_u *ProjectUpdate) SetNillableDescription(v *string) *ProjectUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*ProjectUpdate) SetNillableName ¶ added in v1.23.0
func (_u *ProjectUpdate) SetNillableName(v *string) *ProjectUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*ProjectUpdate) SetUpdatedAt ¶ added in v1.23.0
func (_u *ProjectUpdate) SetUpdatedAt(v time.Time) *ProjectUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProjectUpdate) Where ¶ added in v1.23.0
func (_u *ProjectUpdate) Where(ps ...predicate.Project) *ProjectUpdate
Where appends a list predicates to the ProjectUpdate builder.
type ProjectUpdateOne ¶ added in v1.23.0
type ProjectUpdateOne struct {
// contains filtered or unexported fields
}
ProjectUpdateOne is the builder for updating a single Project entity.
func (*ProjectUpdateOne) AddSessionIDs ¶ added in v1.23.0
func (_u *ProjectUpdateOne) AddSessionIDs(ids ...int) *ProjectUpdateOne
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*ProjectUpdateOne) AddSessions ¶ added in v1.23.0
func (_u *ProjectUpdateOne) AddSessions(v ...*Session) *ProjectUpdateOne
AddSessions adds the "sessions" edges to the Session entity.
func (*ProjectUpdateOne) ClearDescription ¶ added in v1.23.0
func (_u *ProjectUpdateOne) ClearDescription() *ProjectUpdateOne
ClearDescription clears the value of the "description" field.
func (*ProjectUpdateOne) ClearSessions ¶ added in v1.23.0
func (_u *ProjectUpdateOne) ClearSessions() *ProjectUpdateOne
ClearSessions clears all "sessions" edges to the Session entity.
func (*ProjectUpdateOne) Exec ¶ added in v1.23.0
func (_u *ProjectUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProjectUpdateOne) ExecX ¶ added in v1.23.0
func (_u *ProjectUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectUpdateOne) Mutation ¶ added in v1.23.0
func (_u *ProjectUpdateOne) Mutation() *ProjectMutation
Mutation returns the ProjectMutation object of the builder.
func (*ProjectUpdateOne) RemoveSessionIDs ¶ added in v1.23.0
func (_u *ProjectUpdateOne) RemoveSessionIDs(ids ...int) *ProjectUpdateOne
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*ProjectUpdateOne) RemoveSessions ¶ added in v1.23.0
func (_u *ProjectUpdateOne) RemoveSessions(v ...*Session) *ProjectUpdateOne
RemoveSessions removes "sessions" edges to Session entities.
func (*ProjectUpdateOne) Save ¶ added in v1.23.0
func (_u *ProjectUpdateOne) Save(ctx context.Context) (*Project, error)
Save executes the query and returns the updated Project entity.
func (*ProjectUpdateOne) SaveX ¶ added in v1.23.0
func (_u *ProjectUpdateOne) SaveX(ctx context.Context) *Project
SaveX is like Save, but panics if an error occurs.
func (*ProjectUpdateOne) Select ¶ added in v1.23.0
func (_u *ProjectUpdateOne) Select(field string, fields ...string) *ProjectUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProjectUpdateOne) SetDescription ¶ added in v1.23.0
func (_u *ProjectUpdateOne) SetDescription(v string) *ProjectUpdateOne
SetDescription sets the "description" field.
func (*ProjectUpdateOne) SetName ¶ added in v1.23.0
func (_u *ProjectUpdateOne) SetName(v string) *ProjectUpdateOne
SetName sets the "name" field.
func (*ProjectUpdateOne) SetNillableDescription ¶ added in v1.23.0
func (_u *ProjectUpdateOne) SetNillableDescription(v *string) *ProjectUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*ProjectUpdateOne) SetNillableName ¶ added in v1.23.0
func (_u *ProjectUpdateOne) SetNillableName(v *string) *ProjectUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*ProjectUpdateOne) SetUpdatedAt ¶ added in v1.23.0
func (_u *ProjectUpdateOne) SetUpdatedAt(v time.Time) *ProjectUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProjectUpdateOne) Where ¶ added in v1.23.0
func (_u *ProjectUpdateOne) Where(ps ...predicate.Project) *ProjectUpdateOne
Where appends a list predicates to the ProjectUpdate builder.
type ProjectUpsert ¶ added in v1.23.0
ProjectUpsert is the "OnConflict" setter.
func (*ProjectUpsert) ClearDescription ¶ added in v1.23.0
func (u *ProjectUpsert) ClearDescription() *ProjectUpsert
ClearDescription clears the value of the "description" field.
func (*ProjectUpsert) SetDescription ¶ added in v1.23.0
func (u *ProjectUpsert) SetDescription(v string) *ProjectUpsert
SetDescription sets the "description" field.
func (*ProjectUpsert) SetName ¶ added in v1.23.0
func (u *ProjectUpsert) SetName(v string) *ProjectUpsert
SetName sets the "name" field.
func (*ProjectUpsert) SetUpdatedAt ¶ added in v1.23.0
func (u *ProjectUpsert) SetUpdatedAt(v time.Time) *ProjectUpsert
SetUpdatedAt sets the "updated_at" field.
func (*ProjectUpsert) UpdateDescription ¶ added in v1.23.0
func (u *ProjectUpsert) UpdateDescription() *ProjectUpsert
UpdateDescription sets the "description" field to the value that was provided on create.
func (*ProjectUpsert) UpdateName ¶ added in v1.23.0
func (u *ProjectUpsert) UpdateName() *ProjectUpsert
UpdateName sets the "name" field to the value that was provided on create.
func (*ProjectUpsert) UpdateUpdatedAt ¶ added in v1.23.0
func (u *ProjectUpsert) UpdateUpdatedAt() *ProjectUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ProjectUpsertBulk ¶ added in v1.23.0
type ProjectUpsertBulk struct {
// contains filtered or unexported fields
}
ProjectUpsertBulk is the builder for "upsert"-ing a bulk of Project nodes.
func (*ProjectUpsertBulk) ClearDescription ¶ added in v1.23.0
func (u *ProjectUpsertBulk) ClearDescription() *ProjectUpsertBulk
ClearDescription clears the value of the "description" field.
func (*ProjectUpsertBulk) DoNothing ¶ added in v1.23.0
func (u *ProjectUpsertBulk) DoNothing() *ProjectUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProjectUpsertBulk) Exec ¶ added in v1.23.0
func (u *ProjectUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProjectUpsertBulk) ExecX ¶ added in v1.23.0
func (u *ProjectUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectUpsertBulk) Ignore ¶ added in v1.23.0
func (u *ProjectUpsertBulk) Ignore() *ProjectUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Project.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*ProjectUpsertBulk) SetDescription ¶ added in v1.23.0
func (u *ProjectUpsertBulk) SetDescription(v string) *ProjectUpsertBulk
SetDescription sets the "description" field.
func (*ProjectUpsertBulk) SetName ¶ added in v1.23.0
func (u *ProjectUpsertBulk) SetName(v string) *ProjectUpsertBulk
SetName sets the "name" field.
func (*ProjectUpsertBulk) SetUpdatedAt ¶ added in v1.23.0
func (u *ProjectUpsertBulk) SetUpdatedAt(v time.Time) *ProjectUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*ProjectUpsertBulk) Update ¶ added in v1.23.0
func (u *ProjectUpsertBulk) Update(set func(*ProjectUpsert)) *ProjectUpsertBulk
Update allows overriding fields `UPDATE` values. See the ProjectCreateBulk.OnConflict documentation for more info.
func (*ProjectUpsertBulk) UpdateDescription ¶ added in v1.23.0
func (u *ProjectUpsertBulk) UpdateDescription() *ProjectUpsertBulk
UpdateDescription sets the "description" field to the value that was provided on create.
func (*ProjectUpsertBulk) UpdateName ¶ added in v1.23.0
func (u *ProjectUpsertBulk) UpdateName() *ProjectUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*ProjectUpsertBulk) UpdateNewValues ¶ added in v1.23.0
func (u *ProjectUpsertBulk) UpdateNewValues() *ProjectUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Project.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ProjectUpsertBulk) UpdateUpdatedAt ¶ added in v1.23.0
func (u *ProjectUpsertBulk) UpdateUpdatedAt() *ProjectUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type ProjectUpsertOne ¶ added in v1.23.0
type ProjectUpsertOne struct {
// contains filtered or unexported fields
}
ProjectUpsertOne is the builder for "upsert"-ing
one Project node.
func (*ProjectUpsertOne) ClearDescription ¶ added in v1.23.0
func (u *ProjectUpsertOne) ClearDescription() *ProjectUpsertOne
ClearDescription clears the value of the "description" field.
func (*ProjectUpsertOne) DoNothing ¶ added in v1.23.0
func (u *ProjectUpsertOne) DoNothing() *ProjectUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*ProjectUpsertOne) Exec ¶ added in v1.23.0
func (u *ProjectUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*ProjectUpsertOne) ExecX ¶ added in v1.23.0
func (u *ProjectUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectUpsertOne) ID ¶ added in v1.23.0
func (u *ProjectUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*ProjectUpsertOne) IDX ¶ added in v1.23.0
func (u *ProjectUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*ProjectUpsertOne) Ignore ¶ added in v1.23.0
func (u *ProjectUpsertOne) Ignore() *ProjectUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Project.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*ProjectUpsertOne) SetDescription ¶ added in v1.23.0
func (u *ProjectUpsertOne) SetDescription(v string) *ProjectUpsertOne
SetDescription sets the "description" field.
func (*ProjectUpsertOne) SetName ¶ added in v1.23.0
func (u *ProjectUpsertOne) SetName(v string) *ProjectUpsertOne
SetName sets the "name" field.
func (*ProjectUpsertOne) SetUpdatedAt ¶ added in v1.23.0
func (u *ProjectUpsertOne) SetUpdatedAt(v time.Time) *ProjectUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*ProjectUpsertOne) Update ¶ added in v1.23.0
func (u *ProjectUpsertOne) Update(set func(*ProjectUpsert)) *ProjectUpsertOne
Update allows overriding fields `UPDATE` values. See the ProjectCreate.OnConflict documentation for more info.
func (*ProjectUpsertOne) UpdateDescription ¶ added in v1.23.0
func (u *ProjectUpsertOne) UpdateDescription() *ProjectUpsertOne
UpdateDescription sets the "description" field to the value that was provided on create.
func (*ProjectUpsertOne) UpdateName ¶ added in v1.23.0
func (u *ProjectUpsertOne) UpdateName() *ProjectUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*ProjectUpsertOne) UpdateNewValues ¶ added in v1.23.0
func (u *ProjectUpsertOne) UpdateNewValues() *ProjectUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Project.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*ProjectUpsertOne) UpdateUpdatedAt ¶ added in v1.23.0
func (u *ProjectUpsertOne) UpdateUpdatedAt() *ProjectUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker {
return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
// Do some stuff before.
if err := next.Rollback(ctx, tx); err != nil {
return err
}
// Do some stuff after.
return nil
})
}
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type Session ¶
type Session struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// Title holds the value of the "title" field.
Title string `json:"title,omitempty"`
// UUID holds the value of the "uuid" field.
UUID string `json:"uuid,omitempty"`
// Path holds the value of the "path" field.
Path string `json:"path,omitempty"`
// WorkingDir holds the value of the "working_dir" field.
WorkingDir string `json:"working_dir,omitempty"`
// Branch holds the value of the "branch" field.
Branch string `json:"branch,omitempty"`
// Session status: Running, Paused, etc.
Status int `json:"status,omitempty"`
// Height holds the value of the "height" field.
Height int `json:"height,omitempty"`
// Width holds the value of the "width" field.
Width int `json:"width,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// AutoYes holds the value of the "auto_yes" field.
AutoYes bool `json:"auto_yes,omitempty"`
// Prompt holds the value of the "prompt" field.
Prompt string `json:"prompt,omitempty"`
// Program holds the value of the "program" field.
Program string `json:"program,omitempty"`
// ExistingWorktree holds the value of the "existing_worktree" field.
ExistingWorktree string `json:"existing_worktree,omitempty"`
// Category holds the value of the "category" field.
Category string `json:"category,omitempty"`
// IsExpanded holds the value of the "is_expanded" field.
IsExpanded bool `json:"is_expanded,omitempty"`
// SessionType holds the value of the "session_type" field.
SessionType string `json:"session_type,omitempty"`
// TmuxPrefix holds the value of the "tmux_prefix" field.
TmuxPrefix string `json:"tmux_prefix,omitempty"`
// LastTerminalUpdate holds the value of the "last_terminal_update" field.
LastTerminalUpdate *time.Time `json:"last_terminal_update,omitempty"`
// LastMeaningfulOutput holds the value of the "last_meaningful_output" field.
LastMeaningfulOutput *time.Time `json:"last_meaningful_output,omitempty"`
// LastOutputSignature holds the value of the "last_output_signature" field.
LastOutputSignature string `json:"last_output_signature,omitempty"`
// LastAddedToQueue holds the value of the "last_added_to_queue" field.
LastAddedToQueue *time.Time `json:"last_added_to_queue,omitempty"`
// LastViewed holds the value of the "last_viewed" field.
LastViewed *time.Time `json:"last_viewed,omitempty"`
// LastAcknowledged holds the value of the "last_acknowledged" field.
LastAcknowledged *time.Time `json:"last_acknowledged,omitempty"`
// McpServerURL holds the value of the "mcp_server_url" field.
McpServerURL string `json:"mcp_server_url,omitempty"`
// Prompt injected via CLAUDE.md at first-time session creation.
InitialPrompt string `json:"initial_prompt,omitempty"`
// When true, runs claude in -p mode; session exits after task completes.
OneShot bool `json:"one_shot,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the SessionQuery when eager-loading is set.
Edges SessionEdges `json:"edges"`
// contains filtered or unexported fields
}
Session is the model entity for the Session schema.
func (*Session) QueryClaudeSession ¶
func (_m *Session) QueryClaudeSession() *ClaudeSessionQuery
QueryClaudeSession queries the "claude_session" edge of the Session entity.
func (*Session) QueryDiffStats ¶
func (_m *Session) QueryDiffStats() *DiffStatsQuery
QueryDiffStats queries the "diff_stats" edge of the Session entity.
func (*Session) QueryProject ¶ added in v1.23.0
func (_m *Session) QueryProject() *ProjectQuery
QueryProject queries the "project" edge of the Session entity.
func (*Session) QueryWorktree ¶
func (_m *Session) QueryWorktree() *WorktreeQuery
QueryWorktree queries the "worktree" edge of the Session entity.
func (*Session) Unwrap ¶
Unwrap unwraps the Session 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 (*Session) Update ¶
func (_m *Session) Update() *SessionUpdateOne
Update returns a builder for updating this Session. Note that you need to call Session.Unwrap() before calling this method if this Session was returned from a transaction, and the transaction was committed or rolled back.
type SessionClient ¶
type SessionClient struct {
// contains filtered or unexported fields
}
SessionClient is a client for the Session schema.
func NewSessionClient ¶
func NewSessionClient(c config) *SessionClient
NewSessionClient returns a client for the Session from the given config.
func (*SessionClient) Create ¶
func (c *SessionClient) Create() *SessionCreate
Create returns a builder for creating a Session entity.
func (*SessionClient) CreateBulk ¶
func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk
CreateBulk returns a builder for creating a bulk of Session entities.
func (*SessionClient) Delete ¶
func (c *SessionClient) Delete() *SessionDelete
Delete returns a delete builder for Session.
func (*SessionClient) DeleteOne ¶
func (c *SessionClient) DeleteOne(_m *Session) *SessionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SessionClient) DeleteOneID ¶
func (c *SessionClient) DeleteOneID(id int) *SessionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SessionClient) GetX ¶
func (c *SessionClient) GetX(ctx context.Context, id int) *Session
GetX is like Get, but panics if an error occurs.
func (*SessionClient) Hooks ¶
func (c *SessionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SessionClient) Intercept ¶
func (c *SessionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `session.Intercept(f(g(h())))`.
func (*SessionClient) Interceptors ¶
func (c *SessionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*SessionClient) MapCreateBulk ¶
func (c *SessionClient) MapCreateBulk(slice any, setFunc func(*SessionCreate, int)) *SessionCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*SessionClient) Query ¶
func (c *SessionClient) Query() *SessionQuery
Query returns a query builder for Session.
func (*SessionClient) QueryClaudeSession ¶
func (c *SessionClient) QueryClaudeSession(_m *Session) *ClaudeSessionQuery
QueryClaudeSession queries the claude_session edge of a Session.
func (*SessionClient) QueryDiffStats ¶
func (c *SessionClient) QueryDiffStats(_m *Session) *DiffStatsQuery
QueryDiffStats queries the diff_stats edge of a Session.
func (*SessionClient) QueryProject ¶ added in v1.23.0
func (c *SessionClient) QueryProject(_m *Session) *ProjectQuery
QueryProject queries the project edge of a Session.
func (*SessionClient) QueryTags ¶
func (c *SessionClient) QueryTags(_m *Session) *TagQuery
QueryTags queries the tags edge of a Session.
func (*SessionClient) QueryWorktree ¶
func (c *SessionClient) QueryWorktree(_m *Session) *WorktreeQuery
QueryWorktree queries the worktree edge of a Session.
func (*SessionClient) Update ¶
func (c *SessionClient) Update() *SessionUpdate
Update returns an update builder for Session.
func (*SessionClient) UpdateOne ¶
func (c *SessionClient) UpdateOne(_m *Session) *SessionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SessionClient) UpdateOneID ¶
func (c *SessionClient) UpdateOneID(id int) *SessionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SessionClient) Use ¶
func (c *SessionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `session.Hooks(f(g(h())))`.
type SessionCreate ¶
type SessionCreate struct {
// contains filtered or unexported fields
}
SessionCreate is the builder for creating a Session entity.
func (*SessionCreate) AddTagIDs ¶
func (_c *SessionCreate) AddTagIDs(ids ...int) *SessionCreate
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*SessionCreate) AddTags ¶
func (_c *SessionCreate) AddTags(v ...*Tag) *SessionCreate
AddTags adds the "tags" edges to the Tag entity.
func (*SessionCreate) Exec ¶
func (_c *SessionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionCreate) ExecX ¶
func (_c *SessionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionCreate) Mutation ¶
func (_c *SessionCreate) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionCreate) OnConflict ¶ added in v1.12.0
func (_c *SessionCreate) OnConflict(opts ...sql.ConflictOption) *SessionUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Session.Create().
SetTitle(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.SessionUpsert) {
SetTitle(v+v).
}).
Exec(ctx)
func (*SessionCreate) OnConflictColumns ¶ added in v1.12.0
func (_c *SessionCreate) OnConflictColumns(columns ...string) *SessionUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Session.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*SessionCreate) Save ¶
func (_c *SessionCreate) Save(ctx context.Context) (*Session, error)
Save creates the Session in the database.
func (*SessionCreate) SaveX ¶
func (_c *SessionCreate) SaveX(ctx context.Context) *Session
SaveX calls Save and panics if Save returns an error.
func (*SessionCreate) SetAutoYes ¶
func (_c *SessionCreate) SetAutoYes(v bool) *SessionCreate
SetAutoYes sets the "auto_yes" field.
func (*SessionCreate) SetBranch ¶
func (_c *SessionCreate) SetBranch(v string) *SessionCreate
SetBranch sets the "branch" field.
func (*SessionCreate) SetCategory ¶
func (_c *SessionCreate) SetCategory(v string) *SessionCreate
SetCategory sets the "category" field.
func (*SessionCreate) SetClaudeSession ¶
func (_c *SessionCreate) SetClaudeSession(v *ClaudeSession) *SessionCreate
SetClaudeSession sets the "claude_session" edge to the ClaudeSession entity.
func (*SessionCreate) SetClaudeSessionID ¶
func (_c *SessionCreate) SetClaudeSessionID(id int) *SessionCreate
SetClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID.
func (*SessionCreate) SetCreatedAt ¶
func (_c *SessionCreate) SetCreatedAt(v time.Time) *SessionCreate
SetCreatedAt sets the "created_at" field.
func (*SessionCreate) SetDiffStats ¶
func (_c *SessionCreate) SetDiffStats(v *DiffStats) *SessionCreate
SetDiffStats sets the "diff_stats" edge to the DiffStats entity.
func (*SessionCreate) SetDiffStatsID ¶
func (_c *SessionCreate) SetDiffStatsID(id int) *SessionCreate
SetDiffStatsID sets the "diff_stats" edge to the DiffStats entity by ID.
func (*SessionCreate) SetExistingWorktree ¶
func (_c *SessionCreate) SetExistingWorktree(v string) *SessionCreate
SetExistingWorktree sets the "existing_worktree" field.
func (*SessionCreate) SetHeight ¶
func (_c *SessionCreate) SetHeight(v int) *SessionCreate
SetHeight sets the "height" field.
func (*SessionCreate) SetInitialPrompt ¶ added in v1.23.0
func (_c *SessionCreate) SetInitialPrompt(v string) *SessionCreate
SetInitialPrompt sets the "initial_prompt" field.
func (*SessionCreate) SetIsExpanded ¶
func (_c *SessionCreate) SetIsExpanded(v bool) *SessionCreate
SetIsExpanded sets the "is_expanded" field.
func (*SessionCreate) SetLastAcknowledged ¶
func (_c *SessionCreate) SetLastAcknowledged(v time.Time) *SessionCreate
SetLastAcknowledged sets the "last_acknowledged" field.
func (*SessionCreate) SetLastAddedToQueue ¶
func (_c *SessionCreate) SetLastAddedToQueue(v time.Time) *SessionCreate
SetLastAddedToQueue sets the "last_added_to_queue" field.
func (*SessionCreate) SetLastMeaningfulOutput ¶
func (_c *SessionCreate) SetLastMeaningfulOutput(v time.Time) *SessionCreate
SetLastMeaningfulOutput sets the "last_meaningful_output" field.
func (*SessionCreate) SetLastOutputSignature ¶
func (_c *SessionCreate) SetLastOutputSignature(v string) *SessionCreate
SetLastOutputSignature sets the "last_output_signature" field.
func (*SessionCreate) SetLastTerminalUpdate ¶
func (_c *SessionCreate) SetLastTerminalUpdate(v time.Time) *SessionCreate
SetLastTerminalUpdate sets the "last_terminal_update" field.
func (*SessionCreate) SetLastViewed ¶
func (_c *SessionCreate) SetLastViewed(v time.Time) *SessionCreate
SetLastViewed sets the "last_viewed" field.
func (*SessionCreate) SetMcpServerURL ¶ added in v1.23.1
func (_c *SessionCreate) SetMcpServerURL(v string) *SessionCreate
SetMcpServerURL sets the "mcp_server_url" field.
func (*SessionCreate) SetNillableAutoYes ¶
func (_c *SessionCreate) SetNillableAutoYes(v *bool) *SessionCreate
SetNillableAutoYes sets the "auto_yes" field if the given value is not nil.
func (*SessionCreate) SetNillableBranch ¶
func (_c *SessionCreate) SetNillableBranch(v *string) *SessionCreate
SetNillableBranch sets the "branch" field if the given value is not nil.
func (*SessionCreate) SetNillableCategory ¶
func (_c *SessionCreate) SetNillableCategory(v *string) *SessionCreate
SetNillableCategory sets the "category" field if the given value is not nil.
func (*SessionCreate) SetNillableClaudeSessionID ¶
func (_c *SessionCreate) SetNillableClaudeSessionID(id *int) *SessionCreate
SetNillableClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID if the given value is not nil.
func (*SessionCreate) SetNillableCreatedAt ¶
func (_c *SessionCreate) SetNillableCreatedAt(v *time.Time) *SessionCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SessionCreate) SetNillableDiffStatsID ¶
func (_c *SessionCreate) SetNillableDiffStatsID(id *int) *SessionCreate
SetNillableDiffStatsID sets the "diff_stats" edge to the DiffStats entity by ID if the given value is not nil.
func (*SessionCreate) SetNillableExistingWorktree ¶
func (_c *SessionCreate) SetNillableExistingWorktree(v *string) *SessionCreate
SetNillableExistingWorktree sets the "existing_worktree" field if the given value is not nil.
func (*SessionCreate) SetNillableHeight ¶
func (_c *SessionCreate) SetNillableHeight(v *int) *SessionCreate
SetNillableHeight sets the "height" field if the given value is not nil.
func (*SessionCreate) SetNillableInitialPrompt ¶ added in v1.23.0
func (_c *SessionCreate) SetNillableInitialPrompt(v *string) *SessionCreate
SetNillableInitialPrompt sets the "initial_prompt" field if the given value is not nil.
func (*SessionCreate) SetNillableIsExpanded ¶
func (_c *SessionCreate) SetNillableIsExpanded(v *bool) *SessionCreate
SetNillableIsExpanded sets the "is_expanded" field if the given value is not nil.
func (*SessionCreate) SetNillableLastAcknowledged ¶
func (_c *SessionCreate) SetNillableLastAcknowledged(v *time.Time) *SessionCreate
SetNillableLastAcknowledged sets the "last_acknowledged" field if the given value is not nil.
func (*SessionCreate) SetNillableLastAddedToQueue ¶
func (_c *SessionCreate) SetNillableLastAddedToQueue(v *time.Time) *SessionCreate
SetNillableLastAddedToQueue sets the "last_added_to_queue" field if the given value is not nil.
func (*SessionCreate) SetNillableLastMeaningfulOutput ¶
func (_c *SessionCreate) SetNillableLastMeaningfulOutput(v *time.Time) *SessionCreate
SetNillableLastMeaningfulOutput sets the "last_meaningful_output" field if the given value is not nil.
func (*SessionCreate) SetNillableLastOutputSignature ¶
func (_c *SessionCreate) SetNillableLastOutputSignature(v *string) *SessionCreate
SetNillableLastOutputSignature sets the "last_output_signature" field if the given value is not nil.
func (*SessionCreate) SetNillableLastTerminalUpdate ¶
func (_c *SessionCreate) SetNillableLastTerminalUpdate(v *time.Time) *SessionCreate
SetNillableLastTerminalUpdate sets the "last_terminal_update" field if the given value is not nil.
func (*SessionCreate) SetNillableLastViewed ¶
func (_c *SessionCreate) SetNillableLastViewed(v *time.Time) *SessionCreate
SetNillableLastViewed sets the "last_viewed" field if the given value is not nil.
func (*SessionCreate) SetNillableMcpServerURL ¶ added in v1.23.1
func (_c *SessionCreate) SetNillableMcpServerURL(v *string) *SessionCreate
SetNillableMcpServerURL sets the "mcp_server_url" field if the given value is not nil.
func (*SessionCreate) SetNillableOneShot ¶ added in v1.23.0
func (_c *SessionCreate) SetNillableOneShot(v *bool) *SessionCreate
SetNillableOneShot sets the "one_shot" field if the given value is not nil.
func (*SessionCreate) SetNillableProjectID ¶ added in v1.23.0
func (_c *SessionCreate) SetNillableProjectID(id *int) *SessionCreate
SetNillableProjectID sets the "project" edge to the Project entity by ID if the given value is not nil.
func (*SessionCreate) SetNillablePrompt ¶
func (_c *SessionCreate) SetNillablePrompt(v *string) *SessionCreate
SetNillablePrompt sets the "prompt" field if the given value is not nil.
func (*SessionCreate) SetNillableSessionType ¶
func (_c *SessionCreate) SetNillableSessionType(v *string) *SessionCreate
SetNillableSessionType sets the "session_type" field if the given value is not nil.
func (*SessionCreate) SetNillableTmuxPrefix ¶
func (_c *SessionCreate) SetNillableTmuxPrefix(v *string) *SessionCreate
SetNillableTmuxPrefix sets the "tmux_prefix" field if the given value is not nil.
func (*SessionCreate) SetNillableUUID ¶ added in v1.15.0
func (_c *SessionCreate) SetNillableUUID(v *string) *SessionCreate
SetNillableUUID sets the "uuid" field if the given value is not nil.
func (*SessionCreate) SetNillableUpdatedAt ¶
func (_c *SessionCreate) SetNillableUpdatedAt(v *time.Time) *SessionCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SessionCreate) SetNillableWidth ¶
func (_c *SessionCreate) SetNillableWidth(v *int) *SessionCreate
SetNillableWidth sets the "width" field if the given value is not nil.
func (*SessionCreate) SetNillableWorkingDir ¶
func (_c *SessionCreate) SetNillableWorkingDir(v *string) *SessionCreate
SetNillableWorkingDir sets the "working_dir" field if the given value is not nil.
func (*SessionCreate) SetNillableWorktreeID ¶
func (_c *SessionCreate) SetNillableWorktreeID(id *int) *SessionCreate
SetNillableWorktreeID sets the "worktree" edge to the Worktree entity by ID if the given value is not nil.
func (*SessionCreate) SetOneShot ¶ added in v1.23.0
func (_c *SessionCreate) SetOneShot(v bool) *SessionCreate
SetOneShot sets the "one_shot" field.
func (*SessionCreate) SetPath ¶
func (_c *SessionCreate) SetPath(v string) *SessionCreate
SetPath sets the "path" field.
func (*SessionCreate) SetProgram ¶
func (_c *SessionCreate) SetProgram(v string) *SessionCreate
SetProgram sets the "program" field.
func (*SessionCreate) SetProject ¶ added in v1.23.0
func (_c *SessionCreate) SetProject(v *Project) *SessionCreate
SetProject sets the "project" edge to the Project entity.
func (*SessionCreate) SetProjectID ¶ added in v1.23.0
func (_c *SessionCreate) SetProjectID(id int) *SessionCreate
SetProjectID sets the "project" edge to the Project entity by ID.
func (*SessionCreate) SetPrompt ¶
func (_c *SessionCreate) SetPrompt(v string) *SessionCreate
SetPrompt sets the "prompt" field.
func (*SessionCreate) SetSessionType ¶
func (_c *SessionCreate) SetSessionType(v string) *SessionCreate
SetSessionType sets the "session_type" field.
func (*SessionCreate) SetStatus ¶
func (_c *SessionCreate) SetStatus(v int) *SessionCreate
SetStatus sets the "status" field.
func (*SessionCreate) SetTitle ¶
func (_c *SessionCreate) SetTitle(v string) *SessionCreate
SetTitle sets the "title" field.
func (*SessionCreate) SetTmuxPrefix ¶
func (_c *SessionCreate) SetTmuxPrefix(v string) *SessionCreate
SetTmuxPrefix sets the "tmux_prefix" field.
func (*SessionCreate) SetUUID ¶ added in v1.15.0
func (_c *SessionCreate) SetUUID(v string) *SessionCreate
SetUUID sets the "uuid" field.
func (*SessionCreate) SetUpdatedAt ¶
func (_c *SessionCreate) SetUpdatedAt(v time.Time) *SessionCreate
SetUpdatedAt sets the "updated_at" field.
func (*SessionCreate) SetWidth ¶
func (_c *SessionCreate) SetWidth(v int) *SessionCreate
SetWidth sets the "width" field.
func (*SessionCreate) SetWorkingDir ¶
func (_c *SessionCreate) SetWorkingDir(v string) *SessionCreate
SetWorkingDir sets the "working_dir" field.
func (*SessionCreate) SetWorktree ¶
func (_c *SessionCreate) SetWorktree(v *Worktree) *SessionCreate
SetWorktree sets the "worktree" edge to the Worktree entity.
func (*SessionCreate) SetWorktreeID ¶
func (_c *SessionCreate) SetWorktreeID(id int) *SessionCreate
SetWorktreeID sets the "worktree" edge to the Worktree entity by ID.
type SessionCreateBulk ¶
type SessionCreateBulk struct {
// contains filtered or unexported fields
}
SessionCreateBulk is the builder for creating many Session entities in bulk.
func (*SessionCreateBulk) Exec ¶
func (_c *SessionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionCreateBulk) ExecX ¶
func (_c *SessionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionCreateBulk) OnConflict ¶ added in v1.12.0
func (_c *SessionCreateBulk) OnConflict(opts ...sql.ConflictOption) *SessionUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Session.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.SessionUpsert) {
SetTitle(v+v).
}).
Exec(ctx)
func (*SessionCreateBulk) OnConflictColumns ¶ added in v1.12.0
func (_c *SessionCreateBulk) OnConflictColumns(columns ...string) *SessionUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Session.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type SessionDelete ¶
type SessionDelete struct {
// contains filtered or unexported fields
}
SessionDelete is the builder for deleting a Session entity.
func (*SessionDelete) Exec ¶
func (_d *SessionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SessionDelete) ExecX ¶
func (_d *SessionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SessionDelete) Where ¶
func (_d *SessionDelete) Where(ps ...predicate.Session) *SessionDelete
Where appends a list predicates to the SessionDelete builder.
type SessionDeleteOne ¶
type SessionDeleteOne struct {
// contains filtered or unexported fields
}
SessionDeleteOne is the builder for deleting a single Session entity.
func (*SessionDeleteOne) Exec ¶
func (_d *SessionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SessionDeleteOne) ExecX ¶
func (_d *SessionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionDeleteOne) Where ¶
func (_d *SessionDeleteOne) Where(ps ...predicate.Session) *SessionDeleteOne
Where appends a list predicates to the SessionDelete builder.
type SessionEdges ¶
type SessionEdges struct {
// Worktree holds the value of the worktree edge.
Worktree *Worktree `json:"worktree,omitempty"`
// DiffStats holds the value of the diff_stats edge.
DiffStats *DiffStats `json:"diff_stats,omitempty"`
// Tags holds the value of the tags edge.
Tags []*Tag `json:"tags,omitempty"`
// ClaudeSession holds the value of the claude_session edge.
ClaudeSession *ClaudeSession `json:"claude_session,omitempty"`
// Project holds the value of the project edge.
Project *Project `json:"project,omitempty"`
// contains filtered or unexported fields
}
SessionEdges holds the relations/edges for other nodes in the graph.
func (SessionEdges) ClaudeSessionOrErr ¶
func (e SessionEdges) ClaudeSessionOrErr() (*ClaudeSession, error)
ClaudeSessionOrErr returns the ClaudeSession value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (SessionEdges) DiffStatsOrErr ¶
func (e SessionEdges) DiffStatsOrErr() (*DiffStats, error)
DiffStatsOrErr returns the DiffStats value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (SessionEdges) ProjectOrErr ¶ added in v1.23.0
func (e SessionEdges) ProjectOrErr() (*Project, error)
ProjectOrErr returns the Project value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (SessionEdges) TagsOrErr ¶
func (e SessionEdges) TagsOrErr() ([]*Tag, error)
TagsOrErr returns the Tags value or an error if the edge was not loaded in eager-loading.
func (SessionEdges) WorktreeOrErr ¶
func (e SessionEdges) WorktreeOrErr() (*Worktree, error)
WorktreeOrErr returns the Worktree value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type SessionGroupBy ¶
type SessionGroupBy struct {
// contains filtered or unexported fields
}
SessionGroupBy is the group-by builder for Session entities.
func (*SessionGroupBy) Aggregate ¶
func (_g *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SessionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Scan ¶
func (_g *SessionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SessionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SessionMutation ¶
type SessionMutation struct {
// contains filtered or unexported fields
}
SessionMutation represents an operation that mutates the Session nodes in the graph.
func (*SessionMutation) AddField ¶
func (m *SessionMutation) 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 (*SessionMutation) AddHeight ¶
func (m *SessionMutation) AddHeight(i int)
AddHeight adds i to the "height" field.
func (*SessionMutation) AddStatus ¶
func (m *SessionMutation) AddStatus(i int)
AddStatus adds i to the "status" field.
func (*SessionMutation) AddTagIDs ¶
func (m *SessionMutation) AddTagIDs(ids ...int)
AddTagIDs adds the "tags" edge to the Tag entity by ids.
func (*SessionMutation) AddWidth ¶
func (m *SessionMutation) AddWidth(i int)
AddWidth adds i to the "width" field.
func (*SessionMutation) AddedEdges ¶
func (m *SessionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SessionMutation) AddedField ¶
func (m *SessionMutation) 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 (*SessionMutation) AddedFields ¶
func (m *SessionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SessionMutation) AddedHeight ¶
func (m *SessionMutation) AddedHeight() (r int, exists bool)
AddedHeight returns the value that was added to the "height" field in this mutation.
func (*SessionMutation) AddedIDs ¶
func (m *SessionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SessionMutation) AddedStatus ¶
func (m *SessionMutation) AddedStatus() (r int, exists bool)
AddedStatus returns the value that was added to the "status" field in this mutation.
func (*SessionMutation) AddedWidth ¶
func (m *SessionMutation) AddedWidth() (r int, exists bool)
AddedWidth returns the value that was added to the "width" field in this mutation.
func (*SessionMutation) AutoYes ¶
func (m *SessionMutation) AutoYes() (r bool, exists bool)
AutoYes returns the value of the "auto_yes" field in the mutation.
func (*SessionMutation) Branch ¶
func (m *SessionMutation) Branch() (r string, exists bool)
Branch returns the value of the "branch" field in the mutation.
func (*SessionMutation) BranchCleared ¶
func (m *SessionMutation) BranchCleared() bool
BranchCleared returns if the "branch" field was cleared in this mutation.
func (*SessionMutation) Category ¶
func (m *SessionMutation) Category() (r string, exists bool)
Category returns the value of the "category" field in the mutation.
func (*SessionMutation) CategoryCleared ¶
func (m *SessionMutation) CategoryCleared() bool
CategoryCleared returns if the "category" field was cleared in this mutation.
func (*SessionMutation) ClaudeSessionCleared ¶
func (m *SessionMutation) ClaudeSessionCleared() bool
ClaudeSessionCleared reports if the "claude_session" edge to the ClaudeSession entity was cleared.
func (*SessionMutation) ClaudeSessionID ¶
func (m *SessionMutation) ClaudeSessionID() (id int, exists bool)
ClaudeSessionID returns the "claude_session" edge ID in the mutation.
func (*SessionMutation) ClaudeSessionIDs ¶
func (m *SessionMutation) ClaudeSessionIDs() (ids []int)
ClaudeSessionIDs returns the "claude_session" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ClaudeSessionID instead. It exists only for internal usage by the builders.
func (*SessionMutation) ClearBranch ¶
func (m *SessionMutation) ClearBranch()
ClearBranch clears the value of the "branch" field.
func (*SessionMutation) ClearCategory ¶
func (m *SessionMutation) ClearCategory()
ClearCategory clears the value of the "category" field.
func (*SessionMutation) ClearClaudeSession ¶
func (m *SessionMutation) ClearClaudeSession()
ClearClaudeSession clears the "claude_session" edge to the ClaudeSession entity.
func (*SessionMutation) ClearDiffStats ¶
func (m *SessionMutation) ClearDiffStats()
ClearDiffStats clears the "diff_stats" edge to the DiffStats entity.
func (*SessionMutation) ClearEdge ¶
func (m *SessionMutation) 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 (*SessionMutation) ClearExistingWorktree ¶
func (m *SessionMutation) ClearExistingWorktree()
ClearExistingWorktree clears the value of the "existing_worktree" field.
func (*SessionMutation) ClearField ¶
func (m *SessionMutation) 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 (*SessionMutation) ClearHeight ¶
func (m *SessionMutation) ClearHeight()
ClearHeight clears the value of the "height" field.
func (*SessionMutation) ClearInitialPrompt ¶ added in v1.23.0
func (m *SessionMutation) ClearInitialPrompt()
ClearInitialPrompt clears the value of the "initial_prompt" field.
func (*SessionMutation) ClearLastAcknowledged ¶
func (m *SessionMutation) ClearLastAcknowledged()
ClearLastAcknowledged clears the value of the "last_acknowledged" field.
func (*SessionMutation) ClearLastAddedToQueue ¶
func (m *SessionMutation) ClearLastAddedToQueue()
ClearLastAddedToQueue clears the value of the "last_added_to_queue" field.
func (*SessionMutation) ClearLastMeaningfulOutput ¶
func (m *SessionMutation) ClearLastMeaningfulOutput()
ClearLastMeaningfulOutput clears the value of the "last_meaningful_output" field.
func (*SessionMutation) ClearLastOutputSignature ¶
func (m *SessionMutation) ClearLastOutputSignature()
ClearLastOutputSignature clears the value of the "last_output_signature" field.
func (*SessionMutation) ClearLastTerminalUpdate ¶
func (m *SessionMutation) ClearLastTerminalUpdate()
ClearLastTerminalUpdate clears the value of the "last_terminal_update" field.
func (*SessionMutation) ClearLastViewed ¶
func (m *SessionMutation) ClearLastViewed()
ClearLastViewed clears the value of the "last_viewed" field.
func (*SessionMutation) ClearMcpServerURL ¶ added in v1.23.1
func (m *SessionMutation) ClearMcpServerURL()
ClearMcpServerURL clears the value of the "mcp_server_url" field.
func (*SessionMutation) ClearProject ¶ added in v1.23.0
func (m *SessionMutation) ClearProject()
ClearProject clears the "project" edge to the Project entity.
func (*SessionMutation) ClearPrompt ¶
func (m *SessionMutation) ClearPrompt()
ClearPrompt clears the value of the "prompt" field.
func (*SessionMutation) ClearSessionType ¶
func (m *SessionMutation) ClearSessionType()
ClearSessionType clears the value of the "session_type" field.
func (*SessionMutation) ClearTags ¶
func (m *SessionMutation) ClearTags()
ClearTags clears the "tags" edge to the Tag entity.
func (*SessionMutation) ClearTmuxPrefix ¶
func (m *SessionMutation) ClearTmuxPrefix()
ClearTmuxPrefix clears the value of the "tmux_prefix" field.
func (*SessionMutation) ClearUUID ¶ added in v1.15.0
func (m *SessionMutation) ClearUUID()
ClearUUID clears the value of the "uuid" field.
func (*SessionMutation) ClearWidth ¶
func (m *SessionMutation) ClearWidth()
ClearWidth clears the value of the "width" field.
func (*SessionMutation) ClearWorkingDir ¶
func (m *SessionMutation) ClearWorkingDir()
ClearWorkingDir clears the value of the "working_dir" field.
func (*SessionMutation) ClearWorktree ¶
func (m *SessionMutation) ClearWorktree()
ClearWorktree clears the "worktree" edge to the Worktree entity.
func (*SessionMutation) ClearedEdges ¶
func (m *SessionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SessionMutation) ClearedFields ¶
func (m *SessionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SessionMutation) Client ¶
func (m SessionMutation) 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 (*SessionMutation) CreatedAt ¶
func (m *SessionMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SessionMutation) DiffStatsCleared ¶
func (m *SessionMutation) DiffStatsCleared() bool
DiffStatsCleared reports if the "diff_stats" edge to the DiffStats entity was cleared.
func (*SessionMutation) DiffStatsID ¶
func (m *SessionMutation) DiffStatsID() (id int, exists bool)
DiffStatsID returns the "diff_stats" edge ID in the mutation.
func (*SessionMutation) DiffStatsIDs ¶
func (m *SessionMutation) DiffStatsIDs() (ids []int)
DiffStatsIDs returns the "diff_stats" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use DiffStatsID instead. It exists only for internal usage by the builders.
func (*SessionMutation) EdgeCleared ¶
func (m *SessionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SessionMutation) ExistingWorktree ¶
func (m *SessionMutation) ExistingWorktree() (r string, exists bool)
ExistingWorktree returns the value of the "existing_worktree" field in the mutation.
func (*SessionMutation) ExistingWorktreeCleared ¶
func (m *SessionMutation) ExistingWorktreeCleared() bool
ExistingWorktreeCleared returns if the "existing_worktree" field was cleared in this mutation.
func (*SessionMutation) Field ¶
func (m *SessionMutation) 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 (*SessionMutation) FieldCleared ¶
func (m *SessionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SessionMutation) Fields ¶
func (m *SessionMutation) 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 (*SessionMutation) Height ¶
func (m *SessionMutation) Height() (r int, exists bool)
Height returns the value of the "height" field in the mutation.
func (*SessionMutation) HeightCleared ¶
func (m *SessionMutation) HeightCleared() bool
HeightCleared returns if the "height" field was cleared in this mutation.
func (*SessionMutation) ID ¶
func (m *SessionMutation) 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 (*SessionMutation) IDs ¶
func (m *SessionMutation) 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 (*SessionMutation) InitialPrompt ¶ added in v1.23.0
func (m *SessionMutation) InitialPrompt() (r string, exists bool)
InitialPrompt returns the value of the "initial_prompt" field in the mutation.
func (*SessionMutation) InitialPromptCleared ¶ added in v1.23.0
func (m *SessionMutation) InitialPromptCleared() bool
InitialPromptCleared returns if the "initial_prompt" field was cleared in this mutation.
func (*SessionMutation) IsExpanded ¶
func (m *SessionMutation) IsExpanded() (r bool, exists bool)
IsExpanded returns the value of the "is_expanded" field in the mutation.
func (*SessionMutation) LastAcknowledged ¶
func (m *SessionMutation) LastAcknowledged() (r time.Time, exists bool)
LastAcknowledged returns the value of the "last_acknowledged" field in the mutation.
func (*SessionMutation) LastAcknowledgedCleared ¶
func (m *SessionMutation) LastAcknowledgedCleared() bool
LastAcknowledgedCleared returns if the "last_acknowledged" field was cleared in this mutation.
func (*SessionMutation) LastAddedToQueue ¶
func (m *SessionMutation) LastAddedToQueue() (r time.Time, exists bool)
LastAddedToQueue returns the value of the "last_added_to_queue" field in the mutation.
func (*SessionMutation) LastAddedToQueueCleared ¶
func (m *SessionMutation) LastAddedToQueueCleared() bool
LastAddedToQueueCleared returns if the "last_added_to_queue" field was cleared in this mutation.
func (*SessionMutation) LastMeaningfulOutput ¶
func (m *SessionMutation) LastMeaningfulOutput() (r time.Time, exists bool)
LastMeaningfulOutput returns the value of the "last_meaningful_output" field in the mutation.
func (*SessionMutation) LastMeaningfulOutputCleared ¶
func (m *SessionMutation) LastMeaningfulOutputCleared() bool
LastMeaningfulOutputCleared returns if the "last_meaningful_output" field was cleared in this mutation.
func (*SessionMutation) LastOutputSignature ¶
func (m *SessionMutation) LastOutputSignature() (r string, exists bool)
LastOutputSignature returns the value of the "last_output_signature" field in the mutation.
func (*SessionMutation) LastOutputSignatureCleared ¶
func (m *SessionMutation) LastOutputSignatureCleared() bool
LastOutputSignatureCleared returns if the "last_output_signature" field was cleared in this mutation.
func (*SessionMutation) LastTerminalUpdate ¶
func (m *SessionMutation) LastTerminalUpdate() (r time.Time, exists bool)
LastTerminalUpdate returns the value of the "last_terminal_update" field in the mutation.
func (*SessionMutation) LastTerminalUpdateCleared ¶
func (m *SessionMutation) LastTerminalUpdateCleared() bool
LastTerminalUpdateCleared returns if the "last_terminal_update" field was cleared in this mutation.
func (*SessionMutation) LastViewed ¶
func (m *SessionMutation) LastViewed() (r time.Time, exists bool)
LastViewed returns the value of the "last_viewed" field in the mutation.
func (*SessionMutation) LastViewedCleared ¶
func (m *SessionMutation) LastViewedCleared() bool
LastViewedCleared returns if the "last_viewed" field was cleared in this mutation.
func (*SessionMutation) McpServerURL ¶ added in v1.23.1
func (m *SessionMutation) McpServerURL() (r string, exists bool)
McpServerURL returns the value of the "mcp_server_url" field in the mutation.
func (*SessionMutation) McpServerURLCleared ¶ added in v1.23.1
func (m *SessionMutation) McpServerURLCleared() bool
McpServerURLCleared returns if the "mcp_server_url" field was cleared in this mutation.
func (*SessionMutation) OldAutoYes ¶
func (m *SessionMutation) OldAutoYes(ctx context.Context) (v bool, err error)
OldAutoYes returns the old "auto_yes" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldBranch ¶
func (m *SessionMutation) OldBranch(ctx context.Context) (v string, err error)
OldBranch returns the old "branch" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldCategory ¶
func (m *SessionMutation) OldCategory(ctx context.Context) (v string, err error)
OldCategory returns the old "category" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldExistingWorktree ¶
func (m *SessionMutation) OldExistingWorktree(ctx context.Context) (v string, err error)
OldExistingWorktree returns the old "existing_worktree" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) 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 (*SessionMutation) OldHeight ¶
func (m *SessionMutation) OldHeight(ctx context.Context) (v int, err error)
OldHeight returns the old "height" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldInitialPrompt ¶ added in v1.23.0
func (m *SessionMutation) OldInitialPrompt(ctx context.Context) (v string, err error)
OldInitialPrompt returns the old "initial_prompt" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldIsExpanded ¶
func (m *SessionMutation) OldIsExpanded(ctx context.Context) (v bool, err error)
OldIsExpanded returns the old "is_expanded" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldLastAcknowledged ¶
OldLastAcknowledged returns the old "last_acknowledged" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldLastAddedToQueue ¶
OldLastAddedToQueue returns the old "last_added_to_queue" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldLastMeaningfulOutput ¶
OldLastMeaningfulOutput returns the old "last_meaningful_output" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldLastOutputSignature ¶
func (m *SessionMutation) OldLastOutputSignature(ctx context.Context) (v string, err error)
OldLastOutputSignature returns the old "last_output_signature" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldLastTerminalUpdate ¶
OldLastTerminalUpdate returns the old "last_terminal_update" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldLastViewed ¶
OldLastViewed returns the old "last_viewed" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldMcpServerURL ¶ added in v1.23.1
func (m *SessionMutation) OldMcpServerURL(ctx context.Context) (v string, err error)
OldMcpServerURL returns the old "mcp_server_url" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldOneShot ¶ added in v1.23.0
func (m *SessionMutation) OldOneShot(ctx context.Context) (v bool, err error)
OldOneShot returns the old "one_shot" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldPath ¶
func (m *SessionMutation) OldPath(ctx context.Context) (v string, err error)
OldPath returns the old "path" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldProgram ¶
func (m *SessionMutation) OldProgram(ctx context.Context) (v string, err error)
OldProgram returns the old "program" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldPrompt ¶
func (m *SessionMutation) OldPrompt(ctx context.Context) (v string, err error)
OldPrompt returns the old "prompt" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldSessionType ¶
func (m *SessionMutation) OldSessionType(ctx context.Context) (v string, err error)
OldSessionType returns the old "session_type" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldStatus ¶
func (m *SessionMutation) OldStatus(ctx context.Context) (v int, err error)
OldStatus returns the old "status" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldTitle ¶
func (m *SessionMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldTmuxPrefix ¶
func (m *SessionMutation) OldTmuxPrefix(ctx context.Context) (v string, err error)
OldTmuxPrefix returns the old "tmux_prefix" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldUUID ¶ added in v1.15.0
func (m *SessionMutation) OldUUID(ctx context.Context) (v string, err error)
OldUUID returns the old "uuid" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldWidth ¶
func (m *SessionMutation) OldWidth(ctx context.Context) (v int, err error)
OldWidth returns the old "width" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldWorkingDir ¶
func (m *SessionMutation) OldWorkingDir(ctx context.Context) (v string, err error)
OldWorkingDir returns the old "working_dir" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OneShot ¶ added in v1.23.0
func (m *SessionMutation) OneShot() (r bool, exists bool)
OneShot returns the value of the "one_shot" field in the mutation.
func (*SessionMutation) Path ¶
func (m *SessionMutation) Path() (r string, exists bool)
Path returns the value of the "path" field in the mutation.
func (*SessionMutation) Program ¶
func (m *SessionMutation) Program() (r string, exists bool)
Program returns the value of the "program" field in the mutation.
func (*SessionMutation) ProjectCleared ¶ added in v1.23.0
func (m *SessionMutation) ProjectCleared() bool
ProjectCleared reports if the "project" edge to the Project entity was cleared.
func (*SessionMutation) ProjectID ¶ added in v1.23.0
func (m *SessionMutation) ProjectID() (id int, exists bool)
ProjectID returns the "project" edge ID in the mutation.
func (*SessionMutation) ProjectIDs ¶ added in v1.23.0
func (m *SessionMutation) ProjectIDs() (ids []int)
ProjectIDs returns the "project" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProjectID instead. It exists only for internal usage by the builders.
func (*SessionMutation) Prompt ¶
func (m *SessionMutation) Prompt() (r string, exists bool)
Prompt returns the value of the "prompt" field in the mutation.
func (*SessionMutation) PromptCleared ¶
func (m *SessionMutation) PromptCleared() bool
PromptCleared returns if the "prompt" field was cleared in this mutation.
func (*SessionMutation) RemoveTagIDs ¶
func (m *SessionMutation) RemoveTagIDs(ids ...int)
RemoveTagIDs removes the "tags" edge to the Tag entity by IDs.
func (*SessionMutation) RemovedEdges ¶
func (m *SessionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SessionMutation) RemovedIDs ¶
func (m *SessionMutation) 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 (*SessionMutation) RemovedTagsIDs ¶
func (m *SessionMutation) RemovedTagsIDs() (ids []int)
RemovedTags returns the removed IDs of the "tags" edge to the Tag entity.
func (*SessionMutation) ResetAutoYes ¶
func (m *SessionMutation) ResetAutoYes()
ResetAutoYes resets all changes to the "auto_yes" field.
func (*SessionMutation) ResetBranch ¶
func (m *SessionMutation) ResetBranch()
ResetBranch resets all changes to the "branch" field.
func (*SessionMutation) ResetCategory ¶
func (m *SessionMutation) ResetCategory()
ResetCategory resets all changes to the "category" field.
func (*SessionMutation) ResetClaudeSession ¶
func (m *SessionMutation) ResetClaudeSession()
ResetClaudeSession resets all changes to the "claude_session" edge.
func (*SessionMutation) ResetCreatedAt ¶
func (m *SessionMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SessionMutation) ResetDiffStats ¶
func (m *SessionMutation) ResetDiffStats()
ResetDiffStats resets all changes to the "diff_stats" edge.
func (*SessionMutation) ResetEdge ¶
func (m *SessionMutation) 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 (*SessionMutation) ResetExistingWorktree ¶
func (m *SessionMutation) ResetExistingWorktree()
ResetExistingWorktree resets all changes to the "existing_worktree" field.
func (*SessionMutation) ResetField ¶
func (m *SessionMutation) 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 (*SessionMutation) ResetHeight ¶
func (m *SessionMutation) ResetHeight()
ResetHeight resets all changes to the "height" field.
func (*SessionMutation) ResetInitialPrompt ¶ added in v1.23.0
func (m *SessionMutation) ResetInitialPrompt()
ResetInitialPrompt resets all changes to the "initial_prompt" field.
func (*SessionMutation) ResetIsExpanded ¶
func (m *SessionMutation) ResetIsExpanded()
ResetIsExpanded resets all changes to the "is_expanded" field.
func (*SessionMutation) ResetLastAcknowledged ¶
func (m *SessionMutation) ResetLastAcknowledged()
ResetLastAcknowledged resets all changes to the "last_acknowledged" field.
func (*SessionMutation) ResetLastAddedToQueue ¶
func (m *SessionMutation) ResetLastAddedToQueue()
ResetLastAddedToQueue resets all changes to the "last_added_to_queue" field.
func (*SessionMutation) ResetLastMeaningfulOutput ¶
func (m *SessionMutation) ResetLastMeaningfulOutput()
ResetLastMeaningfulOutput resets all changes to the "last_meaningful_output" field.
func (*SessionMutation) ResetLastOutputSignature ¶
func (m *SessionMutation) ResetLastOutputSignature()
ResetLastOutputSignature resets all changes to the "last_output_signature" field.
func (*SessionMutation) ResetLastTerminalUpdate ¶
func (m *SessionMutation) ResetLastTerminalUpdate()
ResetLastTerminalUpdate resets all changes to the "last_terminal_update" field.
func (*SessionMutation) ResetLastViewed ¶
func (m *SessionMutation) ResetLastViewed()
ResetLastViewed resets all changes to the "last_viewed" field.
func (*SessionMutation) ResetMcpServerURL ¶ added in v1.23.1
func (m *SessionMutation) ResetMcpServerURL()
ResetMcpServerURL resets all changes to the "mcp_server_url" field.
func (*SessionMutation) ResetOneShot ¶ added in v1.23.0
func (m *SessionMutation) ResetOneShot()
ResetOneShot resets all changes to the "one_shot" field.
func (*SessionMutation) ResetPath ¶
func (m *SessionMutation) ResetPath()
ResetPath resets all changes to the "path" field.
func (*SessionMutation) ResetProgram ¶
func (m *SessionMutation) ResetProgram()
ResetProgram resets all changes to the "program" field.
func (*SessionMutation) ResetProject ¶ added in v1.23.0
func (m *SessionMutation) ResetProject()
ResetProject resets all changes to the "project" edge.
func (*SessionMutation) ResetPrompt ¶
func (m *SessionMutation) ResetPrompt()
ResetPrompt resets all changes to the "prompt" field.
func (*SessionMutation) ResetSessionType ¶
func (m *SessionMutation) ResetSessionType()
ResetSessionType resets all changes to the "session_type" field.
func (*SessionMutation) ResetStatus ¶
func (m *SessionMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*SessionMutation) ResetTags ¶
func (m *SessionMutation) ResetTags()
ResetTags resets all changes to the "tags" edge.
func (*SessionMutation) ResetTitle ¶
func (m *SessionMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*SessionMutation) ResetTmuxPrefix ¶
func (m *SessionMutation) ResetTmuxPrefix()
ResetTmuxPrefix resets all changes to the "tmux_prefix" field.
func (*SessionMutation) ResetUUID ¶ added in v1.15.0
func (m *SessionMutation) ResetUUID()
ResetUUID resets all changes to the "uuid" field.
func (*SessionMutation) ResetUpdatedAt ¶
func (m *SessionMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SessionMutation) ResetWidth ¶
func (m *SessionMutation) ResetWidth()
ResetWidth resets all changes to the "width" field.
func (*SessionMutation) ResetWorkingDir ¶
func (m *SessionMutation) ResetWorkingDir()
ResetWorkingDir resets all changes to the "working_dir" field.
func (*SessionMutation) ResetWorktree ¶
func (m *SessionMutation) ResetWorktree()
ResetWorktree resets all changes to the "worktree" edge.
func (*SessionMutation) SessionType ¶
func (m *SessionMutation) SessionType() (r string, exists bool)
SessionType returns the value of the "session_type" field in the mutation.
func (*SessionMutation) SessionTypeCleared ¶
func (m *SessionMutation) SessionTypeCleared() bool
SessionTypeCleared returns if the "session_type" field was cleared in this mutation.
func (*SessionMutation) SetAutoYes ¶
func (m *SessionMutation) SetAutoYes(b bool)
SetAutoYes sets the "auto_yes" field.
func (*SessionMutation) SetBranch ¶
func (m *SessionMutation) SetBranch(s string)
SetBranch sets the "branch" field.
func (*SessionMutation) SetCategory ¶
func (m *SessionMutation) SetCategory(s string)
SetCategory sets the "category" field.
func (*SessionMutation) SetClaudeSessionID ¶
func (m *SessionMutation) SetClaudeSessionID(id int)
SetClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by id.
func (*SessionMutation) SetCreatedAt ¶
func (m *SessionMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SessionMutation) SetDiffStatsID ¶
func (m *SessionMutation) SetDiffStatsID(id int)
SetDiffStatsID sets the "diff_stats" edge to the DiffStats entity by id.
func (*SessionMutation) SetExistingWorktree ¶
func (m *SessionMutation) SetExistingWorktree(s string)
SetExistingWorktree sets the "existing_worktree" field.
func (*SessionMutation) SetField ¶
func (m *SessionMutation) 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 (*SessionMutation) SetHeight ¶
func (m *SessionMutation) SetHeight(i int)
SetHeight sets the "height" field.
func (*SessionMutation) SetInitialPrompt ¶ added in v1.23.0
func (m *SessionMutation) SetInitialPrompt(s string)
SetInitialPrompt sets the "initial_prompt" field.
func (*SessionMutation) SetIsExpanded ¶
func (m *SessionMutation) SetIsExpanded(b bool)
SetIsExpanded sets the "is_expanded" field.
func (*SessionMutation) SetLastAcknowledged ¶
func (m *SessionMutation) SetLastAcknowledged(t time.Time)
SetLastAcknowledged sets the "last_acknowledged" field.
func (*SessionMutation) SetLastAddedToQueue ¶
func (m *SessionMutation) SetLastAddedToQueue(t time.Time)
SetLastAddedToQueue sets the "last_added_to_queue" field.
func (*SessionMutation) SetLastMeaningfulOutput ¶
func (m *SessionMutation) SetLastMeaningfulOutput(t time.Time)
SetLastMeaningfulOutput sets the "last_meaningful_output" field.
func (*SessionMutation) SetLastOutputSignature ¶
func (m *SessionMutation) SetLastOutputSignature(s string)
SetLastOutputSignature sets the "last_output_signature" field.
func (*SessionMutation) SetLastTerminalUpdate ¶
func (m *SessionMutation) SetLastTerminalUpdate(t time.Time)
SetLastTerminalUpdate sets the "last_terminal_update" field.
func (*SessionMutation) SetLastViewed ¶
func (m *SessionMutation) SetLastViewed(t time.Time)
SetLastViewed sets the "last_viewed" field.
func (*SessionMutation) SetMcpServerURL ¶ added in v1.23.1
func (m *SessionMutation) SetMcpServerURL(s string)
SetMcpServerURL sets the "mcp_server_url" field.
func (*SessionMutation) SetOneShot ¶ added in v1.23.0
func (m *SessionMutation) SetOneShot(b bool)
SetOneShot sets the "one_shot" field.
func (*SessionMutation) SetOp ¶
func (m *SessionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*SessionMutation) SetPath ¶
func (m *SessionMutation) SetPath(s string)
SetPath sets the "path" field.
func (*SessionMutation) SetProgram ¶
func (m *SessionMutation) SetProgram(s string)
SetProgram sets the "program" field.
func (*SessionMutation) SetProjectID ¶ added in v1.23.0
func (m *SessionMutation) SetProjectID(id int)
SetProjectID sets the "project" edge to the Project entity by id.
func (*SessionMutation) SetPrompt ¶
func (m *SessionMutation) SetPrompt(s string)
SetPrompt sets the "prompt" field.
func (*SessionMutation) SetSessionType ¶
func (m *SessionMutation) SetSessionType(s string)
SetSessionType sets the "session_type" field.
func (*SessionMutation) SetStatus ¶
func (m *SessionMutation) SetStatus(i int)
SetStatus sets the "status" field.
func (*SessionMutation) SetTitle ¶
func (m *SessionMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*SessionMutation) SetTmuxPrefix ¶
func (m *SessionMutation) SetTmuxPrefix(s string)
SetTmuxPrefix sets the "tmux_prefix" field.
func (*SessionMutation) SetUUID ¶ added in v1.15.0
func (m *SessionMutation) SetUUID(s string)
SetUUID sets the "uuid" field.
func (*SessionMutation) SetUpdatedAt ¶
func (m *SessionMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SessionMutation) SetWidth ¶
func (m *SessionMutation) SetWidth(i int)
SetWidth sets the "width" field.
func (*SessionMutation) SetWorkingDir ¶
func (m *SessionMutation) SetWorkingDir(s string)
SetWorkingDir sets the "working_dir" field.
func (*SessionMutation) SetWorktreeID ¶
func (m *SessionMutation) SetWorktreeID(id int)
SetWorktreeID sets the "worktree" edge to the Worktree entity by id.
func (*SessionMutation) Status ¶
func (m *SessionMutation) Status() (r int, exists bool)
Status returns the value of the "status" field in the mutation.
func (*SessionMutation) TagsCleared ¶
func (m *SessionMutation) TagsCleared() bool
TagsCleared reports if the "tags" edge to the Tag entity was cleared.
func (*SessionMutation) TagsIDs ¶
func (m *SessionMutation) TagsIDs() (ids []int)
TagsIDs returns the "tags" edge IDs in the mutation.
func (*SessionMutation) Title ¶
func (m *SessionMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (*SessionMutation) TmuxPrefix ¶
func (m *SessionMutation) TmuxPrefix() (r string, exists bool)
TmuxPrefix returns the value of the "tmux_prefix" field in the mutation.
func (*SessionMutation) TmuxPrefixCleared ¶
func (m *SessionMutation) TmuxPrefixCleared() bool
TmuxPrefixCleared returns if the "tmux_prefix" field was cleared in this mutation.
func (SessionMutation) Tx ¶
func (m SessionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SessionMutation) Type ¶
func (m *SessionMutation) Type() string
Type returns the node type of this mutation (Session).
func (*SessionMutation) UUID ¶ added in v1.15.0
func (m *SessionMutation) UUID() (r string, exists bool)
UUID returns the value of the "uuid" field in the mutation.
func (*SessionMutation) UUIDCleared ¶ added in v1.15.0
func (m *SessionMutation) UUIDCleared() bool
UUIDCleared returns if the "uuid" field was cleared in this mutation.
func (*SessionMutation) UpdatedAt ¶
func (m *SessionMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*SessionMutation) Where ¶
func (m *SessionMutation) Where(ps ...predicate.Session)
Where appends a list predicates to the SessionMutation builder.
func (*SessionMutation) WhereP ¶
func (m *SessionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the SessionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*SessionMutation) Width ¶
func (m *SessionMutation) Width() (r int, exists bool)
Width returns the value of the "width" field in the mutation.
func (*SessionMutation) WidthCleared ¶
func (m *SessionMutation) WidthCleared() bool
WidthCleared returns if the "width" field was cleared in this mutation.
func (*SessionMutation) WorkingDir ¶
func (m *SessionMutation) WorkingDir() (r string, exists bool)
WorkingDir returns the value of the "working_dir" field in the mutation.
func (*SessionMutation) WorkingDirCleared ¶
func (m *SessionMutation) WorkingDirCleared() bool
WorkingDirCleared returns if the "working_dir" field was cleared in this mutation.
func (*SessionMutation) WorktreeCleared ¶
func (m *SessionMutation) WorktreeCleared() bool
WorktreeCleared reports if the "worktree" edge to the Worktree entity was cleared.
func (*SessionMutation) WorktreeID ¶
func (m *SessionMutation) WorktreeID() (id int, exists bool)
WorktreeID returns the "worktree" edge ID in the mutation.
func (*SessionMutation) WorktreeIDs ¶
func (m *SessionMutation) WorktreeIDs() (ids []int)
WorktreeIDs returns the "worktree" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use WorktreeID instead. It exists only for internal usage by the builders.
type SessionQuery ¶
type SessionQuery struct {
// contains filtered or unexported fields
}
SessionQuery is the builder for querying Session entities.
func (*SessionQuery) Aggregate ¶
func (_q *SessionQuery) Aggregate(fns ...AggregateFunc) *SessionSelect
Aggregate returns a SessionSelect configured with the given aggregations.
func (*SessionQuery) All ¶
func (_q *SessionQuery) All(ctx context.Context) ([]*Session, error)
All executes the query and returns a list of Sessions.
func (*SessionQuery) AllX ¶
func (_q *SessionQuery) AllX(ctx context.Context) []*Session
AllX is like All, but panics if an error occurs.
func (*SessionQuery) Clone ¶
func (_q *SessionQuery) Clone() *SessionQuery
Clone returns a duplicate of the SessionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SessionQuery) Count ¶
func (_q *SessionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SessionQuery) CountX ¶
func (_q *SessionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SessionQuery) Exist ¶
func (_q *SessionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SessionQuery) ExistX ¶
func (_q *SessionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SessionQuery) First ¶
func (_q *SessionQuery) First(ctx context.Context) (*Session, error)
First returns the first Session entity from the query. Returns a *NotFoundError when no Session was found.
func (*SessionQuery) FirstID ¶
func (_q *SessionQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Session ID from the query. Returns a *NotFoundError when no Session ID was found.
func (*SessionQuery) FirstIDX ¶
func (_q *SessionQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*SessionQuery) FirstX ¶
func (_q *SessionQuery) FirstX(ctx context.Context) *Session
FirstX is like First, but panics if an error occurs.
func (*SessionQuery) GroupBy ¶
func (_q *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy
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 {
Title string `json:"title,omitempty"`
Count int `json:"count,omitempty"`
}
client.Session.Query().
GroupBy(session.FieldTitle).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*SessionQuery) IDs ¶
func (_q *SessionQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Session IDs.
func (*SessionQuery) IDsX ¶
func (_q *SessionQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*SessionQuery) Limit ¶
func (_q *SessionQuery) Limit(limit int) *SessionQuery
Limit the number of records to be returned by this query.
func (*SessionQuery) Offset ¶
func (_q *SessionQuery) Offset(offset int) *SessionQuery
Offset to start from.
func (*SessionQuery) Only ¶
func (_q *SessionQuery) Only(ctx context.Context) (*Session, error)
Only returns a single Session entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Session entity is found. Returns a *NotFoundError when no Session entities are found.
func (*SessionQuery) OnlyID ¶
func (_q *SessionQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Session ID in the query. Returns a *NotSingularError when more than one Session ID is found. Returns a *NotFoundError when no entities are found.
func (*SessionQuery) OnlyIDX ¶
func (_q *SessionQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SessionQuery) OnlyX ¶
func (_q *SessionQuery) OnlyX(ctx context.Context) *Session
OnlyX is like Only, but panics if an error occurs.
func (*SessionQuery) Order ¶
func (_q *SessionQuery) Order(o ...session.OrderOption) *SessionQuery
Order specifies how the records should be ordered.
func (*SessionQuery) QueryClaudeSession ¶
func (_q *SessionQuery) QueryClaudeSession() *ClaudeSessionQuery
QueryClaudeSession chains the current query on the "claude_session" edge.
func (*SessionQuery) QueryDiffStats ¶
func (_q *SessionQuery) QueryDiffStats() *DiffStatsQuery
QueryDiffStats chains the current query on the "diff_stats" edge.
func (*SessionQuery) QueryProject ¶ added in v1.23.0
func (_q *SessionQuery) QueryProject() *ProjectQuery
QueryProject chains the current query on the "project" edge.
func (*SessionQuery) QueryTags ¶
func (_q *SessionQuery) QueryTags() *TagQuery
QueryTags chains the current query on the "tags" edge.
func (*SessionQuery) QueryWorktree ¶
func (_q *SessionQuery) QueryWorktree() *WorktreeQuery
QueryWorktree chains the current query on the "worktree" edge.
func (*SessionQuery) Select ¶
func (_q *SessionQuery) Select(fields ...string) *SessionSelect
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 {
Title string `json:"title,omitempty"`
}
client.Session.Query().
Select(session.FieldTitle).
Scan(ctx, &v)
func (*SessionQuery) Unique ¶
func (_q *SessionQuery) Unique(unique bool) *SessionQuery
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 (*SessionQuery) Where ¶
func (_q *SessionQuery) Where(ps ...predicate.Session) *SessionQuery
Where adds a new predicate for the SessionQuery builder.
func (*SessionQuery) WithClaudeSession ¶
func (_q *SessionQuery) WithClaudeSession(opts ...func(*ClaudeSessionQuery)) *SessionQuery
WithClaudeSession tells the query-builder to eager-load the nodes that are connected to the "claude_session" edge. The optional arguments are used to configure the query builder of the edge.
func (*SessionQuery) WithDiffStats ¶
func (_q *SessionQuery) WithDiffStats(opts ...func(*DiffStatsQuery)) *SessionQuery
WithDiffStats tells the query-builder to eager-load the nodes that are connected to the "diff_stats" edge. The optional arguments are used to configure the query builder of the edge.
func (*SessionQuery) WithProject ¶ added in v1.23.0
func (_q *SessionQuery) WithProject(opts ...func(*ProjectQuery)) *SessionQuery
WithProject tells the query-builder to eager-load the nodes that are connected to the "project" edge. The optional arguments are used to configure the query builder of the edge.
func (*SessionQuery) WithTags ¶
func (_q *SessionQuery) WithTags(opts ...func(*TagQuery)) *SessionQuery
WithTags tells the query-builder to eager-load the nodes that are connected to the "tags" edge. The optional arguments are used to configure the query builder of the edge.
func (*SessionQuery) WithWorktree ¶
func (_q *SessionQuery) WithWorktree(opts ...func(*WorktreeQuery)) *SessionQuery
WithWorktree tells the query-builder to eager-load the nodes that are connected to the "worktree" edge. The optional arguments are used to configure the query builder of the edge.
type SessionSelect ¶
type SessionSelect struct {
*SessionQuery
// contains filtered or unexported fields
}
SessionSelect is the builder for selecting fields of Session entities.
func (*SessionSelect) Aggregate ¶
func (_s *SessionSelect) Aggregate(fns ...AggregateFunc) *SessionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SessionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Scan ¶
func (_s *SessionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SessionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SessionUpdate ¶
type SessionUpdate struct {
// contains filtered or unexported fields
}
SessionUpdate is the builder for updating Session entities.
func (*SessionUpdate) AddHeight ¶
func (_u *SessionUpdate) AddHeight(v int) *SessionUpdate
AddHeight adds value to the "height" field.
func (*SessionUpdate) AddStatus ¶
func (_u *SessionUpdate) AddStatus(v int) *SessionUpdate
AddStatus adds value to the "status" field.
func (*SessionUpdate) AddTagIDs ¶
func (_u *SessionUpdate) AddTagIDs(ids ...int) *SessionUpdate
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*SessionUpdate) AddTags ¶
func (_u *SessionUpdate) AddTags(v ...*Tag) *SessionUpdate
AddTags adds the "tags" edges to the Tag entity.
func (*SessionUpdate) AddWidth ¶
func (_u *SessionUpdate) AddWidth(v int) *SessionUpdate
AddWidth adds value to the "width" field.
func (*SessionUpdate) ClearBranch ¶
func (_u *SessionUpdate) ClearBranch() *SessionUpdate
ClearBranch clears the value of the "branch" field.
func (*SessionUpdate) ClearCategory ¶
func (_u *SessionUpdate) ClearCategory() *SessionUpdate
ClearCategory clears the value of the "category" field.
func (*SessionUpdate) ClearClaudeSession ¶
func (_u *SessionUpdate) ClearClaudeSession() *SessionUpdate
ClearClaudeSession clears the "claude_session" edge to the ClaudeSession entity.
func (*SessionUpdate) ClearDiffStats ¶
func (_u *SessionUpdate) ClearDiffStats() *SessionUpdate
ClearDiffStats clears the "diff_stats" edge to the DiffStats entity.
func (*SessionUpdate) ClearExistingWorktree ¶
func (_u *SessionUpdate) ClearExistingWorktree() *SessionUpdate
ClearExistingWorktree clears the value of the "existing_worktree" field.
func (*SessionUpdate) ClearHeight ¶
func (_u *SessionUpdate) ClearHeight() *SessionUpdate
ClearHeight clears the value of the "height" field.
func (*SessionUpdate) ClearInitialPrompt ¶ added in v1.23.0
func (_u *SessionUpdate) ClearInitialPrompt() *SessionUpdate
ClearInitialPrompt clears the value of the "initial_prompt" field.
func (*SessionUpdate) ClearLastAcknowledged ¶
func (_u *SessionUpdate) ClearLastAcknowledged() *SessionUpdate
ClearLastAcknowledged clears the value of the "last_acknowledged" field.
func (*SessionUpdate) ClearLastAddedToQueue ¶
func (_u *SessionUpdate) ClearLastAddedToQueue() *SessionUpdate
ClearLastAddedToQueue clears the value of the "last_added_to_queue" field.
func (*SessionUpdate) ClearLastMeaningfulOutput ¶
func (_u *SessionUpdate) ClearLastMeaningfulOutput() *SessionUpdate
ClearLastMeaningfulOutput clears the value of the "last_meaningful_output" field.
func (*SessionUpdate) ClearLastOutputSignature ¶
func (_u *SessionUpdate) ClearLastOutputSignature() *SessionUpdate
ClearLastOutputSignature clears the value of the "last_output_signature" field.
func (*SessionUpdate) ClearLastTerminalUpdate ¶
func (_u *SessionUpdate) ClearLastTerminalUpdate() *SessionUpdate
ClearLastTerminalUpdate clears the value of the "last_terminal_update" field.
func (*SessionUpdate) ClearLastViewed ¶
func (_u *SessionUpdate) ClearLastViewed() *SessionUpdate
ClearLastViewed clears the value of the "last_viewed" field.
func (*SessionUpdate) ClearMcpServerURL ¶ added in v1.23.1
func (_u *SessionUpdate) ClearMcpServerURL() *SessionUpdate
ClearMcpServerURL clears the value of the "mcp_server_url" field.
func (*SessionUpdate) ClearProject ¶ added in v1.23.0
func (_u *SessionUpdate) ClearProject() *SessionUpdate
ClearProject clears the "project" edge to the Project entity.
func (*SessionUpdate) ClearPrompt ¶
func (_u *SessionUpdate) ClearPrompt() *SessionUpdate
ClearPrompt clears the value of the "prompt" field.
func (*SessionUpdate) ClearSessionType ¶
func (_u *SessionUpdate) ClearSessionType() *SessionUpdate
ClearSessionType clears the value of the "session_type" field.
func (*SessionUpdate) ClearTags ¶
func (_u *SessionUpdate) ClearTags() *SessionUpdate
ClearTags clears all "tags" edges to the Tag entity.
func (*SessionUpdate) ClearTmuxPrefix ¶
func (_u *SessionUpdate) ClearTmuxPrefix() *SessionUpdate
ClearTmuxPrefix clears the value of the "tmux_prefix" field.
func (*SessionUpdate) ClearUUID ¶ added in v1.15.0
func (_u *SessionUpdate) ClearUUID() *SessionUpdate
ClearUUID clears the value of the "uuid" field.
func (*SessionUpdate) ClearWidth ¶
func (_u *SessionUpdate) ClearWidth() *SessionUpdate
ClearWidth clears the value of the "width" field.
func (*SessionUpdate) ClearWorkingDir ¶
func (_u *SessionUpdate) ClearWorkingDir() *SessionUpdate
ClearWorkingDir clears the value of the "working_dir" field.
func (*SessionUpdate) ClearWorktree ¶
func (_u *SessionUpdate) ClearWorktree() *SessionUpdate
ClearWorktree clears the "worktree" edge to the Worktree entity.
func (*SessionUpdate) Exec ¶
func (_u *SessionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionUpdate) ExecX ¶
func (_u *SessionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpdate) Mutation ¶
func (_u *SessionUpdate) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionUpdate) RemoveTagIDs ¶
func (_u *SessionUpdate) RemoveTagIDs(ids ...int) *SessionUpdate
RemoveTagIDs removes the "tags" edge to Tag entities by IDs.
func (*SessionUpdate) RemoveTags ¶
func (_u *SessionUpdate) RemoveTags(v ...*Tag) *SessionUpdate
RemoveTags removes "tags" edges to Tag entities.
func (*SessionUpdate) Save ¶
func (_u *SessionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SessionUpdate) SaveX ¶
func (_u *SessionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SessionUpdate) SetAutoYes ¶
func (_u *SessionUpdate) SetAutoYes(v bool) *SessionUpdate
SetAutoYes sets the "auto_yes" field.
func (*SessionUpdate) SetBranch ¶
func (_u *SessionUpdate) SetBranch(v string) *SessionUpdate
SetBranch sets the "branch" field.
func (*SessionUpdate) SetCategory ¶
func (_u *SessionUpdate) SetCategory(v string) *SessionUpdate
SetCategory sets the "category" field.
func (*SessionUpdate) SetClaudeSession ¶
func (_u *SessionUpdate) SetClaudeSession(v *ClaudeSession) *SessionUpdate
SetClaudeSession sets the "claude_session" edge to the ClaudeSession entity.
func (*SessionUpdate) SetClaudeSessionID ¶
func (_u *SessionUpdate) SetClaudeSessionID(id int) *SessionUpdate
SetClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID.
func (*SessionUpdate) SetDiffStats ¶
func (_u *SessionUpdate) SetDiffStats(v *DiffStats) *SessionUpdate
SetDiffStats sets the "diff_stats" edge to the DiffStats entity.
func (*SessionUpdate) SetDiffStatsID ¶
func (_u *SessionUpdate) SetDiffStatsID(id int) *SessionUpdate
SetDiffStatsID sets the "diff_stats" edge to the DiffStats entity by ID.
func (*SessionUpdate) SetExistingWorktree ¶
func (_u *SessionUpdate) SetExistingWorktree(v string) *SessionUpdate
SetExistingWorktree sets the "existing_worktree" field.
func (*SessionUpdate) SetHeight ¶
func (_u *SessionUpdate) SetHeight(v int) *SessionUpdate
SetHeight sets the "height" field.
func (*SessionUpdate) SetInitialPrompt ¶ added in v1.23.0
func (_u *SessionUpdate) SetInitialPrompt(v string) *SessionUpdate
SetInitialPrompt sets the "initial_prompt" field.
func (*SessionUpdate) SetIsExpanded ¶
func (_u *SessionUpdate) SetIsExpanded(v bool) *SessionUpdate
SetIsExpanded sets the "is_expanded" field.
func (*SessionUpdate) SetLastAcknowledged ¶
func (_u *SessionUpdate) SetLastAcknowledged(v time.Time) *SessionUpdate
SetLastAcknowledged sets the "last_acknowledged" field.
func (*SessionUpdate) SetLastAddedToQueue ¶
func (_u *SessionUpdate) SetLastAddedToQueue(v time.Time) *SessionUpdate
SetLastAddedToQueue sets the "last_added_to_queue" field.
func (*SessionUpdate) SetLastMeaningfulOutput ¶
func (_u *SessionUpdate) SetLastMeaningfulOutput(v time.Time) *SessionUpdate
SetLastMeaningfulOutput sets the "last_meaningful_output" field.
func (*SessionUpdate) SetLastOutputSignature ¶
func (_u *SessionUpdate) SetLastOutputSignature(v string) *SessionUpdate
SetLastOutputSignature sets the "last_output_signature" field.
func (*SessionUpdate) SetLastTerminalUpdate ¶
func (_u *SessionUpdate) SetLastTerminalUpdate(v time.Time) *SessionUpdate
SetLastTerminalUpdate sets the "last_terminal_update" field.
func (*SessionUpdate) SetLastViewed ¶
func (_u *SessionUpdate) SetLastViewed(v time.Time) *SessionUpdate
SetLastViewed sets the "last_viewed" field.
func (*SessionUpdate) SetMcpServerURL ¶ added in v1.23.1
func (_u *SessionUpdate) SetMcpServerURL(v string) *SessionUpdate
SetMcpServerURL sets the "mcp_server_url" field.
func (*SessionUpdate) SetNillableAutoYes ¶
func (_u *SessionUpdate) SetNillableAutoYes(v *bool) *SessionUpdate
SetNillableAutoYes sets the "auto_yes" field if the given value is not nil.
func (*SessionUpdate) SetNillableBranch ¶
func (_u *SessionUpdate) SetNillableBranch(v *string) *SessionUpdate
SetNillableBranch sets the "branch" field if the given value is not nil.
func (*SessionUpdate) SetNillableCategory ¶
func (_u *SessionUpdate) SetNillableCategory(v *string) *SessionUpdate
SetNillableCategory sets the "category" field if the given value is not nil.
func (*SessionUpdate) SetNillableClaudeSessionID ¶
func (_u *SessionUpdate) SetNillableClaudeSessionID(id *int) *SessionUpdate
SetNillableClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID if the given value is not nil.
func (*SessionUpdate) SetNillableDiffStatsID ¶
func (_u *SessionUpdate) SetNillableDiffStatsID(id *int) *SessionUpdate
SetNillableDiffStatsID sets the "diff_stats" edge to the DiffStats entity by ID if the given value is not nil.
func (*SessionUpdate) SetNillableExistingWorktree ¶
func (_u *SessionUpdate) SetNillableExistingWorktree(v *string) *SessionUpdate
SetNillableExistingWorktree sets the "existing_worktree" field if the given value is not nil.
func (*SessionUpdate) SetNillableHeight ¶
func (_u *SessionUpdate) SetNillableHeight(v *int) *SessionUpdate
SetNillableHeight sets the "height" field if the given value is not nil.
func (*SessionUpdate) SetNillableInitialPrompt ¶ added in v1.23.0
func (_u *SessionUpdate) SetNillableInitialPrompt(v *string) *SessionUpdate
SetNillableInitialPrompt sets the "initial_prompt" field if the given value is not nil.
func (*SessionUpdate) SetNillableIsExpanded ¶
func (_u *SessionUpdate) SetNillableIsExpanded(v *bool) *SessionUpdate
SetNillableIsExpanded sets the "is_expanded" field if the given value is not nil.
func (*SessionUpdate) SetNillableLastAcknowledged ¶
func (_u *SessionUpdate) SetNillableLastAcknowledged(v *time.Time) *SessionUpdate
SetNillableLastAcknowledged sets the "last_acknowledged" field if the given value is not nil.
func (*SessionUpdate) SetNillableLastAddedToQueue ¶
func (_u *SessionUpdate) SetNillableLastAddedToQueue(v *time.Time) *SessionUpdate
SetNillableLastAddedToQueue sets the "last_added_to_queue" field if the given value is not nil.
func (*SessionUpdate) SetNillableLastMeaningfulOutput ¶
func (_u *SessionUpdate) SetNillableLastMeaningfulOutput(v *time.Time) *SessionUpdate
SetNillableLastMeaningfulOutput sets the "last_meaningful_output" field if the given value is not nil.
func (*SessionUpdate) SetNillableLastOutputSignature ¶
func (_u *SessionUpdate) SetNillableLastOutputSignature(v *string) *SessionUpdate
SetNillableLastOutputSignature sets the "last_output_signature" field if the given value is not nil.
func (*SessionUpdate) SetNillableLastTerminalUpdate ¶
func (_u *SessionUpdate) SetNillableLastTerminalUpdate(v *time.Time) *SessionUpdate
SetNillableLastTerminalUpdate sets the "last_terminal_update" field if the given value is not nil.
func (*SessionUpdate) SetNillableLastViewed ¶
func (_u *SessionUpdate) SetNillableLastViewed(v *time.Time) *SessionUpdate
SetNillableLastViewed sets the "last_viewed" field if the given value is not nil.
func (*SessionUpdate) SetNillableMcpServerURL ¶ added in v1.23.1
func (_u *SessionUpdate) SetNillableMcpServerURL(v *string) *SessionUpdate
SetNillableMcpServerURL sets the "mcp_server_url" field if the given value is not nil.
func (*SessionUpdate) SetNillableOneShot ¶ added in v1.23.0
func (_u *SessionUpdate) SetNillableOneShot(v *bool) *SessionUpdate
SetNillableOneShot sets the "one_shot" field if the given value is not nil.
func (*SessionUpdate) SetNillablePath ¶
func (_u *SessionUpdate) SetNillablePath(v *string) *SessionUpdate
SetNillablePath sets the "path" field if the given value is not nil.
func (*SessionUpdate) SetNillableProgram ¶
func (_u *SessionUpdate) SetNillableProgram(v *string) *SessionUpdate
SetNillableProgram sets the "program" field if the given value is not nil.
func (*SessionUpdate) SetNillableProjectID ¶ added in v1.23.0
func (_u *SessionUpdate) SetNillableProjectID(id *int) *SessionUpdate
SetNillableProjectID sets the "project" edge to the Project entity by ID if the given value is not nil.
func (*SessionUpdate) SetNillablePrompt ¶
func (_u *SessionUpdate) SetNillablePrompt(v *string) *SessionUpdate
SetNillablePrompt sets the "prompt" field if the given value is not nil.
func (*SessionUpdate) SetNillableSessionType ¶
func (_u *SessionUpdate) SetNillableSessionType(v *string) *SessionUpdate
SetNillableSessionType sets the "session_type" field if the given value is not nil.
func (*SessionUpdate) SetNillableStatus ¶
func (_u *SessionUpdate) SetNillableStatus(v *int) *SessionUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SessionUpdate) SetNillableTitle ¶
func (_u *SessionUpdate) SetNillableTitle(v *string) *SessionUpdate
SetNillableTitle sets the "title" field if the given value is not nil.
func (*SessionUpdate) SetNillableTmuxPrefix ¶
func (_u *SessionUpdate) SetNillableTmuxPrefix(v *string) *SessionUpdate
SetNillableTmuxPrefix sets the "tmux_prefix" field if the given value is not nil.
func (*SessionUpdate) SetNillableUUID ¶ added in v1.15.0
func (_u *SessionUpdate) SetNillableUUID(v *string) *SessionUpdate
SetNillableUUID sets the "uuid" field if the given value is not nil.
func (*SessionUpdate) SetNillableWidth ¶
func (_u *SessionUpdate) SetNillableWidth(v *int) *SessionUpdate
SetNillableWidth sets the "width" field if the given value is not nil.
func (*SessionUpdate) SetNillableWorkingDir ¶
func (_u *SessionUpdate) SetNillableWorkingDir(v *string) *SessionUpdate
SetNillableWorkingDir sets the "working_dir" field if the given value is not nil.
func (*SessionUpdate) SetNillableWorktreeID ¶
func (_u *SessionUpdate) SetNillableWorktreeID(id *int) *SessionUpdate
SetNillableWorktreeID sets the "worktree" edge to the Worktree entity by ID if the given value is not nil.
func (*SessionUpdate) SetOneShot ¶ added in v1.23.0
func (_u *SessionUpdate) SetOneShot(v bool) *SessionUpdate
SetOneShot sets the "one_shot" field.
func (*SessionUpdate) SetPath ¶
func (_u *SessionUpdate) SetPath(v string) *SessionUpdate
SetPath sets the "path" field.
func (*SessionUpdate) SetProgram ¶
func (_u *SessionUpdate) SetProgram(v string) *SessionUpdate
SetProgram sets the "program" field.
func (*SessionUpdate) SetProject ¶ added in v1.23.0
func (_u *SessionUpdate) SetProject(v *Project) *SessionUpdate
SetProject sets the "project" edge to the Project entity.
func (*SessionUpdate) SetProjectID ¶ added in v1.23.0
func (_u *SessionUpdate) SetProjectID(id int) *SessionUpdate
SetProjectID sets the "project" edge to the Project entity by ID.
func (*SessionUpdate) SetPrompt ¶
func (_u *SessionUpdate) SetPrompt(v string) *SessionUpdate
SetPrompt sets the "prompt" field.
func (*SessionUpdate) SetSessionType ¶
func (_u *SessionUpdate) SetSessionType(v string) *SessionUpdate
SetSessionType sets the "session_type" field.
func (*SessionUpdate) SetStatus ¶
func (_u *SessionUpdate) SetStatus(v int) *SessionUpdate
SetStatus sets the "status" field.
func (*SessionUpdate) SetTitle ¶
func (_u *SessionUpdate) SetTitle(v string) *SessionUpdate
SetTitle sets the "title" field.
func (*SessionUpdate) SetTmuxPrefix ¶
func (_u *SessionUpdate) SetTmuxPrefix(v string) *SessionUpdate
SetTmuxPrefix sets the "tmux_prefix" field.
func (*SessionUpdate) SetUUID ¶ added in v1.15.0
func (_u *SessionUpdate) SetUUID(v string) *SessionUpdate
SetUUID sets the "uuid" field.
func (*SessionUpdate) SetUpdatedAt ¶
func (_u *SessionUpdate) SetUpdatedAt(v time.Time) *SessionUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpdate) SetWidth ¶
func (_u *SessionUpdate) SetWidth(v int) *SessionUpdate
SetWidth sets the "width" field.
func (*SessionUpdate) SetWorkingDir ¶
func (_u *SessionUpdate) SetWorkingDir(v string) *SessionUpdate
SetWorkingDir sets the "working_dir" field.
func (*SessionUpdate) SetWorktree ¶
func (_u *SessionUpdate) SetWorktree(v *Worktree) *SessionUpdate
SetWorktree sets the "worktree" edge to the Worktree entity.
func (*SessionUpdate) SetWorktreeID ¶
func (_u *SessionUpdate) SetWorktreeID(id int) *SessionUpdate
SetWorktreeID sets the "worktree" edge to the Worktree entity by ID.
func (*SessionUpdate) Where ¶
func (_u *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate
Where appends a list predicates to the SessionUpdate builder.
type SessionUpdateOne ¶
type SessionUpdateOne struct {
// contains filtered or unexported fields
}
SessionUpdateOne is the builder for updating a single Session entity.
func (*SessionUpdateOne) AddHeight ¶
func (_u *SessionUpdateOne) AddHeight(v int) *SessionUpdateOne
AddHeight adds value to the "height" field.
func (*SessionUpdateOne) AddStatus ¶
func (_u *SessionUpdateOne) AddStatus(v int) *SessionUpdateOne
AddStatus adds value to the "status" field.
func (*SessionUpdateOne) AddTagIDs ¶
func (_u *SessionUpdateOne) AddTagIDs(ids ...int) *SessionUpdateOne
AddTagIDs adds the "tags" edge to the Tag entity by IDs.
func (*SessionUpdateOne) AddTags ¶
func (_u *SessionUpdateOne) AddTags(v ...*Tag) *SessionUpdateOne
AddTags adds the "tags" edges to the Tag entity.
func (*SessionUpdateOne) AddWidth ¶
func (_u *SessionUpdateOne) AddWidth(v int) *SessionUpdateOne
AddWidth adds value to the "width" field.
func (*SessionUpdateOne) ClearBranch ¶
func (_u *SessionUpdateOne) ClearBranch() *SessionUpdateOne
ClearBranch clears the value of the "branch" field.
func (*SessionUpdateOne) ClearCategory ¶
func (_u *SessionUpdateOne) ClearCategory() *SessionUpdateOne
ClearCategory clears the value of the "category" field.
func (*SessionUpdateOne) ClearClaudeSession ¶
func (_u *SessionUpdateOne) ClearClaudeSession() *SessionUpdateOne
ClearClaudeSession clears the "claude_session" edge to the ClaudeSession entity.
func (*SessionUpdateOne) ClearDiffStats ¶
func (_u *SessionUpdateOne) ClearDiffStats() *SessionUpdateOne
ClearDiffStats clears the "diff_stats" edge to the DiffStats entity.
func (*SessionUpdateOne) ClearExistingWorktree ¶
func (_u *SessionUpdateOne) ClearExistingWorktree() *SessionUpdateOne
ClearExistingWorktree clears the value of the "existing_worktree" field.
func (*SessionUpdateOne) ClearHeight ¶
func (_u *SessionUpdateOne) ClearHeight() *SessionUpdateOne
ClearHeight clears the value of the "height" field.
func (*SessionUpdateOne) ClearInitialPrompt ¶ added in v1.23.0
func (_u *SessionUpdateOne) ClearInitialPrompt() *SessionUpdateOne
ClearInitialPrompt clears the value of the "initial_prompt" field.
func (*SessionUpdateOne) ClearLastAcknowledged ¶
func (_u *SessionUpdateOne) ClearLastAcknowledged() *SessionUpdateOne
ClearLastAcknowledged clears the value of the "last_acknowledged" field.
func (*SessionUpdateOne) ClearLastAddedToQueue ¶
func (_u *SessionUpdateOne) ClearLastAddedToQueue() *SessionUpdateOne
ClearLastAddedToQueue clears the value of the "last_added_to_queue" field.
func (*SessionUpdateOne) ClearLastMeaningfulOutput ¶
func (_u *SessionUpdateOne) ClearLastMeaningfulOutput() *SessionUpdateOne
ClearLastMeaningfulOutput clears the value of the "last_meaningful_output" field.
func (*SessionUpdateOne) ClearLastOutputSignature ¶
func (_u *SessionUpdateOne) ClearLastOutputSignature() *SessionUpdateOne
ClearLastOutputSignature clears the value of the "last_output_signature" field.
func (*SessionUpdateOne) ClearLastTerminalUpdate ¶
func (_u *SessionUpdateOne) ClearLastTerminalUpdate() *SessionUpdateOne
ClearLastTerminalUpdate clears the value of the "last_terminal_update" field.
func (*SessionUpdateOne) ClearLastViewed ¶
func (_u *SessionUpdateOne) ClearLastViewed() *SessionUpdateOne
ClearLastViewed clears the value of the "last_viewed" field.
func (*SessionUpdateOne) ClearMcpServerURL ¶ added in v1.23.1
func (_u *SessionUpdateOne) ClearMcpServerURL() *SessionUpdateOne
ClearMcpServerURL clears the value of the "mcp_server_url" field.
func (*SessionUpdateOne) ClearProject ¶ added in v1.23.0
func (_u *SessionUpdateOne) ClearProject() *SessionUpdateOne
ClearProject clears the "project" edge to the Project entity.
func (*SessionUpdateOne) ClearPrompt ¶
func (_u *SessionUpdateOne) ClearPrompt() *SessionUpdateOne
ClearPrompt clears the value of the "prompt" field.
func (*SessionUpdateOne) ClearSessionType ¶
func (_u *SessionUpdateOne) ClearSessionType() *SessionUpdateOne
ClearSessionType clears the value of the "session_type" field.
func (*SessionUpdateOne) ClearTags ¶
func (_u *SessionUpdateOne) ClearTags() *SessionUpdateOne
ClearTags clears all "tags" edges to the Tag entity.
func (*SessionUpdateOne) ClearTmuxPrefix ¶
func (_u *SessionUpdateOne) ClearTmuxPrefix() *SessionUpdateOne
ClearTmuxPrefix clears the value of the "tmux_prefix" field.
func (*SessionUpdateOne) ClearUUID ¶ added in v1.15.0
func (_u *SessionUpdateOne) ClearUUID() *SessionUpdateOne
ClearUUID clears the value of the "uuid" field.
func (*SessionUpdateOne) ClearWidth ¶
func (_u *SessionUpdateOne) ClearWidth() *SessionUpdateOne
ClearWidth clears the value of the "width" field.
func (*SessionUpdateOne) ClearWorkingDir ¶
func (_u *SessionUpdateOne) ClearWorkingDir() *SessionUpdateOne
ClearWorkingDir clears the value of the "working_dir" field.
func (*SessionUpdateOne) ClearWorktree ¶
func (_u *SessionUpdateOne) ClearWorktree() *SessionUpdateOne
ClearWorktree clears the "worktree" edge to the Worktree entity.
func (*SessionUpdateOne) Exec ¶
func (_u *SessionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SessionUpdateOne) ExecX ¶
func (_u *SessionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpdateOne) Mutation ¶
func (_u *SessionUpdateOne) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionUpdateOne) RemoveTagIDs ¶
func (_u *SessionUpdateOne) RemoveTagIDs(ids ...int) *SessionUpdateOne
RemoveTagIDs removes the "tags" edge to Tag entities by IDs.
func (*SessionUpdateOne) RemoveTags ¶
func (_u *SessionUpdateOne) RemoveTags(v ...*Tag) *SessionUpdateOne
RemoveTags removes "tags" edges to Tag entities.
func (*SessionUpdateOne) Save ¶
func (_u *SessionUpdateOne) Save(ctx context.Context) (*Session, error)
Save executes the query and returns the updated Session entity.
func (*SessionUpdateOne) SaveX ¶
func (_u *SessionUpdateOne) SaveX(ctx context.Context) *Session
SaveX is like Save, but panics if an error occurs.
func (*SessionUpdateOne) Select ¶
func (_u *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SessionUpdateOne) SetAutoYes ¶
func (_u *SessionUpdateOne) SetAutoYes(v bool) *SessionUpdateOne
SetAutoYes sets the "auto_yes" field.
func (*SessionUpdateOne) SetBranch ¶
func (_u *SessionUpdateOne) SetBranch(v string) *SessionUpdateOne
SetBranch sets the "branch" field.
func (*SessionUpdateOne) SetCategory ¶
func (_u *SessionUpdateOne) SetCategory(v string) *SessionUpdateOne
SetCategory sets the "category" field.
func (*SessionUpdateOne) SetClaudeSession ¶
func (_u *SessionUpdateOne) SetClaudeSession(v *ClaudeSession) *SessionUpdateOne
SetClaudeSession sets the "claude_session" edge to the ClaudeSession entity.
func (*SessionUpdateOne) SetClaudeSessionID ¶
func (_u *SessionUpdateOne) SetClaudeSessionID(id int) *SessionUpdateOne
SetClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID.
func (*SessionUpdateOne) SetDiffStats ¶
func (_u *SessionUpdateOne) SetDiffStats(v *DiffStats) *SessionUpdateOne
SetDiffStats sets the "diff_stats" edge to the DiffStats entity.
func (*SessionUpdateOne) SetDiffStatsID ¶
func (_u *SessionUpdateOne) SetDiffStatsID(id int) *SessionUpdateOne
SetDiffStatsID sets the "diff_stats" edge to the DiffStats entity by ID.
func (*SessionUpdateOne) SetExistingWorktree ¶
func (_u *SessionUpdateOne) SetExistingWorktree(v string) *SessionUpdateOne
SetExistingWorktree sets the "existing_worktree" field.
func (*SessionUpdateOne) SetHeight ¶
func (_u *SessionUpdateOne) SetHeight(v int) *SessionUpdateOne
SetHeight sets the "height" field.
func (*SessionUpdateOne) SetInitialPrompt ¶ added in v1.23.0
func (_u *SessionUpdateOne) SetInitialPrompt(v string) *SessionUpdateOne
SetInitialPrompt sets the "initial_prompt" field.
func (*SessionUpdateOne) SetIsExpanded ¶
func (_u *SessionUpdateOne) SetIsExpanded(v bool) *SessionUpdateOne
SetIsExpanded sets the "is_expanded" field.
func (*SessionUpdateOne) SetLastAcknowledged ¶
func (_u *SessionUpdateOne) SetLastAcknowledged(v time.Time) *SessionUpdateOne
SetLastAcknowledged sets the "last_acknowledged" field.
func (*SessionUpdateOne) SetLastAddedToQueue ¶
func (_u *SessionUpdateOne) SetLastAddedToQueue(v time.Time) *SessionUpdateOne
SetLastAddedToQueue sets the "last_added_to_queue" field.
func (*SessionUpdateOne) SetLastMeaningfulOutput ¶
func (_u *SessionUpdateOne) SetLastMeaningfulOutput(v time.Time) *SessionUpdateOne
SetLastMeaningfulOutput sets the "last_meaningful_output" field.
func (*SessionUpdateOne) SetLastOutputSignature ¶
func (_u *SessionUpdateOne) SetLastOutputSignature(v string) *SessionUpdateOne
SetLastOutputSignature sets the "last_output_signature" field.
func (*SessionUpdateOne) SetLastTerminalUpdate ¶
func (_u *SessionUpdateOne) SetLastTerminalUpdate(v time.Time) *SessionUpdateOne
SetLastTerminalUpdate sets the "last_terminal_update" field.
func (*SessionUpdateOne) SetLastViewed ¶
func (_u *SessionUpdateOne) SetLastViewed(v time.Time) *SessionUpdateOne
SetLastViewed sets the "last_viewed" field.
func (*SessionUpdateOne) SetMcpServerURL ¶ added in v1.23.1
func (_u *SessionUpdateOne) SetMcpServerURL(v string) *SessionUpdateOne
SetMcpServerURL sets the "mcp_server_url" field.
func (*SessionUpdateOne) SetNillableAutoYes ¶
func (_u *SessionUpdateOne) SetNillableAutoYes(v *bool) *SessionUpdateOne
SetNillableAutoYes sets the "auto_yes" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableBranch ¶
func (_u *SessionUpdateOne) SetNillableBranch(v *string) *SessionUpdateOne
SetNillableBranch sets the "branch" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableCategory ¶
func (_u *SessionUpdateOne) SetNillableCategory(v *string) *SessionUpdateOne
SetNillableCategory sets the "category" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableClaudeSessionID ¶
func (_u *SessionUpdateOne) SetNillableClaudeSessionID(id *int) *SessionUpdateOne
SetNillableClaudeSessionID sets the "claude_session" edge to the ClaudeSession entity by ID if the given value is not nil.
func (*SessionUpdateOne) SetNillableDiffStatsID ¶
func (_u *SessionUpdateOne) SetNillableDiffStatsID(id *int) *SessionUpdateOne
SetNillableDiffStatsID sets the "diff_stats" edge to the DiffStats entity by ID if the given value is not nil.
func (*SessionUpdateOne) SetNillableExistingWorktree ¶
func (_u *SessionUpdateOne) SetNillableExistingWorktree(v *string) *SessionUpdateOne
SetNillableExistingWorktree sets the "existing_worktree" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableHeight ¶
func (_u *SessionUpdateOne) SetNillableHeight(v *int) *SessionUpdateOne
SetNillableHeight sets the "height" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableInitialPrompt ¶ added in v1.23.0
func (_u *SessionUpdateOne) SetNillableInitialPrompt(v *string) *SessionUpdateOne
SetNillableInitialPrompt sets the "initial_prompt" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableIsExpanded ¶
func (_u *SessionUpdateOne) SetNillableIsExpanded(v *bool) *SessionUpdateOne
SetNillableIsExpanded sets the "is_expanded" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableLastAcknowledged ¶
func (_u *SessionUpdateOne) SetNillableLastAcknowledged(v *time.Time) *SessionUpdateOne
SetNillableLastAcknowledged sets the "last_acknowledged" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableLastAddedToQueue ¶
func (_u *SessionUpdateOne) SetNillableLastAddedToQueue(v *time.Time) *SessionUpdateOne
SetNillableLastAddedToQueue sets the "last_added_to_queue" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableLastMeaningfulOutput ¶
func (_u *SessionUpdateOne) SetNillableLastMeaningfulOutput(v *time.Time) *SessionUpdateOne
SetNillableLastMeaningfulOutput sets the "last_meaningful_output" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableLastOutputSignature ¶
func (_u *SessionUpdateOne) SetNillableLastOutputSignature(v *string) *SessionUpdateOne
SetNillableLastOutputSignature sets the "last_output_signature" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableLastTerminalUpdate ¶
func (_u *SessionUpdateOne) SetNillableLastTerminalUpdate(v *time.Time) *SessionUpdateOne
SetNillableLastTerminalUpdate sets the "last_terminal_update" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableLastViewed ¶
func (_u *SessionUpdateOne) SetNillableLastViewed(v *time.Time) *SessionUpdateOne
SetNillableLastViewed sets the "last_viewed" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableMcpServerURL ¶ added in v1.23.1
func (_u *SessionUpdateOne) SetNillableMcpServerURL(v *string) *SessionUpdateOne
SetNillableMcpServerURL sets the "mcp_server_url" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableOneShot ¶ added in v1.23.0
func (_u *SessionUpdateOne) SetNillableOneShot(v *bool) *SessionUpdateOne
SetNillableOneShot sets the "one_shot" field if the given value is not nil.
func (*SessionUpdateOne) SetNillablePath ¶
func (_u *SessionUpdateOne) SetNillablePath(v *string) *SessionUpdateOne
SetNillablePath sets the "path" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableProgram ¶
func (_u *SessionUpdateOne) SetNillableProgram(v *string) *SessionUpdateOne
SetNillableProgram sets the "program" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableProjectID ¶ added in v1.23.0
func (_u *SessionUpdateOne) SetNillableProjectID(id *int) *SessionUpdateOne
SetNillableProjectID sets the "project" edge to the Project entity by ID if the given value is not nil.
func (*SessionUpdateOne) SetNillablePrompt ¶
func (_u *SessionUpdateOne) SetNillablePrompt(v *string) *SessionUpdateOne
SetNillablePrompt sets the "prompt" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableSessionType ¶
func (_u *SessionUpdateOne) SetNillableSessionType(v *string) *SessionUpdateOne
SetNillableSessionType sets the "session_type" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableStatus ¶
func (_u *SessionUpdateOne) SetNillableStatus(v *int) *SessionUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableTitle ¶
func (_u *SessionUpdateOne) SetNillableTitle(v *string) *SessionUpdateOne
SetNillableTitle sets the "title" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableTmuxPrefix ¶
func (_u *SessionUpdateOne) SetNillableTmuxPrefix(v *string) *SessionUpdateOne
SetNillableTmuxPrefix sets the "tmux_prefix" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableUUID ¶ added in v1.15.0
func (_u *SessionUpdateOne) SetNillableUUID(v *string) *SessionUpdateOne
SetNillableUUID sets the "uuid" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableWidth ¶
func (_u *SessionUpdateOne) SetNillableWidth(v *int) *SessionUpdateOne
SetNillableWidth sets the "width" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableWorkingDir ¶
func (_u *SessionUpdateOne) SetNillableWorkingDir(v *string) *SessionUpdateOne
SetNillableWorkingDir sets the "working_dir" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableWorktreeID ¶
func (_u *SessionUpdateOne) SetNillableWorktreeID(id *int) *SessionUpdateOne
SetNillableWorktreeID sets the "worktree" edge to the Worktree entity by ID if the given value is not nil.
func (*SessionUpdateOne) SetOneShot ¶ added in v1.23.0
func (_u *SessionUpdateOne) SetOneShot(v bool) *SessionUpdateOne
SetOneShot sets the "one_shot" field.
func (*SessionUpdateOne) SetPath ¶
func (_u *SessionUpdateOne) SetPath(v string) *SessionUpdateOne
SetPath sets the "path" field.
func (*SessionUpdateOne) SetProgram ¶
func (_u *SessionUpdateOne) SetProgram(v string) *SessionUpdateOne
SetProgram sets the "program" field.
func (*SessionUpdateOne) SetProject ¶ added in v1.23.0
func (_u *SessionUpdateOne) SetProject(v *Project) *SessionUpdateOne
SetProject sets the "project" edge to the Project entity.
func (*SessionUpdateOne) SetProjectID ¶ added in v1.23.0
func (_u *SessionUpdateOne) SetProjectID(id int) *SessionUpdateOne
SetProjectID sets the "project" edge to the Project entity by ID.
func (*SessionUpdateOne) SetPrompt ¶
func (_u *SessionUpdateOne) SetPrompt(v string) *SessionUpdateOne
SetPrompt sets the "prompt" field.
func (*SessionUpdateOne) SetSessionType ¶
func (_u *SessionUpdateOne) SetSessionType(v string) *SessionUpdateOne
SetSessionType sets the "session_type" field.
func (*SessionUpdateOne) SetStatus ¶
func (_u *SessionUpdateOne) SetStatus(v int) *SessionUpdateOne
SetStatus sets the "status" field.
func (*SessionUpdateOne) SetTitle ¶
func (_u *SessionUpdateOne) SetTitle(v string) *SessionUpdateOne
SetTitle sets the "title" field.
func (*SessionUpdateOne) SetTmuxPrefix ¶
func (_u *SessionUpdateOne) SetTmuxPrefix(v string) *SessionUpdateOne
SetTmuxPrefix sets the "tmux_prefix" field.
func (*SessionUpdateOne) SetUUID ¶ added in v1.15.0
func (_u *SessionUpdateOne) SetUUID(v string) *SessionUpdateOne
SetUUID sets the "uuid" field.
func (*SessionUpdateOne) SetUpdatedAt ¶
func (_u *SessionUpdateOne) SetUpdatedAt(v time.Time) *SessionUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpdateOne) SetWidth ¶
func (_u *SessionUpdateOne) SetWidth(v int) *SessionUpdateOne
SetWidth sets the "width" field.
func (*SessionUpdateOne) SetWorkingDir ¶
func (_u *SessionUpdateOne) SetWorkingDir(v string) *SessionUpdateOne
SetWorkingDir sets the "working_dir" field.
func (*SessionUpdateOne) SetWorktree ¶
func (_u *SessionUpdateOne) SetWorktree(v *Worktree) *SessionUpdateOne
SetWorktree sets the "worktree" edge to the Worktree entity.
func (*SessionUpdateOne) SetWorktreeID ¶
func (_u *SessionUpdateOne) SetWorktreeID(id int) *SessionUpdateOne
SetWorktreeID sets the "worktree" edge to the Worktree entity by ID.
func (*SessionUpdateOne) Where ¶
func (_u *SessionUpdateOne) Where(ps ...predicate.Session) *SessionUpdateOne
Where appends a list predicates to the SessionUpdate builder.
type SessionUpsert ¶ added in v1.12.0
SessionUpsert is the "OnConflict" setter.
func (*SessionUpsert) AddHeight ¶ added in v1.12.0
func (u *SessionUpsert) AddHeight(v int) *SessionUpsert
AddHeight adds v to the "height" field.
func (*SessionUpsert) AddStatus ¶ added in v1.12.0
func (u *SessionUpsert) AddStatus(v int) *SessionUpsert
AddStatus adds v to the "status" field.
func (*SessionUpsert) AddWidth ¶ added in v1.12.0
func (u *SessionUpsert) AddWidth(v int) *SessionUpsert
AddWidth adds v to the "width" field.
func (*SessionUpsert) ClearBranch ¶ added in v1.12.0
func (u *SessionUpsert) ClearBranch() *SessionUpsert
ClearBranch clears the value of the "branch" field.
func (*SessionUpsert) ClearCategory ¶ added in v1.12.0
func (u *SessionUpsert) ClearCategory() *SessionUpsert
ClearCategory clears the value of the "category" field.
func (*SessionUpsert) ClearExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsert) ClearExistingWorktree() *SessionUpsert
ClearExistingWorktree clears the value of the "existing_worktree" field.
func (*SessionUpsert) ClearHeight ¶ added in v1.12.0
func (u *SessionUpsert) ClearHeight() *SessionUpsert
ClearHeight clears the value of the "height" field.
func (*SessionUpsert) ClearInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsert) ClearInitialPrompt() *SessionUpsert
ClearInitialPrompt clears the value of the "initial_prompt" field.
func (*SessionUpsert) ClearLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsert) ClearLastAcknowledged() *SessionUpsert
ClearLastAcknowledged clears the value of the "last_acknowledged" field.
func (*SessionUpsert) ClearLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsert) ClearLastAddedToQueue() *SessionUpsert
ClearLastAddedToQueue clears the value of the "last_added_to_queue" field.
func (*SessionUpsert) ClearLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsert) ClearLastMeaningfulOutput() *SessionUpsert
ClearLastMeaningfulOutput clears the value of the "last_meaningful_output" field.
func (*SessionUpsert) ClearLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsert) ClearLastOutputSignature() *SessionUpsert
ClearLastOutputSignature clears the value of the "last_output_signature" field.
func (*SessionUpsert) ClearLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsert) ClearLastTerminalUpdate() *SessionUpsert
ClearLastTerminalUpdate clears the value of the "last_terminal_update" field.
func (*SessionUpsert) ClearLastViewed ¶ added in v1.12.0
func (u *SessionUpsert) ClearLastViewed() *SessionUpsert
ClearLastViewed clears the value of the "last_viewed" field.
func (*SessionUpsert) ClearMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsert) ClearMcpServerURL() *SessionUpsert
ClearMcpServerURL clears the value of the "mcp_server_url" field.
func (*SessionUpsert) ClearPrompt ¶ added in v1.12.0
func (u *SessionUpsert) ClearPrompt() *SessionUpsert
ClearPrompt clears the value of the "prompt" field.
func (*SessionUpsert) ClearSessionType ¶ added in v1.12.0
func (u *SessionUpsert) ClearSessionType() *SessionUpsert
ClearSessionType clears the value of the "session_type" field.
func (*SessionUpsert) ClearTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsert) ClearTmuxPrefix() *SessionUpsert
ClearTmuxPrefix clears the value of the "tmux_prefix" field.
func (*SessionUpsert) ClearUUID ¶ added in v1.15.0
func (u *SessionUpsert) ClearUUID() *SessionUpsert
ClearUUID clears the value of the "uuid" field.
func (*SessionUpsert) ClearWidth ¶ added in v1.12.0
func (u *SessionUpsert) ClearWidth() *SessionUpsert
ClearWidth clears the value of the "width" field.
func (*SessionUpsert) ClearWorkingDir ¶ added in v1.12.0
func (u *SessionUpsert) ClearWorkingDir() *SessionUpsert
ClearWorkingDir clears the value of the "working_dir" field.
func (*SessionUpsert) SetAutoYes ¶ added in v1.12.0
func (u *SessionUpsert) SetAutoYes(v bool) *SessionUpsert
SetAutoYes sets the "auto_yes" field.
func (*SessionUpsert) SetBranch ¶ added in v1.12.0
func (u *SessionUpsert) SetBranch(v string) *SessionUpsert
SetBranch sets the "branch" field.
func (*SessionUpsert) SetCategory ¶ added in v1.12.0
func (u *SessionUpsert) SetCategory(v string) *SessionUpsert
SetCategory sets the "category" field.
func (*SessionUpsert) SetExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsert) SetExistingWorktree(v string) *SessionUpsert
SetExistingWorktree sets the "existing_worktree" field.
func (*SessionUpsert) SetHeight ¶ added in v1.12.0
func (u *SessionUpsert) SetHeight(v int) *SessionUpsert
SetHeight sets the "height" field.
func (*SessionUpsert) SetInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsert) SetInitialPrompt(v string) *SessionUpsert
SetInitialPrompt sets the "initial_prompt" field.
func (*SessionUpsert) SetIsExpanded ¶ added in v1.12.0
func (u *SessionUpsert) SetIsExpanded(v bool) *SessionUpsert
SetIsExpanded sets the "is_expanded" field.
func (*SessionUpsert) SetLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsert) SetLastAcknowledged(v time.Time) *SessionUpsert
SetLastAcknowledged sets the "last_acknowledged" field.
func (*SessionUpsert) SetLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsert) SetLastAddedToQueue(v time.Time) *SessionUpsert
SetLastAddedToQueue sets the "last_added_to_queue" field.
func (*SessionUpsert) SetLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsert) SetLastMeaningfulOutput(v time.Time) *SessionUpsert
SetLastMeaningfulOutput sets the "last_meaningful_output" field.
func (*SessionUpsert) SetLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsert) SetLastOutputSignature(v string) *SessionUpsert
SetLastOutputSignature sets the "last_output_signature" field.
func (*SessionUpsert) SetLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsert) SetLastTerminalUpdate(v time.Time) *SessionUpsert
SetLastTerminalUpdate sets the "last_terminal_update" field.
func (*SessionUpsert) SetLastViewed ¶ added in v1.12.0
func (u *SessionUpsert) SetLastViewed(v time.Time) *SessionUpsert
SetLastViewed sets the "last_viewed" field.
func (*SessionUpsert) SetMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsert) SetMcpServerURL(v string) *SessionUpsert
SetMcpServerURL sets the "mcp_server_url" field.
func (*SessionUpsert) SetOneShot ¶ added in v1.23.0
func (u *SessionUpsert) SetOneShot(v bool) *SessionUpsert
SetOneShot sets the "one_shot" field.
func (*SessionUpsert) SetPath ¶ added in v1.12.0
func (u *SessionUpsert) SetPath(v string) *SessionUpsert
SetPath sets the "path" field.
func (*SessionUpsert) SetProgram ¶ added in v1.12.0
func (u *SessionUpsert) SetProgram(v string) *SessionUpsert
SetProgram sets the "program" field.
func (*SessionUpsert) SetPrompt ¶ added in v1.12.0
func (u *SessionUpsert) SetPrompt(v string) *SessionUpsert
SetPrompt sets the "prompt" field.
func (*SessionUpsert) SetSessionType ¶ added in v1.12.0
func (u *SessionUpsert) SetSessionType(v string) *SessionUpsert
SetSessionType sets the "session_type" field.
func (*SessionUpsert) SetStatus ¶ added in v1.12.0
func (u *SessionUpsert) SetStatus(v int) *SessionUpsert
SetStatus sets the "status" field.
func (*SessionUpsert) SetTitle ¶ added in v1.12.0
func (u *SessionUpsert) SetTitle(v string) *SessionUpsert
SetTitle sets the "title" field.
func (*SessionUpsert) SetTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsert) SetTmuxPrefix(v string) *SessionUpsert
SetTmuxPrefix sets the "tmux_prefix" field.
func (*SessionUpsert) SetUUID ¶ added in v1.15.0
func (u *SessionUpsert) SetUUID(v string) *SessionUpsert
SetUUID sets the "uuid" field.
func (*SessionUpsert) SetUpdatedAt ¶ added in v1.12.0
func (u *SessionUpsert) SetUpdatedAt(v time.Time) *SessionUpsert
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpsert) SetWidth ¶ added in v1.12.0
func (u *SessionUpsert) SetWidth(v int) *SessionUpsert
SetWidth sets the "width" field.
func (*SessionUpsert) SetWorkingDir ¶ added in v1.12.0
func (u *SessionUpsert) SetWorkingDir(v string) *SessionUpsert
SetWorkingDir sets the "working_dir" field.
func (*SessionUpsert) UpdateAutoYes ¶ added in v1.12.0
func (u *SessionUpsert) UpdateAutoYes() *SessionUpsert
UpdateAutoYes sets the "auto_yes" field to the value that was provided on create.
func (*SessionUpsert) UpdateBranch ¶ added in v1.12.0
func (u *SessionUpsert) UpdateBranch() *SessionUpsert
UpdateBranch sets the "branch" field to the value that was provided on create.
func (*SessionUpsert) UpdateCategory ¶ added in v1.12.0
func (u *SessionUpsert) UpdateCategory() *SessionUpsert
UpdateCategory sets the "category" field to the value that was provided on create.
func (*SessionUpsert) UpdateExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsert) UpdateExistingWorktree() *SessionUpsert
UpdateExistingWorktree sets the "existing_worktree" field to the value that was provided on create.
func (*SessionUpsert) UpdateHeight ¶ added in v1.12.0
func (u *SessionUpsert) UpdateHeight() *SessionUpsert
UpdateHeight sets the "height" field to the value that was provided on create.
func (*SessionUpsert) UpdateInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsert) UpdateInitialPrompt() *SessionUpsert
UpdateInitialPrompt sets the "initial_prompt" field to the value that was provided on create.
func (*SessionUpsert) UpdateIsExpanded ¶ added in v1.12.0
func (u *SessionUpsert) UpdateIsExpanded() *SessionUpsert
UpdateIsExpanded sets the "is_expanded" field to the value that was provided on create.
func (*SessionUpsert) UpdateLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsert) UpdateLastAcknowledged() *SessionUpsert
UpdateLastAcknowledged sets the "last_acknowledged" field to the value that was provided on create.
func (*SessionUpsert) UpdateLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsert) UpdateLastAddedToQueue() *SessionUpsert
UpdateLastAddedToQueue sets the "last_added_to_queue" field to the value that was provided on create.
func (*SessionUpsert) UpdateLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsert) UpdateLastMeaningfulOutput() *SessionUpsert
UpdateLastMeaningfulOutput sets the "last_meaningful_output" field to the value that was provided on create.
func (*SessionUpsert) UpdateLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsert) UpdateLastOutputSignature() *SessionUpsert
UpdateLastOutputSignature sets the "last_output_signature" field to the value that was provided on create.
func (*SessionUpsert) UpdateLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsert) UpdateLastTerminalUpdate() *SessionUpsert
UpdateLastTerminalUpdate sets the "last_terminal_update" field to the value that was provided on create.
func (*SessionUpsert) UpdateLastViewed ¶ added in v1.12.0
func (u *SessionUpsert) UpdateLastViewed() *SessionUpsert
UpdateLastViewed sets the "last_viewed" field to the value that was provided on create.
func (*SessionUpsert) UpdateMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsert) UpdateMcpServerURL() *SessionUpsert
UpdateMcpServerURL sets the "mcp_server_url" field to the value that was provided on create.
func (*SessionUpsert) UpdateOneShot ¶ added in v1.23.0
func (u *SessionUpsert) UpdateOneShot() *SessionUpsert
UpdateOneShot sets the "one_shot" field to the value that was provided on create.
func (*SessionUpsert) UpdatePath ¶ added in v1.12.0
func (u *SessionUpsert) UpdatePath() *SessionUpsert
UpdatePath sets the "path" field to the value that was provided on create.
func (*SessionUpsert) UpdateProgram ¶ added in v1.12.0
func (u *SessionUpsert) UpdateProgram() *SessionUpsert
UpdateProgram sets the "program" field to the value that was provided on create.
func (*SessionUpsert) UpdatePrompt ¶ added in v1.12.0
func (u *SessionUpsert) UpdatePrompt() *SessionUpsert
UpdatePrompt sets the "prompt" field to the value that was provided on create.
func (*SessionUpsert) UpdateSessionType ¶ added in v1.12.0
func (u *SessionUpsert) UpdateSessionType() *SessionUpsert
UpdateSessionType sets the "session_type" field to the value that was provided on create.
func (*SessionUpsert) UpdateStatus ¶ added in v1.12.0
func (u *SessionUpsert) UpdateStatus() *SessionUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*SessionUpsert) UpdateTitle ¶ added in v1.12.0
func (u *SessionUpsert) UpdateTitle() *SessionUpsert
UpdateTitle sets the "title" field to the value that was provided on create.
func (*SessionUpsert) UpdateTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsert) UpdateTmuxPrefix() *SessionUpsert
UpdateTmuxPrefix sets the "tmux_prefix" field to the value that was provided on create.
func (*SessionUpsert) UpdateUUID ¶ added in v1.15.0
func (u *SessionUpsert) UpdateUUID() *SessionUpsert
UpdateUUID sets the "uuid" field to the value that was provided on create.
func (*SessionUpsert) UpdateUpdatedAt ¶ added in v1.12.0
func (u *SessionUpsert) UpdateUpdatedAt() *SessionUpsert
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*SessionUpsert) UpdateWidth ¶ added in v1.12.0
func (u *SessionUpsert) UpdateWidth() *SessionUpsert
UpdateWidth sets the "width" field to the value that was provided on create.
func (*SessionUpsert) UpdateWorkingDir ¶ added in v1.12.0
func (u *SessionUpsert) UpdateWorkingDir() *SessionUpsert
UpdateWorkingDir sets the "working_dir" field to the value that was provided on create.
type SessionUpsertBulk ¶ added in v1.12.0
type SessionUpsertBulk struct {
// contains filtered or unexported fields
}
SessionUpsertBulk is the builder for "upsert"-ing a bulk of Session nodes.
func (*SessionUpsertBulk) AddHeight ¶ added in v1.12.0
func (u *SessionUpsertBulk) AddHeight(v int) *SessionUpsertBulk
AddHeight adds v to the "height" field.
func (*SessionUpsertBulk) AddStatus ¶ added in v1.12.0
func (u *SessionUpsertBulk) AddStatus(v int) *SessionUpsertBulk
AddStatus adds v to the "status" field.
func (*SessionUpsertBulk) AddWidth ¶ added in v1.12.0
func (u *SessionUpsertBulk) AddWidth(v int) *SessionUpsertBulk
AddWidth adds v to the "width" field.
func (*SessionUpsertBulk) ClearBranch ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearBranch() *SessionUpsertBulk
ClearBranch clears the value of the "branch" field.
func (*SessionUpsertBulk) ClearCategory ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearCategory() *SessionUpsertBulk
ClearCategory clears the value of the "category" field.
func (*SessionUpsertBulk) ClearExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearExistingWorktree() *SessionUpsertBulk
ClearExistingWorktree clears the value of the "existing_worktree" field.
func (*SessionUpsertBulk) ClearHeight ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearHeight() *SessionUpsertBulk
ClearHeight clears the value of the "height" field.
func (*SessionUpsertBulk) ClearInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsertBulk) ClearInitialPrompt() *SessionUpsertBulk
ClearInitialPrompt clears the value of the "initial_prompt" field.
func (*SessionUpsertBulk) ClearLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearLastAcknowledged() *SessionUpsertBulk
ClearLastAcknowledged clears the value of the "last_acknowledged" field.
func (*SessionUpsertBulk) ClearLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearLastAddedToQueue() *SessionUpsertBulk
ClearLastAddedToQueue clears the value of the "last_added_to_queue" field.
func (*SessionUpsertBulk) ClearLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearLastMeaningfulOutput() *SessionUpsertBulk
ClearLastMeaningfulOutput clears the value of the "last_meaningful_output" field.
func (*SessionUpsertBulk) ClearLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearLastOutputSignature() *SessionUpsertBulk
ClearLastOutputSignature clears the value of the "last_output_signature" field.
func (*SessionUpsertBulk) ClearLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearLastTerminalUpdate() *SessionUpsertBulk
ClearLastTerminalUpdate clears the value of the "last_terminal_update" field.
func (*SessionUpsertBulk) ClearLastViewed ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearLastViewed() *SessionUpsertBulk
ClearLastViewed clears the value of the "last_viewed" field.
func (*SessionUpsertBulk) ClearMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsertBulk) ClearMcpServerURL() *SessionUpsertBulk
ClearMcpServerURL clears the value of the "mcp_server_url" field.
func (*SessionUpsertBulk) ClearPrompt ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearPrompt() *SessionUpsertBulk
ClearPrompt clears the value of the "prompt" field.
func (*SessionUpsertBulk) ClearSessionType ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearSessionType() *SessionUpsertBulk
ClearSessionType clears the value of the "session_type" field.
func (*SessionUpsertBulk) ClearTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearTmuxPrefix() *SessionUpsertBulk
ClearTmuxPrefix clears the value of the "tmux_prefix" field.
func (*SessionUpsertBulk) ClearUUID ¶ added in v1.15.0
func (u *SessionUpsertBulk) ClearUUID() *SessionUpsertBulk
ClearUUID clears the value of the "uuid" field.
func (*SessionUpsertBulk) ClearWidth ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearWidth() *SessionUpsertBulk
ClearWidth clears the value of the "width" field.
func (*SessionUpsertBulk) ClearWorkingDir ¶ added in v1.12.0
func (u *SessionUpsertBulk) ClearWorkingDir() *SessionUpsertBulk
ClearWorkingDir clears the value of the "working_dir" field.
func (*SessionUpsertBulk) DoNothing ¶ added in v1.12.0
func (u *SessionUpsertBulk) DoNothing() *SessionUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SessionUpsertBulk) Exec ¶ added in v1.12.0
func (u *SessionUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionUpsertBulk) ExecX ¶ added in v1.12.0
func (u *SessionUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpsertBulk) Ignore ¶ added in v1.12.0
func (u *SessionUpsertBulk) Ignore() *SessionUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Session.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*SessionUpsertBulk) SetAutoYes ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetAutoYes(v bool) *SessionUpsertBulk
SetAutoYes sets the "auto_yes" field.
func (*SessionUpsertBulk) SetBranch ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetBranch(v string) *SessionUpsertBulk
SetBranch sets the "branch" field.
func (*SessionUpsertBulk) SetCategory ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetCategory(v string) *SessionUpsertBulk
SetCategory sets the "category" field.
func (*SessionUpsertBulk) SetExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetExistingWorktree(v string) *SessionUpsertBulk
SetExistingWorktree sets the "existing_worktree" field.
func (*SessionUpsertBulk) SetHeight ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetHeight(v int) *SessionUpsertBulk
SetHeight sets the "height" field.
func (*SessionUpsertBulk) SetInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsertBulk) SetInitialPrompt(v string) *SessionUpsertBulk
SetInitialPrompt sets the "initial_prompt" field.
func (*SessionUpsertBulk) SetIsExpanded ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetIsExpanded(v bool) *SessionUpsertBulk
SetIsExpanded sets the "is_expanded" field.
func (*SessionUpsertBulk) SetLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetLastAcknowledged(v time.Time) *SessionUpsertBulk
SetLastAcknowledged sets the "last_acknowledged" field.
func (*SessionUpsertBulk) SetLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetLastAddedToQueue(v time.Time) *SessionUpsertBulk
SetLastAddedToQueue sets the "last_added_to_queue" field.
func (*SessionUpsertBulk) SetLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetLastMeaningfulOutput(v time.Time) *SessionUpsertBulk
SetLastMeaningfulOutput sets the "last_meaningful_output" field.
func (*SessionUpsertBulk) SetLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetLastOutputSignature(v string) *SessionUpsertBulk
SetLastOutputSignature sets the "last_output_signature" field.
func (*SessionUpsertBulk) SetLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetLastTerminalUpdate(v time.Time) *SessionUpsertBulk
SetLastTerminalUpdate sets the "last_terminal_update" field.
func (*SessionUpsertBulk) SetLastViewed ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetLastViewed(v time.Time) *SessionUpsertBulk
SetLastViewed sets the "last_viewed" field.
func (*SessionUpsertBulk) SetMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsertBulk) SetMcpServerURL(v string) *SessionUpsertBulk
SetMcpServerURL sets the "mcp_server_url" field.
func (*SessionUpsertBulk) SetOneShot ¶ added in v1.23.0
func (u *SessionUpsertBulk) SetOneShot(v bool) *SessionUpsertBulk
SetOneShot sets the "one_shot" field.
func (*SessionUpsertBulk) SetPath ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetPath(v string) *SessionUpsertBulk
SetPath sets the "path" field.
func (*SessionUpsertBulk) SetProgram ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetProgram(v string) *SessionUpsertBulk
SetProgram sets the "program" field.
func (*SessionUpsertBulk) SetPrompt ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetPrompt(v string) *SessionUpsertBulk
SetPrompt sets the "prompt" field.
func (*SessionUpsertBulk) SetSessionType ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetSessionType(v string) *SessionUpsertBulk
SetSessionType sets the "session_type" field.
func (*SessionUpsertBulk) SetStatus ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetStatus(v int) *SessionUpsertBulk
SetStatus sets the "status" field.
func (*SessionUpsertBulk) SetTitle ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetTitle(v string) *SessionUpsertBulk
SetTitle sets the "title" field.
func (*SessionUpsertBulk) SetTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetTmuxPrefix(v string) *SessionUpsertBulk
SetTmuxPrefix sets the "tmux_prefix" field.
func (*SessionUpsertBulk) SetUUID ¶ added in v1.15.0
func (u *SessionUpsertBulk) SetUUID(v string) *SessionUpsertBulk
SetUUID sets the "uuid" field.
func (*SessionUpsertBulk) SetUpdatedAt ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetUpdatedAt(v time.Time) *SessionUpsertBulk
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpsertBulk) SetWidth ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetWidth(v int) *SessionUpsertBulk
SetWidth sets the "width" field.
func (*SessionUpsertBulk) SetWorkingDir ¶ added in v1.12.0
func (u *SessionUpsertBulk) SetWorkingDir(v string) *SessionUpsertBulk
SetWorkingDir sets the "working_dir" field.
func (*SessionUpsertBulk) Update ¶ added in v1.12.0
func (u *SessionUpsertBulk) Update(set func(*SessionUpsert)) *SessionUpsertBulk
Update allows overriding fields `UPDATE` values. See the SessionCreateBulk.OnConflict documentation for more info.
func (*SessionUpsertBulk) UpdateAutoYes ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateAutoYes() *SessionUpsertBulk
UpdateAutoYes sets the "auto_yes" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateBranch ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateBranch() *SessionUpsertBulk
UpdateBranch sets the "branch" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateCategory ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateCategory() *SessionUpsertBulk
UpdateCategory sets the "category" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateExistingWorktree() *SessionUpsertBulk
UpdateExistingWorktree sets the "existing_worktree" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateHeight ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateHeight() *SessionUpsertBulk
UpdateHeight sets the "height" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsertBulk) UpdateInitialPrompt() *SessionUpsertBulk
UpdateInitialPrompt sets the "initial_prompt" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateIsExpanded ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateIsExpanded() *SessionUpsertBulk
UpdateIsExpanded sets the "is_expanded" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateLastAcknowledged() *SessionUpsertBulk
UpdateLastAcknowledged sets the "last_acknowledged" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateLastAddedToQueue() *SessionUpsertBulk
UpdateLastAddedToQueue sets the "last_added_to_queue" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateLastMeaningfulOutput() *SessionUpsertBulk
UpdateLastMeaningfulOutput sets the "last_meaningful_output" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateLastOutputSignature() *SessionUpsertBulk
UpdateLastOutputSignature sets the "last_output_signature" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateLastTerminalUpdate() *SessionUpsertBulk
UpdateLastTerminalUpdate sets the "last_terminal_update" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateLastViewed ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateLastViewed() *SessionUpsertBulk
UpdateLastViewed sets the "last_viewed" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsertBulk) UpdateMcpServerURL() *SessionUpsertBulk
UpdateMcpServerURL sets the "mcp_server_url" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateNewValues ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateNewValues() *SessionUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Session.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*SessionUpsertBulk) UpdateOneShot ¶ added in v1.23.0
func (u *SessionUpsertBulk) UpdateOneShot() *SessionUpsertBulk
UpdateOneShot sets the "one_shot" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdatePath ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdatePath() *SessionUpsertBulk
UpdatePath sets the "path" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateProgram ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateProgram() *SessionUpsertBulk
UpdateProgram sets the "program" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdatePrompt ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdatePrompt() *SessionUpsertBulk
UpdatePrompt sets the "prompt" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateSessionType ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateSessionType() *SessionUpsertBulk
UpdateSessionType sets the "session_type" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateStatus ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateStatus() *SessionUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateTitle ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateTitle() *SessionUpsertBulk
UpdateTitle sets the "title" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateTmuxPrefix() *SessionUpsertBulk
UpdateTmuxPrefix sets the "tmux_prefix" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateUUID ¶ added in v1.15.0
func (u *SessionUpsertBulk) UpdateUUID() *SessionUpsertBulk
UpdateUUID sets the "uuid" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateUpdatedAt ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateUpdatedAt() *SessionUpsertBulk
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateWidth ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateWidth() *SessionUpsertBulk
UpdateWidth sets the "width" field to the value that was provided on create.
func (*SessionUpsertBulk) UpdateWorkingDir ¶ added in v1.12.0
func (u *SessionUpsertBulk) UpdateWorkingDir() *SessionUpsertBulk
UpdateWorkingDir sets the "working_dir" field to the value that was provided on create.
type SessionUpsertOne ¶ added in v1.12.0
type SessionUpsertOne struct {
// contains filtered or unexported fields
}
SessionUpsertOne is the builder for "upsert"-ing
one Session node.
func (*SessionUpsertOne) AddHeight ¶ added in v1.12.0
func (u *SessionUpsertOne) AddHeight(v int) *SessionUpsertOne
AddHeight adds v to the "height" field.
func (*SessionUpsertOne) AddStatus ¶ added in v1.12.0
func (u *SessionUpsertOne) AddStatus(v int) *SessionUpsertOne
AddStatus adds v to the "status" field.
func (*SessionUpsertOne) AddWidth ¶ added in v1.12.0
func (u *SessionUpsertOne) AddWidth(v int) *SessionUpsertOne
AddWidth adds v to the "width" field.
func (*SessionUpsertOne) ClearBranch ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearBranch() *SessionUpsertOne
ClearBranch clears the value of the "branch" field.
func (*SessionUpsertOne) ClearCategory ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearCategory() *SessionUpsertOne
ClearCategory clears the value of the "category" field.
func (*SessionUpsertOne) ClearExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearExistingWorktree() *SessionUpsertOne
ClearExistingWorktree clears the value of the "existing_worktree" field.
func (*SessionUpsertOne) ClearHeight ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearHeight() *SessionUpsertOne
ClearHeight clears the value of the "height" field.
func (*SessionUpsertOne) ClearInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsertOne) ClearInitialPrompt() *SessionUpsertOne
ClearInitialPrompt clears the value of the "initial_prompt" field.
func (*SessionUpsertOne) ClearLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearLastAcknowledged() *SessionUpsertOne
ClearLastAcknowledged clears the value of the "last_acknowledged" field.
func (*SessionUpsertOne) ClearLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearLastAddedToQueue() *SessionUpsertOne
ClearLastAddedToQueue clears the value of the "last_added_to_queue" field.
func (*SessionUpsertOne) ClearLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearLastMeaningfulOutput() *SessionUpsertOne
ClearLastMeaningfulOutput clears the value of the "last_meaningful_output" field.
func (*SessionUpsertOne) ClearLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearLastOutputSignature() *SessionUpsertOne
ClearLastOutputSignature clears the value of the "last_output_signature" field.
func (*SessionUpsertOne) ClearLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearLastTerminalUpdate() *SessionUpsertOne
ClearLastTerminalUpdate clears the value of the "last_terminal_update" field.
func (*SessionUpsertOne) ClearLastViewed ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearLastViewed() *SessionUpsertOne
ClearLastViewed clears the value of the "last_viewed" field.
func (*SessionUpsertOne) ClearMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsertOne) ClearMcpServerURL() *SessionUpsertOne
ClearMcpServerURL clears the value of the "mcp_server_url" field.
func (*SessionUpsertOne) ClearPrompt ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearPrompt() *SessionUpsertOne
ClearPrompt clears the value of the "prompt" field.
func (*SessionUpsertOne) ClearSessionType ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearSessionType() *SessionUpsertOne
ClearSessionType clears the value of the "session_type" field.
func (*SessionUpsertOne) ClearTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearTmuxPrefix() *SessionUpsertOne
ClearTmuxPrefix clears the value of the "tmux_prefix" field.
func (*SessionUpsertOne) ClearUUID ¶ added in v1.15.0
func (u *SessionUpsertOne) ClearUUID() *SessionUpsertOne
ClearUUID clears the value of the "uuid" field.
func (*SessionUpsertOne) ClearWidth ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearWidth() *SessionUpsertOne
ClearWidth clears the value of the "width" field.
func (*SessionUpsertOne) ClearWorkingDir ¶ added in v1.12.0
func (u *SessionUpsertOne) ClearWorkingDir() *SessionUpsertOne
ClearWorkingDir clears the value of the "working_dir" field.
func (*SessionUpsertOne) DoNothing ¶ added in v1.12.0
func (u *SessionUpsertOne) DoNothing() *SessionUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*SessionUpsertOne) Exec ¶ added in v1.12.0
func (u *SessionUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionUpsertOne) ExecX ¶ added in v1.12.0
func (u *SessionUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpsertOne) ID ¶ added in v1.12.0
func (u *SessionUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*SessionUpsertOne) IDX ¶ added in v1.12.0
func (u *SessionUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*SessionUpsertOne) Ignore ¶ added in v1.12.0
func (u *SessionUpsertOne) Ignore() *SessionUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Session.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*SessionUpsertOne) SetAutoYes ¶ added in v1.12.0
func (u *SessionUpsertOne) SetAutoYes(v bool) *SessionUpsertOne
SetAutoYes sets the "auto_yes" field.
func (*SessionUpsertOne) SetBranch ¶ added in v1.12.0
func (u *SessionUpsertOne) SetBranch(v string) *SessionUpsertOne
SetBranch sets the "branch" field.
func (*SessionUpsertOne) SetCategory ¶ added in v1.12.0
func (u *SessionUpsertOne) SetCategory(v string) *SessionUpsertOne
SetCategory sets the "category" field.
func (*SessionUpsertOne) SetExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsertOne) SetExistingWorktree(v string) *SessionUpsertOne
SetExistingWorktree sets the "existing_worktree" field.
func (*SessionUpsertOne) SetHeight ¶ added in v1.12.0
func (u *SessionUpsertOne) SetHeight(v int) *SessionUpsertOne
SetHeight sets the "height" field.
func (*SessionUpsertOne) SetInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsertOne) SetInitialPrompt(v string) *SessionUpsertOne
SetInitialPrompt sets the "initial_prompt" field.
func (*SessionUpsertOne) SetIsExpanded ¶ added in v1.12.0
func (u *SessionUpsertOne) SetIsExpanded(v bool) *SessionUpsertOne
SetIsExpanded sets the "is_expanded" field.
func (*SessionUpsertOne) SetLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsertOne) SetLastAcknowledged(v time.Time) *SessionUpsertOne
SetLastAcknowledged sets the "last_acknowledged" field.
func (*SessionUpsertOne) SetLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsertOne) SetLastAddedToQueue(v time.Time) *SessionUpsertOne
SetLastAddedToQueue sets the "last_added_to_queue" field.
func (*SessionUpsertOne) SetLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsertOne) SetLastMeaningfulOutput(v time.Time) *SessionUpsertOne
SetLastMeaningfulOutput sets the "last_meaningful_output" field.
func (*SessionUpsertOne) SetLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsertOne) SetLastOutputSignature(v string) *SessionUpsertOne
SetLastOutputSignature sets the "last_output_signature" field.
func (*SessionUpsertOne) SetLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsertOne) SetLastTerminalUpdate(v time.Time) *SessionUpsertOne
SetLastTerminalUpdate sets the "last_terminal_update" field.
func (*SessionUpsertOne) SetLastViewed ¶ added in v1.12.0
func (u *SessionUpsertOne) SetLastViewed(v time.Time) *SessionUpsertOne
SetLastViewed sets the "last_viewed" field.
func (*SessionUpsertOne) SetMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsertOne) SetMcpServerURL(v string) *SessionUpsertOne
SetMcpServerURL sets the "mcp_server_url" field.
func (*SessionUpsertOne) SetOneShot ¶ added in v1.23.0
func (u *SessionUpsertOne) SetOneShot(v bool) *SessionUpsertOne
SetOneShot sets the "one_shot" field.
func (*SessionUpsertOne) SetPath ¶ added in v1.12.0
func (u *SessionUpsertOne) SetPath(v string) *SessionUpsertOne
SetPath sets the "path" field.
func (*SessionUpsertOne) SetProgram ¶ added in v1.12.0
func (u *SessionUpsertOne) SetProgram(v string) *SessionUpsertOne
SetProgram sets the "program" field.
func (*SessionUpsertOne) SetPrompt ¶ added in v1.12.0
func (u *SessionUpsertOne) SetPrompt(v string) *SessionUpsertOne
SetPrompt sets the "prompt" field.
func (*SessionUpsertOne) SetSessionType ¶ added in v1.12.0
func (u *SessionUpsertOne) SetSessionType(v string) *SessionUpsertOne
SetSessionType sets the "session_type" field.
func (*SessionUpsertOne) SetStatus ¶ added in v1.12.0
func (u *SessionUpsertOne) SetStatus(v int) *SessionUpsertOne
SetStatus sets the "status" field.
func (*SessionUpsertOne) SetTitle ¶ added in v1.12.0
func (u *SessionUpsertOne) SetTitle(v string) *SessionUpsertOne
SetTitle sets the "title" field.
func (*SessionUpsertOne) SetTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsertOne) SetTmuxPrefix(v string) *SessionUpsertOne
SetTmuxPrefix sets the "tmux_prefix" field.
func (*SessionUpsertOne) SetUUID ¶ added in v1.15.0
func (u *SessionUpsertOne) SetUUID(v string) *SessionUpsertOne
SetUUID sets the "uuid" field.
func (*SessionUpsertOne) SetUpdatedAt ¶ added in v1.12.0
func (u *SessionUpsertOne) SetUpdatedAt(v time.Time) *SessionUpsertOne
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpsertOne) SetWidth ¶ added in v1.12.0
func (u *SessionUpsertOne) SetWidth(v int) *SessionUpsertOne
SetWidth sets the "width" field.
func (*SessionUpsertOne) SetWorkingDir ¶ added in v1.12.0
func (u *SessionUpsertOne) SetWorkingDir(v string) *SessionUpsertOne
SetWorkingDir sets the "working_dir" field.
func (*SessionUpsertOne) Update ¶ added in v1.12.0
func (u *SessionUpsertOne) Update(set func(*SessionUpsert)) *SessionUpsertOne
Update allows overriding fields `UPDATE` values. See the SessionCreate.OnConflict documentation for more info.
func (*SessionUpsertOne) UpdateAutoYes ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateAutoYes() *SessionUpsertOne
UpdateAutoYes sets the "auto_yes" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateBranch ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateBranch() *SessionUpsertOne
UpdateBranch sets the "branch" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateCategory ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateCategory() *SessionUpsertOne
UpdateCategory sets the "category" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateExistingWorktree ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateExistingWorktree() *SessionUpsertOne
UpdateExistingWorktree sets the "existing_worktree" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateHeight ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateHeight() *SessionUpsertOne
UpdateHeight sets the "height" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateInitialPrompt ¶ added in v1.23.0
func (u *SessionUpsertOne) UpdateInitialPrompt() *SessionUpsertOne
UpdateInitialPrompt sets the "initial_prompt" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateIsExpanded ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateIsExpanded() *SessionUpsertOne
UpdateIsExpanded sets the "is_expanded" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateLastAcknowledged ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateLastAcknowledged() *SessionUpsertOne
UpdateLastAcknowledged sets the "last_acknowledged" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateLastAddedToQueue ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateLastAddedToQueue() *SessionUpsertOne
UpdateLastAddedToQueue sets the "last_added_to_queue" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateLastMeaningfulOutput ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateLastMeaningfulOutput() *SessionUpsertOne
UpdateLastMeaningfulOutput sets the "last_meaningful_output" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateLastOutputSignature ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateLastOutputSignature() *SessionUpsertOne
UpdateLastOutputSignature sets the "last_output_signature" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateLastTerminalUpdate ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateLastTerminalUpdate() *SessionUpsertOne
UpdateLastTerminalUpdate sets the "last_terminal_update" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateLastViewed ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateLastViewed() *SessionUpsertOne
UpdateLastViewed sets the "last_viewed" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateMcpServerURL ¶ added in v1.23.1
func (u *SessionUpsertOne) UpdateMcpServerURL() *SessionUpsertOne
UpdateMcpServerURL sets the "mcp_server_url" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateNewValues ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateNewValues() *SessionUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Session.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*SessionUpsertOne) UpdateOneShot ¶ added in v1.23.0
func (u *SessionUpsertOne) UpdateOneShot() *SessionUpsertOne
UpdateOneShot sets the "one_shot" field to the value that was provided on create.
func (*SessionUpsertOne) UpdatePath ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdatePath() *SessionUpsertOne
UpdatePath sets the "path" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateProgram ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateProgram() *SessionUpsertOne
UpdateProgram sets the "program" field to the value that was provided on create.
func (*SessionUpsertOne) UpdatePrompt ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdatePrompt() *SessionUpsertOne
UpdatePrompt sets the "prompt" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateSessionType ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateSessionType() *SessionUpsertOne
UpdateSessionType sets the "session_type" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateStatus ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateStatus() *SessionUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateTitle ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateTitle() *SessionUpsertOne
UpdateTitle sets the "title" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateTmuxPrefix ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateTmuxPrefix() *SessionUpsertOne
UpdateTmuxPrefix sets the "tmux_prefix" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateUUID ¶ added in v1.15.0
func (u *SessionUpsertOne) UpdateUUID() *SessionUpsertOne
UpdateUUID sets the "uuid" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateUpdatedAt ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateUpdatedAt() *SessionUpsertOne
UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateWidth ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateWidth() *SessionUpsertOne
UpdateWidth sets the "width" field to the value that was provided on create.
func (*SessionUpsertOne) UpdateWorkingDir ¶ added in v1.12.0
func (u *SessionUpsertOne) UpdateWorkingDir() *SessionUpsertOne
UpdateWorkingDir sets the "working_dir" field to the value that was provided on create.
type Tag ¶
type Tag struct {
// ID of the ent.
ID int `json:"id,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 TagQuery when eager-loading is set.
Edges TagEdges `json:"edges"`
// contains filtered or unexported fields
}
Tag is the model entity for the Tag schema.
func (*Tag) QuerySessions ¶
func (_m *Tag) QuerySessions() *SessionQuery
QuerySessions queries the "sessions" edge of the Tag entity.
func (*Tag) Unwrap ¶
Unwrap unwraps the Tag 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 (*Tag) Update ¶
func (_m *Tag) Update() *TagUpdateOne
Update returns a builder for updating this Tag. Note that you need to call Tag.Unwrap() before calling this method if this Tag was returned from a transaction, and the transaction was committed or rolled back.
type TagClient ¶
type TagClient struct {
// contains filtered or unexported fields
}
TagClient is a client for the Tag schema.
func NewTagClient ¶
func NewTagClient(c config) *TagClient
NewTagClient returns a client for the Tag from the given config.
func (*TagClient) CreateBulk ¶
func (c *TagClient) CreateBulk(builders ...*TagCreate) *TagCreateBulk
CreateBulk returns a builder for creating a bulk of Tag entities.
func (*TagClient) DeleteOne ¶
func (c *TagClient) DeleteOne(_m *Tag) *TagDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*TagClient) DeleteOneID ¶
func (c *TagClient) DeleteOneID(id int) *TagDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*TagClient) Intercept ¶
func (c *TagClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `tag.Intercept(f(g(h())))`.
func (*TagClient) Interceptors ¶
func (c *TagClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*TagClient) MapCreateBulk ¶
func (c *TagClient) MapCreateBulk(slice any, setFunc func(*TagCreate, int)) *TagCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*TagClient) QuerySessions ¶
func (c *TagClient) QuerySessions(_m *Tag) *SessionQuery
QuerySessions queries the sessions edge of a Tag.
func (*TagClient) UpdateOne ¶
func (c *TagClient) UpdateOne(_m *Tag) *TagUpdateOne
UpdateOne returns an update builder for the given entity.
func (*TagClient) UpdateOneID ¶
func (c *TagClient) UpdateOneID(id int) *TagUpdateOne
UpdateOneID returns an update builder for the given id.
type TagCreate ¶
type TagCreate struct {
// contains filtered or unexported fields
}
TagCreate is the builder for creating a Tag entity.
func (*TagCreate) AddSessionIDs ¶
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*TagCreate) AddSessions ¶
AddSessions adds the "sessions" edges to the Session entity.
func (*TagCreate) Mutation ¶
func (_c *TagCreate) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
func (*TagCreate) OnConflict ¶ added in v1.12.0
func (_c *TagCreate) OnConflict(opts ...sql.ConflictOption) *TagUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Tag.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.TagUpsert) {
SetName(v+v).
}).
Exec(ctx)
func (*TagCreate) OnConflictColumns ¶ added in v1.12.0
func (_c *TagCreate) OnConflictColumns(columns ...string) *TagUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Tag.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type TagCreateBulk ¶
type TagCreateBulk struct {
// contains filtered or unexported fields
}
TagCreateBulk is the builder for creating many Tag entities in bulk.
func (*TagCreateBulk) Exec ¶
func (_c *TagCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TagCreateBulk) ExecX ¶
func (_c *TagCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TagCreateBulk) OnConflict ¶ added in v1.12.0
func (_c *TagCreateBulk) OnConflict(opts ...sql.ConflictOption) *TagUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Tag.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.TagUpsert) {
SetName(v+v).
}).
Exec(ctx)
func (*TagCreateBulk) OnConflictColumns ¶ added in v1.12.0
func (_c *TagCreateBulk) OnConflictColumns(columns ...string) *TagUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Tag.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type TagDelete ¶
type TagDelete struct {
// contains filtered or unexported fields
}
TagDelete is the builder for deleting a Tag entity.
func (*TagDelete) Exec ¶
Exec executes the deletion query and returns how many vertices were deleted.
type TagDeleteOne ¶
type TagDeleteOne struct {
// contains filtered or unexported fields
}
TagDeleteOne is the builder for deleting a single Tag entity.
func (*TagDeleteOne) Exec ¶
func (_d *TagDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*TagDeleteOne) ExecX ¶
func (_d *TagDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TagDeleteOne) Where ¶
func (_d *TagDeleteOne) Where(ps ...predicate.Tag) *TagDeleteOne
Where appends a list predicates to the TagDelete builder.
type TagEdges ¶
type TagEdges struct {
// Sessions holds the value of the sessions edge.
Sessions []*Session `json:"sessions,omitempty"`
// contains filtered or unexported fields
}
TagEdges holds the relations/edges for other nodes in the graph.
func (TagEdges) SessionsOrErr ¶
SessionsOrErr returns the Sessions value or an error if the edge was not loaded in eager-loading.
type TagGroupBy ¶
type TagGroupBy struct {
// contains filtered or unexported fields
}
TagGroupBy is the group-by builder for Tag entities.
func (*TagGroupBy) Aggregate ¶
func (_g *TagGroupBy) Aggregate(fns ...AggregateFunc) *TagGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*TagGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TagGroupBy) Scan ¶
func (_g *TagGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*TagGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TagMutation ¶
type TagMutation struct {
// contains filtered or unexported fields
}
TagMutation represents an operation that mutates the Tag nodes in the graph.
func (*TagMutation) AddField ¶
func (m *TagMutation) 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 (*TagMutation) AddSessionIDs ¶
func (m *TagMutation) AddSessionIDs(ids ...int)
AddSessionIDs adds the "sessions" edge to the Session entity by ids.
func (*TagMutation) AddedEdges ¶
func (m *TagMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*TagMutation) AddedField ¶
func (m *TagMutation) 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 (*TagMutation) AddedFields ¶
func (m *TagMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*TagMutation) AddedIDs ¶
func (m *TagMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*TagMutation) ClearEdge ¶
func (m *TagMutation) 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 (*TagMutation) ClearField ¶
func (m *TagMutation) 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 (*TagMutation) ClearSessions ¶
func (m *TagMutation) ClearSessions()
ClearSessions clears the "sessions" edge to the Session entity.
func (*TagMutation) ClearedEdges ¶
func (m *TagMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*TagMutation) ClearedFields ¶
func (m *TagMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (TagMutation) Client ¶
func (m TagMutation) 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 (*TagMutation) EdgeCleared ¶
func (m *TagMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*TagMutation) Field ¶
func (m *TagMutation) 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 (*TagMutation) FieldCleared ¶
func (m *TagMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*TagMutation) Fields ¶
func (m *TagMutation) 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 (*TagMutation) ID ¶
func (m *TagMutation) 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 (*TagMutation) IDs ¶
func (m *TagMutation) 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 (*TagMutation) Name ¶
func (m *TagMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*TagMutation) 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 (*TagMutation) OldName ¶
func (m *TagMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Tag entity. If the Tag object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*TagMutation) RemoveSessionIDs ¶
func (m *TagMutation) RemoveSessionIDs(ids ...int)
RemoveSessionIDs removes the "sessions" edge to the Session entity by IDs.
func (*TagMutation) RemovedEdges ¶
func (m *TagMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*TagMutation) RemovedIDs ¶
func (m *TagMutation) 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 (*TagMutation) RemovedSessionsIDs ¶
func (m *TagMutation) RemovedSessionsIDs() (ids []int)
RemovedSessions returns the removed IDs of the "sessions" edge to the Session entity.
func (*TagMutation) ResetEdge ¶
func (m *TagMutation) 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 (*TagMutation) ResetField ¶
func (m *TagMutation) 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 (*TagMutation) ResetName ¶
func (m *TagMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*TagMutation) ResetSessions ¶
func (m *TagMutation) ResetSessions()
ResetSessions resets all changes to the "sessions" edge.
func (*TagMutation) SessionsCleared ¶
func (m *TagMutation) SessionsCleared() bool
SessionsCleared reports if the "sessions" edge to the Session entity was cleared.
func (*TagMutation) SessionsIDs ¶
func (m *TagMutation) SessionsIDs() (ids []int)
SessionsIDs returns the "sessions" edge IDs in the mutation.
func (*TagMutation) SetField ¶
func (m *TagMutation) 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 (*TagMutation) SetName ¶
func (m *TagMutation) SetName(s string)
SetName sets the "name" field.
func (*TagMutation) SetOp ¶
func (m *TagMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (TagMutation) Tx ¶
func (m TagMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*TagMutation) Type ¶
func (m *TagMutation) Type() string
Type returns the node type of this mutation (Tag).
func (*TagMutation) Where ¶
func (m *TagMutation) Where(ps ...predicate.Tag)
Where appends a list predicates to the TagMutation builder.
func (*TagMutation) WhereP ¶
func (m *TagMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the TagMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type TagQuery ¶
type TagQuery struct {
// contains filtered or unexported fields
}
TagQuery is the builder for querying Tag entities.
func (*TagQuery) Aggregate ¶
func (_q *TagQuery) Aggregate(fns ...AggregateFunc) *TagSelect
Aggregate returns a TagSelect configured with the given aggregations.
func (*TagQuery) Clone ¶
Clone returns a duplicate of the TagQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*TagQuery) First ¶
First returns the first Tag entity from the query. Returns a *NotFoundError when no Tag was found.
func (*TagQuery) FirstID ¶
FirstID returns the first Tag ID from the query. Returns a *NotFoundError when no Tag ID was found.
func (*TagQuery) GroupBy ¶
func (_q *TagQuery) GroupBy(field string, fields ...string) *TagGroupBy
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.Tag.Query().
GroupBy(tag.FieldName).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*TagQuery) Only ¶
Only returns a single Tag entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Tag entity is found. Returns a *NotFoundError when no Tag entities are found.
func (*TagQuery) OnlyID ¶
OnlyID is like Only, but returns the only Tag ID in the query. Returns a *NotSingularError when more than one Tag ID is found. Returns a *NotFoundError when no entities are found.
func (*TagQuery) Order ¶
func (_q *TagQuery) Order(o ...tag.OrderOption) *TagQuery
Order specifies how the records should be ordered.
func (*TagQuery) QuerySessions ¶
func (_q *TagQuery) QuerySessions() *SessionQuery
QuerySessions chains the current query on the "sessions" edge.
func (*TagQuery) Select ¶
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.Tag.Query().
Select(tag.FieldName).
Scan(ctx, &v)
func (*TagQuery) 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 (*TagQuery) WithSessions ¶
func (_q *TagQuery) WithSessions(opts ...func(*SessionQuery)) *TagQuery
WithSessions tells the query-builder to eager-load the nodes that are connected to the "sessions" edge. The optional arguments are used to configure the query builder of the edge.
type TagSelect ¶
type TagSelect struct {
*TagQuery
// contains filtered or unexported fields
}
TagSelect is the builder for selecting fields of Tag entities.
func (*TagSelect) Aggregate ¶
func (_s *TagSelect) Aggregate(fns ...AggregateFunc) *TagSelect
Aggregate adds the given aggregation functions to the selector query.
func (*TagSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*TagSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*TagSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*TagSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*TagSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*TagSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*TagSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type TagUpdate ¶
type TagUpdate struct {
// contains filtered or unexported fields
}
TagUpdate is the builder for updating Tag entities.
func (*TagUpdate) AddSessionIDs ¶
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*TagUpdate) AddSessions ¶
AddSessions adds the "sessions" edges to the Session entity.
func (*TagUpdate) ClearSessions ¶
ClearSessions clears all "sessions" edges to the Session entity.
func (*TagUpdate) Mutation ¶
func (_u *TagUpdate) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
func (*TagUpdate) RemoveSessionIDs ¶
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*TagUpdate) RemoveSessions ¶
RemoveSessions removes "sessions" edges to Session entities.
func (*TagUpdate) Save ¶
Save executes the query and returns the number of nodes affected by the update operation.
func (*TagUpdate) SetNillableName ¶
SetNillableName sets the "name" field if the given value is not nil.
type TagUpdateOne ¶
type TagUpdateOne struct {
// contains filtered or unexported fields
}
TagUpdateOne is the builder for updating a single Tag entity.
func (*TagUpdateOne) AddSessionIDs ¶
func (_u *TagUpdateOne) AddSessionIDs(ids ...int) *TagUpdateOne
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*TagUpdateOne) AddSessions ¶
func (_u *TagUpdateOne) AddSessions(v ...*Session) *TagUpdateOne
AddSessions adds the "sessions" edges to the Session entity.
func (*TagUpdateOne) ClearSessions ¶
func (_u *TagUpdateOne) ClearSessions() *TagUpdateOne
ClearSessions clears all "sessions" edges to the Session entity.
func (*TagUpdateOne) Exec ¶
func (_u *TagUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*TagUpdateOne) ExecX ¶
func (_u *TagUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TagUpdateOne) Mutation ¶
func (_u *TagUpdateOne) Mutation() *TagMutation
Mutation returns the TagMutation object of the builder.
func (*TagUpdateOne) RemoveSessionIDs ¶
func (_u *TagUpdateOne) RemoveSessionIDs(ids ...int) *TagUpdateOne
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*TagUpdateOne) RemoveSessions ¶
func (_u *TagUpdateOne) RemoveSessions(v ...*Session) *TagUpdateOne
RemoveSessions removes "sessions" edges to Session entities.
func (*TagUpdateOne) Save ¶
func (_u *TagUpdateOne) Save(ctx context.Context) (*Tag, error)
Save executes the query and returns the updated Tag entity.
func (*TagUpdateOne) SaveX ¶
func (_u *TagUpdateOne) SaveX(ctx context.Context) *Tag
SaveX is like Save, but panics if an error occurs.
func (*TagUpdateOne) Select ¶
func (_u *TagUpdateOne) Select(field string, fields ...string) *TagUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*TagUpdateOne) SetName ¶
func (_u *TagUpdateOne) SetName(v string) *TagUpdateOne
SetName sets the "name" field.
func (*TagUpdateOne) SetNillableName ¶
func (_u *TagUpdateOne) SetNillableName(v *string) *TagUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*TagUpdateOne) Where ¶
func (_u *TagUpdateOne) Where(ps ...predicate.Tag) *TagUpdateOne
Where appends a list predicates to the TagUpdate builder.
type TagUpsert ¶ added in v1.12.0
TagUpsert is the "OnConflict" setter.
func (*TagUpsert) UpdateName ¶ added in v1.12.0
UpdateName sets the "name" field to the value that was provided on create.
type TagUpsertBulk ¶ added in v1.12.0
type TagUpsertBulk struct {
// contains filtered or unexported fields
}
TagUpsertBulk is the builder for "upsert"-ing a bulk of Tag nodes.
func (*TagUpsertBulk) DoNothing ¶ added in v1.12.0
func (u *TagUpsertBulk) DoNothing() *TagUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*TagUpsertBulk) Exec ¶ added in v1.12.0
func (u *TagUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*TagUpsertBulk) ExecX ¶ added in v1.12.0
func (u *TagUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TagUpsertBulk) Ignore ¶ added in v1.12.0
func (u *TagUpsertBulk) Ignore() *TagUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Tag.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*TagUpsertBulk) SetName ¶ added in v1.12.0
func (u *TagUpsertBulk) SetName(v string) *TagUpsertBulk
SetName sets the "name" field.
func (*TagUpsertBulk) Update ¶ added in v1.12.0
func (u *TagUpsertBulk) Update(set func(*TagUpsert)) *TagUpsertBulk
Update allows overriding fields `UPDATE` values. See the TagCreateBulk.OnConflict documentation for more info.
func (*TagUpsertBulk) UpdateName ¶ added in v1.12.0
func (u *TagUpsertBulk) UpdateName() *TagUpsertBulk
UpdateName sets the "name" field to the value that was provided on create.
func (*TagUpsertBulk) UpdateNewValues ¶ added in v1.12.0
func (u *TagUpsertBulk) UpdateNewValues() *TagUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Tag.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type TagUpsertOne ¶ added in v1.12.0
type TagUpsertOne struct {
// contains filtered or unexported fields
}
TagUpsertOne is the builder for "upsert"-ing
one Tag node.
func (*TagUpsertOne) DoNothing ¶ added in v1.12.0
func (u *TagUpsertOne) DoNothing() *TagUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*TagUpsertOne) Exec ¶ added in v1.12.0
func (u *TagUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*TagUpsertOne) ExecX ¶ added in v1.12.0
func (u *TagUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*TagUpsertOne) ID ¶ added in v1.12.0
func (u *TagUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*TagUpsertOne) IDX ¶ added in v1.12.0
func (u *TagUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*TagUpsertOne) Ignore ¶ added in v1.12.0
func (u *TagUpsertOne) Ignore() *TagUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Tag.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*TagUpsertOne) SetName ¶ added in v1.12.0
func (u *TagUpsertOne) SetName(v string) *TagUpsertOne
SetName sets the "name" field.
func (*TagUpsertOne) Update ¶ added in v1.12.0
func (u *TagUpsertOne) Update(set func(*TagUpsert)) *TagUpsertOne
Update allows overriding fields `UPDATE` values. See the TagCreate.OnConflict documentation for more info.
func (*TagUpsertOne) UpdateName ¶ added in v1.12.0
func (u *TagUpsertOne) UpdateName() *TagUpsertOne
UpdateName sets the "name" field to the value that was provided on create.
func (*TagUpsertOne) UpdateNewValues ¶ added in v1.12.0
func (u *TagUpsertOne) UpdateNewValues() *TagUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Tag.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct {
// ApprovalRule is the client for interacting with the ApprovalRule builders.
ApprovalRule *ApprovalRuleClient
// ClassificationAnalytics is the client for interacting with the ClassificationAnalytics builders.
ClassificationAnalytics *ClassificationAnalyticsClient
// ClaudeMetadata is the client for interacting with the ClaudeMetadata builders.
ClaudeMetadata *ClaudeMetadataClient
// ClaudeSession is the client for interacting with the ClaudeSession builders.
ClaudeSession *ClaudeSessionClient
// DiffStats is the client for interacting with the DiffStats builders.
DiffStats *DiffStatsClient
// Project is the client for interacting with the Project builders.
Project *ProjectClient
// Session is the client for interacting with the Session builders.
Session *SessionClient
// Tag is the client for interacting with the Tag builders.
Tag *TagClient
// Worktree is the client for interacting with the Worktree builders.
Worktree *WorktreeClient
// 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 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.
type Worktree ¶
type Worktree struct {
// ID of the ent.
ID int `json:"id,omitempty"`
// RepoPath holds the value of the "repo_path" field.
RepoPath string `json:"repo_path,omitempty"`
// WorktreePath holds the value of the "worktree_path" field.
WorktreePath string `json:"worktree_path,omitempty"`
// SessionName holds the value of the "session_name" field.
SessionName string `json:"session_name,omitempty"`
// BranchName holds the value of the "branch_name" field.
BranchName string `json:"branch_name,omitempty"`
// BaseCommitSha holds the value of the "base_commit_sha" field.
BaseCommitSha string `json:"base_commit_sha,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the WorktreeQuery when eager-loading is set.
Edges WorktreeEdges `json:"edges"`
// contains filtered or unexported fields
}
Worktree is the model entity for the Worktree schema.
func (*Worktree) QuerySession ¶
func (_m *Worktree) QuerySession() *SessionQuery
QuerySession queries the "session" edge of the Worktree entity.
func (*Worktree) Unwrap ¶
Unwrap unwraps the Worktree 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 (*Worktree) Update ¶
func (_m *Worktree) Update() *WorktreeUpdateOne
Update returns a builder for updating this Worktree. Note that you need to call Worktree.Unwrap() before calling this method if this Worktree was returned from a transaction, and the transaction was committed or rolled back.
type WorktreeClient ¶
type WorktreeClient struct {
// contains filtered or unexported fields
}
WorktreeClient is a client for the Worktree schema.
func NewWorktreeClient ¶
func NewWorktreeClient(c config) *WorktreeClient
NewWorktreeClient returns a client for the Worktree from the given config.
func (*WorktreeClient) Create ¶
func (c *WorktreeClient) Create() *WorktreeCreate
Create returns a builder for creating a Worktree entity.
func (*WorktreeClient) CreateBulk ¶
func (c *WorktreeClient) CreateBulk(builders ...*WorktreeCreate) *WorktreeCreateBulk
CreateBulk returns a builder for creating a bulk of Worktree entities.
func (*WorktreeClient) Delete ¶
func (c *WorktreeClient) Delete() *WorktreeDelete
Delete returns a delete builder for Worktree.
func (*WorktreeClient) DeleteOne ¶
func (c *WorktreeClient) DeleteOne(_m *Worktree) *WorktreeDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*WorktreeClient) DeleteOneID ¶
func (c *WorktreeClient) DeleteOneID(id int) *WorktreeDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*WorktreeClient) GetX ¶
func (c *WorktreeClient) GetX(ctx context.Context, id int) *Worktree
GetX is like Get, but panics if an error occurs.
func (*WorktreeClient) Hooks ¶
func (c *WorktreeClient) Hooks() []Hook
Hooks returns the client hooks.
func (*WorktreeClient) Intercept ¶
func (c *WorktreeClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `worktree.Intercept(f(g(h())))`.
func (*WorktreeClient) Interceptors ¶
func (c *WorktreeClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*WorktreeClient) MapCreateBulk ¶
func (c *WorktreeClient) MapCreateBulk(slice any, setFunc func(*WorktreeCreate, int)) *WorktreeCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*WorktreeClient) Query ¶
func (c *WorktreeClient) Query() *WorktreeQuery
Query returns a query builder for Worktree.
func (*WorktreeClient) QuerySession ¶
func (c *WorktreeClient) QuerySession(_m *Worktree) *SessionQuery
QuerySession queries the session edge of a Worktree.
func (*WorktreeClient) Update ¶
func (c *WorktreeClient) Update() *WorktreeUpdate
Update returns an update builder for Worktree.
func (*WorktreeClient) UpdateOne ¶
func (c *WorktreeClient) UpdateOne(_m *Worktree) *WorktreeUpdateOne
UpdateOne returns an update builder for the given entity.
func (*WorktreeClient) UpdateOneID ¶
func (c *WorktreeClient) UpdateOneID(id int) *WorktreeUpdateOne
UpdateOneID returns an update builder for the given id.
func (*WorktreeClient) Use ¶
func (c *WorktreeClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `worktree.Hooks(f(g(h())))`.
type WorktreeCreate ¶
type WorktreeCreate struct {
// contains filtered or unexported fields
}
WorktreeCreate is the builder for creating a Worktree entity.
func (*WorktreeCreate) Exec ¶
func (_c *WorktreeCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorktreeCreate) ExecX ¶
func (_c *WorktreeCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorktreeCreate) Mutation ¶
func (_c *WorktreeCreate) Mutation() *WorktreeMutation
Mutation returns the WorktreeMutation object of the builder.
func (*WorktreeCreate) OnConflict ¶ added in v1.12.0
func (_c *WorktreeCreate) OnConflict(opts ...sql.ConflictOption) *WorktreeUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Worktree.Create().
SetRepoPath(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.WorktreeUpsert) {
SetRepoPath(v+v).
}).
Exec(ctx)
func (*WorktreeCreate) OnConflictColumns ¶ added in v1.12.0
func (_c *WorktreeCreate) OnConflictColumns(columns ...string) *WorktreeUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Worktree.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*WorktreeCreate) Save ¶
func (_c *WorktreeCreate) Save(ctx context.Context) (*Worktree, error)
Save creates the Worktree in the database.
func (*WorktreeCreate) SaveX ¶
func (_c *WorktreeCreate) SaveX(ctx context.Context) *Worktree
SaveX calls Save and panics if Save returns an error.
func (*WorktreeCreate) SetBaseCommitSha ¶
func (_c *WorktreeCreate) SetBaseCommitSha(v string) *WorktreeCreate
SetBaseCommitSha sets the "base_commit_sha" field.
func (*WorktreeCreate) SetBranchName ¶
func (_c *WorktreeCreate) SetBranchName(v string) *WorktreeCreate
SetBranchName sets the "branch_name" field.
func (*WorktreeCreate) SetRepoPath ¶
func (_c *WorktreeCreate) SetRepoPath(v string) *WorktreeCreate
SetRepoPath sets the "repo_path" field.
func (*WorktreeCreate) SetSession ¶
func (_c *WorktreeCreate) SetSession(v *Session) *WorktreeCreate
SetSession sets the "session" edge to the Session entity.
func (*WorktreeCreate) SetSessionID ¶
func (_c *WorktreeCreate) SetSessionID(id int) *WorktreeCreate
SetSessionID sets the "session" edge to the Session entity by ID.
func (*WorktreeCreate) SetSessionName ¶
func (_c *WorktreeCreate) SetSessionName(v string) *WorktreeCreate
SetSessionName sets the "session_name" field.
func (*WorktreeCreate) SetWorktreePath ¶
func (_c *WorktreeCreate) SetWorktreePath(v string) *WorktreeCreate
SetWorktreePath sets the "worktree_path" field.
type WorktreeCreateBulk ¶
type WorktreeCreateBulk struct {
// contains filtered or unexported fields
}
WorktreeCreateBulk is the builder for creating many Worktree entities in bulk.
func (*WorktreeCreateBulk) Exec ¶
func (_c *WorktreeCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorktreeCreateBulk) ExecX ¶
func (_c *WorktreeCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorktreeCreateBulk) OnConflict ¶ added in v1.12.0
func (_c *WorktreeCreateBulk) OnConflict(opts ...sql.ConflictOption) *WorktreeUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.Worktree.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.WorktreeUpsert) {
SetRepoPath(v+v).
}).
Exec(ctx)
func (*WorktreeCreateBulk) OnConflictColumns ¶ added in v1.12.0
func (_c *WorktreeCreateBulk) OnConflictColumns(columns ...string) *WorktreeUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.Worktree.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
type WorktreeDelete ¶
type WorktreeDelete struct {
// contains filtered or unexported fields
}
WorktreeDelete is the builder for deleting a Worktree entity.
func (*WorktreeDelete) Exec ¶
func (_d *WorktreeDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*WorktreeDelete) ExecX ¶
func (_d *WorktreeDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*WorktreeDelete) Where ¶
func (_d *WorktreeDelete) Where(ps ...predicate.Worktree) *WorktreeDelete
Where appends a list predicates to the WorktreeDelete builder.
type WorktreeDeleteOne ¶
type WorktreeDeleteOne struct {
// contains filtered or unexported fields
}
WorktreeDeleteOne is the builder for deleting a single Worktree entity.
func (*WorktreeDeleteOne) Exec ¶
func (_d *WorktreeDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*WorktreeDeleteOne) ExecX ¶
func (_d *WorktreeDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorktreeDeleteOne) Where ¶
func (_d *WorktreeDeleteOne) Where(ps ...predicate.Worktree) *WorktreeDeleteOne
Where appends a list predicates to the WorktreeDelete builder.
type WorktreeEdges ¶
type WorktreeEdges struct {
// Session holds the value of the session edge.
Session *Session `json:"session,omitempty"`
// contains filtered or unexported fields
}
WorktreeEdges holds the relations/edges for other nodes in the graph.
func (WorktreeEdges) SessionOrErr ¶
func (e WorktreeEdges) SessionOrErr() (*Session, error)
SessionOrErr returns the Session value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type WorktreeGroupBy ¶
type WorktreeGroupBy struct {
// contains filtered or unexported fields
}
WorktreeGroupBy is the group-by builder for Worktree entities.
func (*WorktreeGroupBy) Aggregate ¶
func (_g *WorktreeGroupBy) Aggregate(fns ...AggregateFunc) *WorktreeGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*WorktreeGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorktreeGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorktreeGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorktreeGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorktreeGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorktreeGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorktreeGroupBy) Scan ¶
func (_g *WorktreeGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorktreeGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WorktreeMutation ¶
type WorktreeMutation struct {
// contains filtered or unexported fields
}
WorktreeMutation represents an operation that mutates the Worktree nodes in the graph.
func (*WorktreeMutation) AddField ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) AddedEdges ¶
func (m *WorktreeMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*WorktreeMutation) AddedField ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) AddedFields ¶
func (m *WorktreeMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*WorktreeMutation) AddedIDs ¶
func (m *WorktreeMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*WorktreeMutation) BaseCommitSha ¶
func (m *WorktreeMutation) BaseCommitSha() (r string, exists bool)
BaseCommitSha returns the value of the "base_commit_sha" field in the mutation.
func (*WorktreeMutation) BranchName ¶
func (m *WorktreeMutation) BranchName() (r string, exists bool)
BranchName returns the value of the "branch_name" field in the mutation.
func (*WorktreeMutation) ClearEdge ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) ClearField ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) ClearSession ¶
func (m *WorktreeMutation) ClearSession()
ClearSession clears the "session" edge to the Session entity.
func (*WorktreeMutation) ClearedEdges ¶
func (m *WorktreeMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*WorktreeMutation) ClearedFields ¶
func (m *WorktreeMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (WorktreeMutation) Client ¶
func (m WorktreeMutation) 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 (*WorktreeMutation) EdgeCleared ¶
func (m *WorktreeMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*WorktreeMutation) Field ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) FieldCleared ¶
func (m *WorktreeMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*WorktreeMutation) Fields ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) ID ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) IDs ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) OldBaseCommitSha ¶
func (m *WorktreeMutation) OldBaseCommitSha(ctx context.Context) (v string, err error)
OldBaseCommitSha returns the old "base_commit_sha" field's value of the Worktree entity. If the Worktree object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorktreeMutation) OldBranchName ¶
func (m *WorktreeMutation) OldBranchName(ctx context.Context) (v string, err error)
OldBranchName returns the old "branch_name" field's value of the Worktree entity. If the Worktree object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorktreeMutation) 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 (*WorktreeMutation) OldRepoPath ¶
func (m *WorktreeMutation) OldRepoPath(ctx context.Context) (v string, err error)
OldRepoPath returns the old "repo_path" field's value of the Worktree entity. If the Worktree object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorktreeMutation) OldSessionName ¶
func (m *WorktreeMutation) OldSessionName(ctx context.Context) (v string, err error)
OldSessionName returns the old "session_name" field's value of the Worktree entity. If the Worktree object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorktreeMutation) OldWorktreePath ¶
func (m *WorktreeMutation) OldWorktreePath(ctx context.Context) (v string, err error)
OldWorktreePath returns the old "worktree_path" field's value of the Worktree entity. If the Worktree object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*WorktreeMutation) RemovedEdges ¶
func (m *WorktreeMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*WorktreeMutation) RemovedIDs ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) RepoPath ¶
func (m *WorktreeMutation) RepoPath() (r string, exists bool)
RepoPath returns the value of the "repo_path" field in the mutation.
func (*WorktreeMutation) ResetBaseCommitSha ¶
func (m *WorktreeMutation) ResetBaseCommitSha()
ResetBaseCommitSha resets all changes to the "base_commit_sha" field.
func (*WorktreeMutation) ResetBranchName ¶
func (m *WorktreeMutation) ResetBranchName()
ResetBranchName resets all changes to the "branch_name" field.
func (*WorktreeMutation) ResetEdge ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) ResetField ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) ResetRepoPath ¶
func (m *WorktreeMutation) ResetRepoPath()
ResetRepoPath resets all changes to the "repo_path" field.
func (*WorktreeMutation) ResetSession ¶
func (m *WorktreeMutation) ResetSession()
ResetSession resets all changes to the "session" edge.
func (*WorktreeMutation) ResetSessionName ¶
func (m *WorktreeMutation) ResetSessionName()
ResetSessionName resets all changes to the "session_name" field.
func (*WorktreeMutation) ResetWorktreePath ¶
func (m *WorktreeMutation) ResetWorktreePath()
ResetWorktreePath resets all changes to the "worktree_path" field.
func (*WorktreeMutation) SessionCleared ¶
func (m *WorktreeMutation) SessionCleared() bool
SessionCleared reports if the "session" edge to the Session entity was cleared.
func (*WorktreeMutation) SessionID ¶
func (m *WorktreeMutation) SessionID() (id int, exists bool)
SessionID returns the "session" edge ID in the mutation.
func (*WorktreeMutation) SessionIDs ¶
func (m *WorktreeMutation) SessionIDs() (ids []int)
SessionIDs returns the "session" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SessionID instead. It exists only for internal usage by the builders.
func (*WorktreeMutation) SessionName ¶
func (m *WorktreeMutation) SessionName() (r string, exists bool)
SessionName returns the value of the "session_name" field in the mutation.
func (*WorktreeMutation) SetBaseCommitSha ¶
func (m *WorktreeMutation) SetBaseCommitSha(s string)
SetBaseCommitSha sets the "base_commit_sha" field.
func (*WorktreeMutation) SetBranchName ¶
func (m *WorktreeMutation) SetBranchName(s string)
SetBranchName sets the "branch_name" field.
func (*WorktreeMutation) SetField ¶
func (m *WorktreeMutation) 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 (*WorktreeMutation) SetOp ¶
func (m *WorktreeMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*WorktreeMutation) SetRepoPath ¶
func (m *WorktreeMutation) SetRepoPath(s string)
SetRepoPath sets the "repo_path" field.
func (*WorktreeMutation) SetSessionID ¶
func (m *WorktreeMutation) SetSessionID(id int)
SetSessionID sets the "session" edge to the Session entity by id.
func (*WorktreeMutation) SetSessionName ¶
func (m *WorktreeMutation) SetSessionName(s string)
SetSessionName sets the "session_name" field.
func (*WorktreeMutation) SetWorktreePath ¶
func (m *WorktreeMutation) SetWorktreePath(s string)
SetWorktreePath sets the "worktree_path" field.
func (WorktreeMutation) Tx ¶
func (m WorktreeMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*WorktreeMutation) Type ¶
func (m *WorktreeMutation) Type() string
Type returns the node type of this mutation (Worktree).
func (*WorktreeMutation) Where ¶
func (m *WorktreeMutation) Where(ps ...predicate.Worktree)
Where appends a list predicates to the WorktreeMutation builder.
func (*WorktreeMutation) WhereP ¶
func (m *WorktreeMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the WorktreeMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
func (*WorktreeMutation) WorktreePath ¶
func (m *WorktreeMutation) WorktreePath() (r string, exists bool)
WorktreePath returns the value of the "worktree_path" field in the mutation.
type WorktreeQuery ¶
type WorktreeQuery struct {
// contains filtered or unexported fields
}
WorktreeQuery is the builder for querying Worktree entities.
func (*WorktreeQuery) Aggregate ¶
func (_q *WorktreeQuery) Aggregate(fns ...AggregateFunc) *WorktreeSelect
Aggregate returns a WorktreeSelect configured with the given aggregations.
func (*WorktreeQuery) All ¶
func (_q *WorktreeQuery) All(ctx context.Context) ([]*Worktree, error)
All executes the query and returns a list of Worktrees.
func (*WorktreeQuery) AllX ¶
func (_q *WorktreeQuery) AllX(ctx context.Context) []*Worktree
AllX is like All, but panics if an error occurs.
func (*WorktreeQuery) Clone ¶
func (_q *WorktreeQuery) Clone() *WorktreeQuery
Clone returns a duplicate of the WorktreeQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*WorktreeQuery) Count ¶
func (_q *WorktreeQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*WorktreeQuery) CountX ¶
func (_q *WorktreeQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*WorktreeQuery) Exist ¶
func (_q *WorktreeQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*WorktreeQuery) ExistX ¶
func (_q *WorktreeQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*WorktreeQuery) First ¶
func (_q *WorktreeQuery) First(ctx context.Context) (*Worktree, error)
First returns the first Worktree entity from the query. Returns a *NotFoundError when no Worktree was found.
func (*WorktreeQuery) FirstID ¶
func (_q *WorktreeQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Worktree ID from the query. Returns a *NotFoundError when no Worktree ID was found.
func (*WorktreeQuery) FirstIDX ¶
func (_q *WorktreeQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*WorktreeQuery) FirstX ¶
func (_q *WorktreeQuery) FirstX(ctx context.Context) *Worktree
FirstX is like First, but panics if an error occurs.
func (*WorktreeQuery) GroupBy ¶
func (_q *WorktreeQuery) GroupBy(field string, fields ...string) *WorktreeGroupBy
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 {
RepoPath string `json:"repo_path,omitempty"`
Count int `json:"count,omitempty"`
}
client.Worktree.Query().
GroupBy(worktree.FieldRepoPath).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*WorktreeQuery) IDs ¶
func (_q *WorktreeQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of Worktree IDs.
func (*WorktreeQuery) IDsX ¶
func (_q *WorktreeQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*WorktreeQuery) Limit ¶
func (_q *WorktreeQuery) Limit(limit int) *WorktreeQuery
Limit the number of records to be returned by this query.
func (*WorktreeQuery) Offset ¶
func (_q *WorktreeQuery) Offset(offset int) *WorktreeQuery
Offset to start from.
func (*WorktreeQuery) Only ¶
func (_q *WorktreeQuery) Only(ctx context.Context) (*Worktree, error)
Only returns a single Worktree entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Worktree entity is found. Returns a *NotFoundError when no Worktree entities are found.
func (*WorktreeQuery) OnlyID ¶
func (_q *WorktreeQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Worktree ID in the query. Returns a *NotSingularError when more than one Worktree ID is found. Returns a *NotFoundError when no entities are found.
func (*WorktreeQuery) OnlyIDX ¶
func (_q *WorktreeQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*WorktreeQuery) OnlyX ¶
func (_q *WorktreeQuery) OnlyX(ctx context.Context) *Worktree
OnlyX is like Only, but panics if an error occurs.
func (*WorktreeQuery) Order ¶
func (_q *WorktreeQuery) Order(o ...worktree.OrderOption) *WorktreeQuery
Order specifies how the records should be ordered.
func (*WorktreeQuery) QuerySession ¶
func (_q *WorktreeQuery) QuerySession() *SessionQuery
QuerySession chains the current query on the "session" edge.
func (*WorktreeQuery) Select ¶
func (_q *WorktreeQuery) Select(fields ...string) *WorktreeSelect
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 {
RepoPath string `json:"repo_path,omitempty"`
}
client.Worktree.Query().
Select(worktree.FieldRepoPath).
Scan(ctx, &v)
func (*WorktreeQuery) Unique ¶
func (_q *WorktreeQuery) Unique(unique bool) *WorktreeQuery
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 (*WorktreeQuery) Where ¶
func (_q *WorktreeQuery) Where(ps ...predicate.Worktree) *WorktreeQuery
Where adds a new predicate for the WorktreeQuery builder.
func (*WorktreeQuery) WithSession ¶
func (_q *WorktreeQuery) WithSession(opts ...func(*SessionQuery)) *WorktreeQuery
WithSession tells the query-builder to eager-load the nodes that are connected to the "session" edge. The optional arguments are used to configure the query builder of the edge.
type WorktreeSelect ¶
type WorktreeSelect struct {
*WorktreeQuery
// contains filtered or unexported fields
}
WorktreeSelect is the builder for selecting fields of Worktree entities.
func (*WorktreeSelect) Aggregate ¶
func (_s *WorktreeSelect) Aggregate(fns ...AggregateFunc) *WorktreeSelect
Aggregate adds the given aggregation functions to the selector query.
func (*WorktreeSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*WorktreeSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*WorktreeSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*WorktreeSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*WorktreeSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*WorktreeSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*WorktreeSelect) Scan ¶
func (_s *WorktreeSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*WorktreeSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type WorktreeUpdate ¶
type WorktreeUpdate struct {
// contains filtered or unexported fields
}
WorktreeUpdate is the builder for updating Worktree entities.
func (*WorktreeUpdate) ClearSession ¶
func (_u *WorktreeUpdate) ClearSession() *WorktreeUpdate
ClearSession clears the "session" edge to the Session entity.
func (*WorktreeUpdate) Exec ¶
func (_u *WorktreeUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*WorktreeUpdate) ExecX ¶
func (_u *WorktreeUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorktreeUpdate) Mutation ¶
func (_u *WorktreeUpdate) Mutation() *WorktreeMutation
Mutation returns the WorktreeMutation object of the builder.
func (*WorktreeUpdate) Save ¶
func (_u *WorktreeUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*WorktreeUpdate) SaveX ¶
func (_u *WorktreeUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*WorktreeUpdate) SetBaseCommitSha ¶
func (_u *WorktreeUpdate) SetBaseCommitSha(v string) *WorktreeUpdate
SetBaseCommitSha sets the "base_commit_sha" field.
func (*WorktreeUpdate) SetBranchName ¶
func (_u *WorktreeUpdate) SetBranchName(v string) *WorktreeUpdate
SetBranchName sets the "branch_name" field.
func (*WorktreeUpdate) SetNillableBaseCommitSha ¶
func (_u *WorktreeUpdate) SetNillableBaseCommitSha(v *string) *WorktreeUpdate
SetNillableBaseCommitSha sets the "base_commit_sha" field if the given value is not nil.
func (*WorktreeUpdate) SetNillableBranchName ¶
func (_u *WorktreeUpdate) SetNillableBranchName(v *string) *WorktreeUpdate
SetNillableBranchName sets the "branch_name" field if the given value is not nil.
func (*WorktreeUpdate) SetNillableRepoPath ¶
func (_u *WorktreeUpdate) SetNillableRepoPath(v *string) *WorktreeUpdate
SetNillableRepoPath sets the "repo_path" field if the given value is not nil.
func (*WorktreeUpdate) SetNillableSessionName ¶
func (_u *WorktreeUpdate) SetNillableSessionName(v *string) *WorktreeUpdate
SetNillableSessionName sets the "session_name" field if the given value is not nil.
func (*WorktreeUpdate) SetNillableWorktreePath ¶
func (_u *WorktreeUpdate) SetNillableWorktreePath(v *string) *WorktreeUpdate
SetNillableWorktreePath sets the "worktree_path" field if the given value is not nil.
func (*WorktreeUpdate) SetRepoPath ¶
func (_u *WorktreeUpdate) SetRepoPath(v string) *WorktreeUpdate
SetRepoPath sets the "repo_path" field.
func (*WorktreeUpdate) SetSession ¶
func (_u *WorktreeUpdate) SetSession(v *Session) *WorktreeUpdate
SetSession sets the "session" edge to the Session entity.
func (*WorktreeUpdate) SetSessionID ¶
func (_u *WorktreeUpdate) SetSessionID(id int) *WorktreeUpdate
SetSessionID sets the "session" edge to the Session entity by ID.
func (*WorktreeUpdate) SetSessionName ¶
func (_u *WorktreeUpdate) SetSessionName(v string) *WorktreeUpdate
SetSessionName sets the "session_name" field.
func (*WorktreeUpdate) SetWorktreePath ¶
func (_u *WorktreeUpdate) SetWorktreePath(v string) *WorktreeUpdate
SetWorktreePath sets the "worktree_path" field.
func (*WorktreeUpdate) Where ¶
func (_u *WorktreeUpdate) Where(ps ...predicate.Worktree) *WorktreeUpdate
Where appends a list predicates to the WorktreeUpdate builder.
type WorktreeUpdateOne ¶
type WorktreeUpdateOne struct {
// contains filtered or unexported fields
}
WorktreeUpdateOne is the builder for updating a single Worktree entity.
func (*WorktreeUpdateOne) ClearSession ¶
func (_u *WorktreeUpdateOne) ClearSession() *WorktreeUpdateOne
ClearSession clears the "session" edge to the Session entity.
func (*WorktreeUpdateOne) Exec ¶
func (_u *WorktreeUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*WorktreeUpdateOne) ExecX ¶
func (_u *WorktreeUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorktreeUpdateOne) Mutation ¶
func (_u *WorktreeUpdateOne) Mutation() *WorktreeMutation
Mutation returns the WorktreeMutation object of the builder.
func (*WorktreeUpdateOne) Save ¶
func (_u *WorktreeUpdateOne) Save(ctx context.Context) (*Worktree, error)
Save executes the query and returns the updated Worktree entity.
func (*WorktreeUpdateOne) SaveX ¶
func (_u *WorktreeUpdateOne) SaveX(ctx context.Context) *Worktree
SaveX is like Save, but panics if an error occurs.
func (*WorktreeUpdateOne) Select ¶
func (_u *WorktreeUpdateOne) Select(field string, fields ...string) *WorktreeUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*WorktreeUpdateOne) SetBaseCommitSha ¶
func (_u *WorktreeUpdateOne) SetBaseCommitSha(v string) *WorktreeUpdateOne
SetBaseCommitSha sets the "base_commit_sha" field.
func (*WorktreeUpdateOne) SetBranchName ¶
func (_u *WorktreeUpdateOne) SetBranchName(v string) *WorktreeUpdateOne
SetBranchName sets the "branch_name" field.
func (*WorktreeUpdateOne) SetNillableBaseCommitSha ¶
func (_u *WorktreeUpdateOne) SetNillableBaseCommitSha(v *string) *WorktreeUpdateOne
SetNillableBaseCommitSha sets the "base_commit_sha" field if the given value is not nil.
func (*WorktreeUpdateOne) SetNillableBranchName ¶
func (_u *WorktreeUpdateOne) SetNillableBranchName(v *string) *WorktreeUpdateOne
SetNillableBranchName sets the "branch_name" field if the given value is not nil.
func (*WorktreeUpdateOne) SetNillableRepoPath ¶
func (_u *WorktreeUpdateOne) SetNillableRepoPath(v *string) *WorktreeUpdateOne
SetNillableRepoPath sets the "repo_path" field if the given value is not nil.
func (*WorktreeUpdateOne) SetNillableSessionName ¶
func (_u *WorktreeUpdateOne) SetNillableSessionName(v *string) *WorktreeUpdateOne
SetNillableSessionName sets the "session_name" field if the given value is not nil.
func (*WorktreeUpdateOne) SetNillableWorktreePath ¶
func (_u *WorktreeUpdateOne) SetNillableWorktreePath(v *string) *WorktreeUpdateOne
SetNillableWorktreePath sets the "worktree_path" field if the given value is not nil.
func (*WorktreeUpdateOne) SetRepoPath ¶
func (_u *WorktreeUpdateOne) SetRepoPath(v string) *WorktreeUpdateOne
SetRepoPath sets the "repo_path" field.
func (*WorktreeUpdateOne) SetSession ¶
func (_u *WorktreeUpdateOne) SetSession(v *Session) *WorktreeUpdateOne
SetSession sets the "session" edge to the Session entity.
func (*WorktreeUpdateOne) SetSessionID ¶
func (_u *WorktreeUpdateOne) SetSessionID(id int) *WorktreeUpdateOne
SetSessionID sets the "session" edge to the Session entity by ID.
func (*WorktreeUpdateOne) SetSessionName ¶
func (_u *WorktreeUpdateOne) SetSessionName(v string) *WorktreeUpdateOne
SetSessionName sets the "session_name" field.
func (*WorktreeUpdateOne) SetWorktreePath ¶
func (_u *WorktreeUpdateOne) SetWorktreePath(v string) *WorktreeUpdateOne
SetWorktreePath sets the "worktree_path" field.
func (*WorktreeUpdateOne) Where ¶
func (_u *WorktreeUpdateOne) Where(ps ...predicate.Worktree) *WorktreeUpdateOne
Where appends a list predicates to the WorktreeUpdate builder.
type WorktreeUpsert ¶ added in v1.12.0
WorktreeUpsert is the "OnConflict" setter.
func (*WorktreeUpsert) SetBaseCommitSha ¶ added in v1.12.0
func (u *WorktreeUpsert) SetBaseCommitSha(v string) *WorktreeUpsert
SetBaseCommitSha sets the "base_commit_sha" field.
func (*WorktreeUpsert) SetBranchName ¶ added in v1.12.0
func (u *WorktreeUpsert) SetBranchName(v string) *WorktreeUpsert
SetBranchName sets the "branch_name" field.
func (*WorktreeUpsert) SetRepoPath ¶ added in v1.12.0
func (u *WorktreeUpsert) SetRepoPath(v string) *WorktreeUpsert
SetRepoPath sets the "repo_path" field.
func (*WorktreeUpsert) SetSessionName ¶ added in v1.12.0
func (u *WorktreeUpsert) SetSessionName(v string) *WorktreeUpsert
SetSessionName sets the "session_name" field.
func (*WorktreeUpsert) SetWorktreePath ¶ added in v1.12.0
func (u *WorktreeUpsert) SetWorktreePath(v string) *WorktreeUpsert
SetWorktreePath sets the "worktree_path" field.
func (*WorktreeUpsert) UpdateBaseCommitSha ¶ added in v1.12.0
func (u *WorktreeUpsert) UpdateBaseCommitSha() *WorktreeUpsert
UpdateBaseCommitSha sets the "base_commit_sha" field to the value that was provided on create.
func (*WorktreeUpsert) UpdateBranchName ¶ added in v1.12.0
func (u *WorktreeUpsert) UpdateBranchName() *WorktreeUpsert
UpdateBranchName sets the "branch_name" field to the value that was provided on create.
func (*WorktreeUpsert) UpdateRepoPath ¶ added in v1.12.0
func (u *WorktreeUpsert) UpdateRepoPath() *WorktreeUpsert
UpdateRepoPath sets the "repo_path" field to the value that was provided on create.
func (*WorktreeUpsert) UpdateSessionName ¶ added in v1.12.0
func (u *WorktreeUpsert) UpdateSessionName() *WorktreeUpsert
UpdateSessionName sets the "session_name" field to the value that was provided on create.
func (*WorktreeUpsert) UpdateWorktreePath ¶ added in v1.12.0
func (u *WorktreeUpsert) UpdateWorktreePath() *WorktreeUpsert
UpdateWorktreePath sets the "worktree_path" field to the value that was provided on create.
type WorktreeUpsertBulk ¶ added in v1.12.0
type WorktreeUpsertBulk struct {
// contains filtered or unexported fields
}
WorktreeUpsertBulk is the builder for "upsert"-ing a bulk of Worktree nodes.
func (*WorktreeUpsertBulk) DoNothing ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) DoNothing() *WorktreeUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*WorktreeUpsertBulk) Exec ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*WorktreeUpsertBulk) ExecX ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorktreeUpsertBulk) Ignore ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) Ignore() *WorktreeUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Worktree.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*WorktreeUpsertBulk) SetBaseCommitSha ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) SetBaseCommitSha(v string) *WorktreeUpsertBulk
SetBaseCommitSha sets the "base_commit_sha" field.
func (*WorktreeUpsertBulk) SetBranchName ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) SetBranchName(v string) *WorktreeUpsertBulk
SetBranchName sets the "branch_name" field.
func (*WorktreeUpsertBulk) SetRepoPath ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) SetRepoPath(v string) *WorktreeUpsertBulk
SetRepoPath sets the "repo_path" field.
func (*WorktreeUpsertBulk) SetSessionName ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) SetSessionName(v string) *WorktreeUpsertBulk
SetSessionName sets the "session_name" field.
func (*WorktreeUpsertBulk) SetWorktreePath ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) SetWorktreePath(v string) *WorktreeUpsertBulk
SetWorktreePath sets the "worktree_path" field.
func (*WorktreeUpsertBulk) Update ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) Update(set func(*WorktreeUpsert)) *WorktreeUpsertBulk
Update allows overriding fields `UPDATE` values. See the WorktreeCreateBulk.OnConflict documentation for more info.
func (*WorktreeUpsertBulk) UpdateBaseCommitSha ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) UpdateBaseCommitSha() *WorktreeUpsertBulk
UpdateBaseCommitSha sets the "base_commit_sha" field to the value that was provided on create.
func (*WorktreeUpsertBulk) UpdateBranchName ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) UpdateBranchName() *WorktreeUpsertBulk
UpdateBranchName sets the "branch_name" field to the value that was provided on create.
func (*WorktreeUpsertBulk) UpdateNewValues ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) UpdateNewValues() *WorktreeUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Worktree.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*WorktreeUpsertBulk) UpdateRepoPath ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) UpdateRepoPath() *WorktreeUpsertBulk
UpdateRepoPath sets the "repo_path" field to the value that was provided on create.
func (*WorktreeUpsertBulk) UpdateSessionName ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) UpdateSessionName() *WorktreeUpsertBulk
UpdateSessionName sets the "session_name" field to the value that was provided on create.
func (*WorktreeUpsertBulk) UpdateWorktreePath ¶ added in v1.12.0
func (u *WorktreeUpsertBulk) UpdateWorktreePath() *WorktreeUpsertBulk
UpdateWorktreePath sets the "worktree_path" field to the value that was provided on create.
type WorktreeUpsertOne ¶ added in v1.12.0
type WorktreeUpsertOne struct {
// contains filtered or unexported fields
}
WorktreeUpsertOne is the builder for "upsert"-ing
one Worktree node.
func (*WorktreeUpsertOne) DoNothing ¶ added in v1.12.0
func (u *WorktreeUpsertOne) DoNothing() *WorktreeUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*WorktreeUpsertOne) Exec ¶ added in v1.12.0
func (u *WorktreeUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*WorktreeUpsertOne) ExecX ¶ added in v1.12.0
func (u *WorktreeUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*WorktreeUpsertOne) ID ¶ added in v1.12.0
func (u *WorktreeUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*WorktreeUpsertOne) IDX ¶ added in v1.12.0
func (u *WorktreeUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*WorktreeUpsertOne) Ignore ¶ added in v1.12.0
func (u *WorktreeUpsertOne) Ignore() *WorktreeUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.Worktree.Create().
OnConflict(sql.ResolveWithIgnore()).
Exec(ctx)
func (*WorktreeUpsertOne) SetBaseCommitSha ¶ added in v1.12.0
func (u *WorktreeUpsertOne) SetBaseCommitSha(v string) *WorktreeUpsertOne
SetBaseCommitSha sets the "base_commit_sha" field.
func (*WorktreeUpsertOne) SetBranchName ¶ added in v1.12.0
func (u *WorktreeUpsertOne) SetBranchName(v string) *WorktreeUpsertOne
SetBranchName sets the "branch_name" field.
func (*WorktreeUpsertOne) SetRepoPath ¶ added in v1.12.0
func (u *WorktreeUpsertOne) SetRepoPath(v string) *WorktreeUpsertOne
SetRepoPath sets the "repo_path" field.
func (*WorktreeUpsertOne) SetSessionName ¶ added in v1.12.0
func (u *WorktreeUpsertOne) SetSessionName(v string) *WorktreeUpsertOne
SetSessionName sets the "session_name" field.
func (*WorktreeUpsertOne) SetWorktreePath ¶ added in v1.12.0
func (u *WorktreeUpsertOne) SetWorktreePath(v string) *WorktreeUpsertOne
SetWorktreePath sets the "worktree_path" field.
func (*WorktreeUpsertOne) Update ¶ added in v1.12.0
func (u *WorktreeUpsertOne) Update(set func(*WorktreeUpsert)) *WorktreeUpsertOne
Update allows overriding fields `UPDATE` values. See the WorktreeCreate.OnConflict documentation for more info.
func (*WorktreeUpsertOne) UpdateBaseCommitSha ¶ added in v1.12.0
func (u *WorktreeUpsertOne) UpdateBaseCommitSha() *WorktreeUpsertOne
UpdateBaseCommitSha sets the "base_commit_sha" field to the value that was provided on create.
func (*WorktreeUpsertOne) UpdateBranchName ¶ added in v1.12.0
func (u *WorktreeUpsertOne) UpdateBranchName() *WorktreeUpsertOne
UpdateBranchName sets the "branch_name" field to the value that was provided on create.
func (*WorktreeUpsertOne) UpdateNewValues ¶ added in v1.12.0
func (u *WorktreeUpsertOne) UpdateNewValues() *WorktreeUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.Worktree.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*WorktreeUpsertOne) UpdateRepoPath ¶ added in v1.12.0
func (u *WorktreeUpsertOne) UpdateRepoPath() *WorktreeUpsertOne
UpdateRepoPath sets the "repo_path" field to the value that was provided on create.
func (*WorktreeUpsertOne) UpdateSessionName ¶ added in v1.12.0
func (u *WorktreeUpsertOne) UpdateSessionName() *WorktreeUpsertOne
UpdateSessionName sets the "session_name" field to the value that was provided on create.
func (*WorktreeUpsertOne) UpdateWorktreePath ¶ added in v1.12.0
func (u *WorktreeUpsertOne) UpdateWorktreePath() *WorktreeUpsertOne
UpdateWorktreePath sets the "worktree_path" field to the value that was provided on create.
Source Files
¶
- approvalrule.go
- approvalrule_create.go
- approvalrule_delete.go
- approvalrule_query.go
- approvalrule_update.go
- classificationanalytics.go
- classificationanalytics_create.go
- classificationanalytics_delete.go
- classificationanalytics_query.go
- classificationanalytics_update.go
- claudemetadata.go
- claudemetadata_create.go
- claudemetadata_delete.go
- claudemetadata_query.go
- claudemetadata_update.go
- claudesession.go
- claudesession_create.go
- claudesession_delete.go
- claudesession_query.go
- claudesession_update.go
- client.go
- diffstats.go
- diffstats_create.go
- diffstats_delete.go
- diffstats_query.go
- diffstats_update.go
- ent.go
- generate.go
- mutation.go
- project.go
- project_create.go
- project_delete.go
- project_query.go
- project_update.go
- runtime.go
- session.go
- session_create.go
- session_delete.go
- session_query.go
- session_update.go
- tag.go
- tag_create.go
- tag_delete.go
- tag_query.go
- tag_update.go
- tx.go
- worktree.go
- worktree_create.go
- worktree_delete.go
- worktree_query.go
- worktree_update.go