Documentation
¶
Index ¶
- Constants
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) 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 Commits
- type CommitsClient
- func (c *CommitsClient) Create() *CommitsCreate
- func (c *CommitsClient) CreateBulk(builders ...*CommitsCreate) *CommitsCreateBulk
- func (c *CommitsClient) Delete() *CommitsDelete
- func (c *CommitsClient) DeleteOne(co *Commits) *CommitsDeleteOne
- func (c *CommitsClient) DeleteOneID(id uuid.UUID) *CommitsDeleteOne
- func (c *CommitsClient) Get(ctx context.Context, id uuid.UUID) (*Commits, error)
- func (c *CommitsClient) GetX(ctx context.Context, id uuid.UUID) *Commits
- func (c *CommitsClient) Hooks() []Hook
- func (c *CommitsClient) Intercept(interceptors ...Interceptor)
- func (c *CommitsClient) Interceptors() []Interceptor
- func (c *CommitsClient) Query() *CommitsQuery
- func (c *CommitsClient) QueryPullRequest(co *Commits) *PullRequestQuery
- func (c *CommitsClient) Update() *CommitsUpdate
- func (c *CommitsClient) UpdateOne(co *Commits) *CommitsUpdateOne
- func (c *CommitsClient) UpdateOneID(id uuid.UUID) *CommitsUpdateOne
- func (c *CommitsClient) Use(hooks ...Hook)
- type CommitsCreate
- func (cc *CommitsCreate) Exec(ctx context.Context) error
- func (cc *CommitsCreate) ExecX(ctx context.Context)
- func (cc *CommitsCreate) Mutation() *CommitsMutation
- func (cc *CommitsCreate) Save(ctx context.Context) (*Commits, error)
- func (cc *CommitsCreate) SaveX(ctx context.Context) *Commits
- func (cc *CommitsCreate) SetAdditions(i int64) *CommitsCreate
- func (cc *CommitsCreate) SetChangeFiles(i int64) *CommitsCreate
- func (cc *CommitsCreate) SetCommittedAt(t time.Time) *CommitsCreate
- func (cc *CommitsCreate) SetDeletions(i int64) *CommitsCreate
- func (cc *CommitsCreate) SetGithubID(s string) *CommitsCreate
- func (cc *CommitsCreate) SetID(u uuid.UUID) *CommitsCreate
- func (cc *CommitsCreate) SetMessage(s string) *CommitsCreate
- func (cc *CommitsCreate) SetNillableCommittedAt(t *time.Time) *CommitsCreate
- func (cc *CommitsCreate) SetNillableID(u *uuid.UUID) *CommitsCreate
- func (cc *CommitsCreate) SetNillablePullRequestID(id *uuid.UUID) *CommitsCreate
- func (cc *CommitsCreate) SetNillablePushedAt(t *time.Time) *CommitsCreate
- func (cc *CommitsCreate) SetPullRequest(p *PullRequest) *CommitsCreate
- func (cc *CommitsCreate) SetPullRequestID(id uuid.UUID) *CommitsCreate
- func (cc *CommitsCreate) SetPushedAt(t time.Time) *CommitsCreate
- type CommitsCreateBulk
- type CommitsDelete
- type CommitsDeleteOne
- type CommitsEdges
- type CommitsGroupBy
- func (cgb *CommitsGroupBy) Aggregate(fns ...AggregateFunc) *CommitsGroupBy
- func (s *CommitsGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *CommitsGroupBy) BoolX(ctx context.Context) bool
- func (s *CommitsGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *CommitsGroupBy) BoolsX(ctx context.Context) []bool
- func (s *CommitsGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *CommitsGroupBy) Float64X(ctx context.Context) float64
- func (s *CommitsGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *CommitsGroupBy) Float64sX(ctx context.Context) []float64
- func (s *CommitsGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *CommitsGroupBy) IntX(ctx context.Context) int
- func (s *CommitsGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *CommitsGroupBy) IntsX(ctx context.Context) []int
- func (cgb *CommitsGroupBy) Scan(ctx context.Context, v any) error
- func (s *CommitsGroupBy) ScanX(ctx context.Context, v any)
- func (s *CommitsGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *CommitsGroupBy) StringX(ctx context.Context) string
- func (s *CommitsGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *CommitsGroupBy) StringsX(ctx context.Context) []string
- type CommitsMutation
- func (m *CommitsMutation) AddAdditions(i int64)
- func (m *CommitsMutation) AddChangeFiles(i int64)
- func (m *CommitsMutation) AddDeletions(i int64)
- func (m *CommitsMutation) AddField(name string, value ent.Value) error
- func (m *CommitsMutation) AddedAdditions() (r int64, exists bool)
- func (m *CommitsMutation) AddedChangeFiles() (r int64, exists bool)
- func (m *CommitsMutation) AddedDeletions() (r int64, exists bool)
- func (m *CommitsMutation) AddedEdges() []string
- func (m *CommitsMutation) AddedField(name string) (ent.Value, bool)
- func (m *CommitsMutation) AddedFields() []string
- func (m *CommitsMutation) AddedIDs(name string) []ent.Value
- func (m *CommitsMutation) Additions() (r int64, exists bool)
- func (m *CommitsMutation) ChangeFiles() (r int64, exists bool)
- func (m *CommitsMutation) ClearEdge(name string) error
- func (m *CommitsMutation) ClearField(name string) error
- func (m *CommitsMutation) ClearPullRequest()
- func (m *CommitsMutation) ClearPushedAt()
- func (m *CommitsMutation) ClearedEdges() []string
- func (m *CommitsMutation) ClearedFields() []string
- func (m CommitsMutation) Client() *Client
- func (m *CommitsMutation) CommittedAt() (r time.Time, exists bool)
- func (m *CommitsMutation) Deletions() (r int64, exists bool)
- func (m *CommitsMutation) EdgeCleared(name string) bool
- func (m *CommitsMutation) Field(name string) (ent.Value, bool)
- func (m *CommitsMutation) FieldCleared(name string) bool
- func (m *CommitsMutation) Fields() []string
- func (m *CommitsMutation) GithubID() (r string, exists bool)
- func (m *CommitsMutation) ID() (id uuid.UUID, exists bool)
- func (m *CommitsMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *CommitsMutation) Message() (r string, exists bool)
- func (m *CommitsMutation) OldAdditions(ctx context.Context) (v int64, err error)
- func (m *CommitsMutation) OldChangeFiles(ctx context.Context) (v int64, err error)
- func (m *CommitsMutation) OldCommittedAt(ctx context.Context) (v time.Time, err error)
- func (m *CommitsMutation) OldDeletions(ctx context.Context) (v int64, err error)
- func (m *CommitsMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *CommitsMutation) OldGithubID(ctx context.Context) (v string, err error)
- func (m *CommitsMutation) OldMessage(ctx context.Context) (v string, err error)
- func (m *CommitsMutation) OldPushedAt(ctx context.Context) (v time.Time, err error)
- func (m *CommitsMutation) Op() Op
- func (m *CommitsMutation) PullRequestCleared() bool
- func (m *CommitsMutation) PullRequestID() (id uuid.UUID, exists bool)
- func (m *CommitsMutation) PullRequestIDs() (ids []uuid.UUID)
- func (m *CommitsMutation) PushedAt() (r time.Time, exists bool)
- func (m *CommitsMutation) PushedAtCleared() bool
- func (m *CommitsMutation) RemovedEdges() []string
- func (m *CommitsMutation) RemovedIDs(name string) []ent.Value
- func (m *CommitsMutation) ResetAdditions()
- func (m *CommitsMutation) ResetChangeFiles()
- func (m *CommitsMutation) ResetCommittedAt()
- func (m *CommitsMutation) ResetDeletions()
- func (m *CommitsMutation) ResetEdge(name string) error
- func (m *CommitsMutation) ResetField(name string) error
- func (m *CommitsMutation) ResetGithubID()
- func (m *CommitsMutation) ResetMessage()
- func (m *CommitsMutation) ResetPullRequest()
- func (m *CommitsMutation) ResetPushedAt()
- func (m *CommitsMutation) SetAdditions(i int64)
- func (m *CommitsMutation) SetChangeFiles(i int64)
- func (m *CommitsMutation) SetCommittedAt(t time.Time)
- func (m *CommitsMutation) SetDeletions(i int64)
- func (m *CommitsMutation) SetField(name string, value ent.Value) error
- func (m *CommitsMutation) SetGithubID(s string)
- func (m *CommitsMutation) SetID(id uuid.UUID)
- func (m *CommitsMutation) SetMessage(s string)
- func (m *CommitsMutation) SetOp(op Op)
- func (m *CommitsMutation) SetPullRequestID(id uuid.UUID)
- func (m *CommitsMutation) SetPushedAt(t time.Time)
- func (m CommitsMutation) Tx() (*Tx, error)
- func (m *CommitsMutation) Type() string
- func (m *CommitsMutation) Where(ps ...predicate.Commits)
- func (m *CommitsMutation) WhereP(ps ...func(*sql.Selector))
- type CommitsQuery
- func (cq *CommitsQuery) Aggregate(fns ...AggregateFunc) *CommitsSelect
- func (cq *CommitsQuery) All(ctx context.Context) ([]*Commits, error)
- func (cq *CommitsQuery) AllX(ctx context.Context) []*Commits
- func (cq *CommitsQuery) Clone() *CommitsQuery
- func (cq *CommitsQuery) Count(ctx context.Context) (int, error)
- func (cq *CommitsQuery) CountX(ctx context.Context) int
- func (cq *CommitsQuery) Exist(ctx context.Context) (bool, error)
- func (cq *CommitsQuery) ExistX(ctx context.Context) bool
- func (cq *CommitsQuery) First(ctx context.Context) (*Commits, error)
- func (cq *CommitsQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (cq *CommitsQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (cq *CommitsQuery) FirstX(ctx context.Context) *Commits
- func (cq *CommitsQuery) GroupBy(field string, fields ...string) *CommitsGroupBy
- func (cq *CommitsQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (cq *CommitsQuery) IDsX(ctx context.Context) []uuid.UUID
- func (cq *CommitsQuery) Limit(limit int) *CommitsQuery
- func (cq *CommitsQuery) Offset(offset int) *CommitsQuery
- func (cq *CommitsQuery) Only(ctx context.Context) (*Commits, error)
- func (cq *CommitsQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (cq *CommitsQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (cq *CommitsQuery) OnlyX(ctx context.Context) *Commits
- func (cq *CommitsQuery) Order(o ...OrderFunc) *CommitsQuery
- func (cq *CommitsQuery) QueryPullRequest() *PullRequestQuery
- func (cq *CommitsQuery) Select(fields ...string) *CommitsSelect
- func (cq *CommitsQuery) Unique(unique bool) *CommitsQuery
- func (cq *CommitsQuery) Where(ps ...predicate.Commits) *CommitsQuery
- func (cq *CommitsQuery) WithPullRequest(opts ...func(*PullRequestQuery)) *CommitsQuery
- type CommitsSelect
- func (cs *CommitsSelect) Aggregate(fns ...AggregateFunc) *CommitsSelect
- func (s *CommitsSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *CommitsSelect) BoolX(ctx context.Context) bool
- func (s *CommitsSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *CommitsSelect) BoolsX(ctx context.Context) []bool
- func (s *CommitsSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *CommitsSelect) Float64X(ctx context.Context) float64
- func (s *CommitsSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *CommitsSelect) Float64sX(ctx context.Context) []float64
- func (s *CommitsSelect) Int(ctx context.Context) (_ int, err error)
- func (s *CommitsSelect) IntX(ctx context.Context) int
- func (s *CommitsSelect) Ints(ctx context.Context) ([]int, error)
- func (s *CommitsSelect) IntsX(ctx context.Context) []int
- func (cs *CommitsSelect) Scan(ctx context.Context, v any) error
- func (s *CommitsSelect) ScanX(ctx context.Context, v any)
- func (s *CommitsSelect) String(ctx context.Context) (_ string, err error)
- func (s *CommitsSelect) StringX(ctx context.Context) string
- func (s *CommitsSelect) Strings(ctx context.Context) ([]string, error)
- func (s *CommitsSelect) StringsX(ctx context.Context) []string
- type CommitsSlice
- type CommitsUpdate
- func (cu *CommitsUpdate) AddAdditions(i int64) *CommitsUpdate
- func (cu *CommitsUpdate) AddChangeFiles(i int64) *CommitsUpdate
- func (cu *CommitsUpdate) AddDeletions(i int64) *CommitsUpdate
- func (cu *CommitsUpdate) ClearPullRequest() *CommitsUpdate
- func (cu *CommitsUpdate) ClearPushedAt() *CommitsUpdate
- func (cu *CommitsUpdate) Exec(ctx context.Context) error
- func (cu *CommitsUpdate) ExecX(ctx context.Context)
- func (cu *CommitsUpdate) Mutation() *CommitsMutation
- func (cu *CommitsUpdate) Save(ctx context.Context) (int, error)
- func (cu *CommitsUpdate) SaveX(ctx context.Context) int
- func (cu *CommitsUpdate) SetAdditions(i int64) *CommitsUpdate
- func (cu *CommitsUpdate) SetChangeFiles(i int64) *CommitsUpdate
- func (cu *CommitsUpdate) SetCommittedAt(t time.Time) *CommitsUpdate
- func (cu *CommitsUpdate) SetDeletions(i int64) *CommitsUpdate
- func (cu *CommitsUpdate) SetGithubID(s string) *CommitsUpdate
- func (cu *CommitsUpdate) SetMessage(s string) *CommitsUpdate
- func (cu *CommitsUpdate) SetNillableCommittedAt(t *time.Time) *CommitsUpdate
- func (cu *CommitsUpdate) SetNillablePullRequestID(id *uuid.UUID) *CommitsUpdate
- func (cu *CommitsUpdate) SetNillablePushedAt(t *time.Time) *CommitsUpdate
- func (cu *CommitsUpdate) SetPullRequest(p *PullRequest) *CommitsUpdate
- func (cu *CommitsUpdate) SetPullRequestID(id uuid.UUID) *CommitsUpdate
- func (cu *CommitsUpdate) SetPushedAt(t time.Time) *CommitsUpdate
- func (cu *CommitsUpdate) Where(ps ...predicate.Commits) *CommitsUpdate
- type CommitsUpdateOne
- func (cuo *CommitsUpdateOne) AddAdditions(i int64) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) AddChangeFiles(i int64) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) AddDeletions(i int64) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) ClearPullRequest() *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) ClearPushedAt() *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) Exec(ctx context.Context) error
- func (cuo *CommitsUpdateOne) ExecX(ctx context.Context)
- func (cuo *CommitsUpdateOne) Mutation() *CommitsMutation
- func (cuo *CommitsUpdateOne) Save(ctx context.Context) (*Commits, error)
- func (cuo *CommitsUpdateOne) SaveX(ctx context.Context) *Commits
- func (cuo *CommitsUpdateOne) Select(field string, fields ...string) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetAdditions(i int64) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetChangeFiles(i int64) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetCommittedAt(t time.Time) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetDeletions(i int64) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetGithubID(s string) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetMessage(s string) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetNillableCommittedAt(t *time.Time) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetNillablePullRequestID(id *uuid.UUID) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetNillablePushedAt(t *time.Time) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetPullRequest(p *PullRequest) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetPullRequestID(id uuid.UUID) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) SetPushedAt(t time.Time) *CommitsUpdateOne
- func (cuo *CommitsUpdateOne) Where(ps ...predicate.Commits) *CommitsUpdateOne
- type Committer
- type ConstraintError
- type Hook
- type InterceptFunc
- type Interceptor
- type Issue
- type IssueClient
- func (c *IssueClient) Create() *IssueCreate
- func (c *IssueClient) CreateBulk(builders ...*IssueCreate) *IssueCreateBulk
- func (c *IssueClient) Delete() *IssueDelete
- func (c *IssueClient) DeleteOne(i *Issue) *IssueDeleteOne
- func (c *IssueClient) DeleteOneID(id uuid.UUID) *IssueDeleteOne
- func (c *IssueClient) Get(ctx context.Context, id uuid.UUID) (*Issue, error)
- func (c *IssueClient) GetX(ctx context.Context, id uuid.UUID) *Issue
- func (c *IssueClient) Hooks() []Hook
- func (c *IssueClient) Intercept(interceptors ...Interceptor)
- func (c *IssueClient) Interceptors() []Interceptor
- func (c *IssueClient) Query() *IssueQuery
- func (c *IssueClient) QueryRepository(i *Issue) *RepositoryQuery
- func (c *IssueClient) Update() *IssueUpdate
- func (c *IssueClient) UpdateOne(i *Issue) *IssueUpdateOne
- func (c *IssueClient) UpdateOneID(id uuid.UUID) *IssueUpdateOne
- func (c *IssueClient) Use(hooks ...Hook)
- type IssueCreate
- func (ic *IssueCreate) Exec(ctx context.Context) error
- func (ic *IssueCreate) ExecX(ctx context.Context)
- func (ic *IssueCreate) Mutation() *IssueMutation
- func (ic *IssueCreate) Save(ctx context.Context) (*Issue, error)
- func (ic *IssueCreate) SaveX(ctx context.Context) *Issue
- func (ic *IssueCreate) SetClosedAt(t time.Time) *IssueCreate
- func (ic *IssueCreate) SetCreatedAt(t time.Time) *IssueCreate
- func (ic *IssueCreate) SetGithubID(s string) *IssueCreate
- func (ic *IssueCreate) SetID(u uuid.UUID) *IssueCreate
- func (ic *IssueCreate) SetLastEditedAt(t time.Time) *IssueCreate
- func (ic *IssueCreate) SetNillableClosedAt(t *time.Time) *IssueCreate
- func (ic *IssueCreate) SetNillableCreatedAt(t *time.Time) *IssueCreate
- func (ic *IssueCreate) SetNillableID(u *uuid.UUID) *IssueCreate
- func (ic *IssueCreate) SetNillableLastEditedAt(t *time.Time) *IssueCreate
- func (ic *IssueCreate) SetNillableRepositoryID(id *uuid.UUID) *IssueCreate
- func (ic *IssueCreate) SetNillableUpdatedAt(t *time.Time) *IssueCreate
- func (ic *IssueCreate) SetRepository(r *Repository) *IssueCreate
- func (ic *IssueCreate) SetRepositoryID(id uuid.UUID) *IssueCreate
- func (ic *IssueCreate) SetTitle(s string) *IssueCreate
- func (ic *IssueCreate) SetUpdatedAt(t time.Time) *IssueCreate
- type IssueCreateBulk
- type IssueDelete
- type IssueDeleteOne
- type IssueEdges
- type IssueGroupBy
- func (igb *IssueGroupBy) Aggregate(fns ...AggregateFunc) *IssueGroupBy
- func (s *IssueGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *IssueGroupBy) BoolX(ctx context.Context) bool
- func (s *IssueGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *IssueGroupBy) BoolsX(ctx context.Context) []bool
- func (s *IssueGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *IssueGroupBy) Float64X(ctx context.Context) float64
- func (s *IssueGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *IssueGroupBy) Float64sX(ctx context.Context) []float64
- func (s *IssueGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *IssueGroupBy) IntX(ctx context.Context) int
- func (s *IssueGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *IssueGroupBy) IntsX(ctx context.Context) []int
- func (igb *IssueGroupBy) Scan(ctx context.Context, v any) error
- func (s *IssueGroupBy) ScanX(ctx context.Context, v any)
- func (s *IssueGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *IssueGroupBy) StringX(ctx context.Context) string
- func (s *IssueGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *IssueGroupBy) StringsX(ctx context.Context) []string
- type IssueMutation
- func (m *IssueMutation) AddField(name string, value ent.Value) error
- func (m *IssueMutation) AddedEdges() []string
- func (m *IssueMutation) AddedField(name string) (ent.Value, bool)
- func (m *IssueMutation) AddedFields() []string
- func (m *IssueMutation) AddedIDs(name string) []ent.Value
- func (m *IssueMutation) ClearClosedAt()
- func (m *IssueMutation) ClearEdge(name string) error
- func (m *IssueMutation) ClearField(name string) error
- func (m *IssueMutation) ClearLastEditedAt()
- func (m *IssueMutation) ClearRepository()
- func (m *IssueMutation) ClearedEdges() []string
- func (m *IssueMutation) ClearedFields() []string
- func (m IssueMutation) Client() *Client
- func (m *IssueMutation) ClosedAt() (r time.Time, exists bool)
- func (m *IssueMutation) ClosedAtCleared() bool
- func (m *IssueMutation) CreatedAt() (r time.Time, exists bool)
- func (m *IssueMutation) EdgeCleared(name string) bool
- func (m *IssueMutation) Field(name string) (ent.Value, bool)
- func (m *IssueMutation) FieldCleared(name string) bool
- func (m *IssueMutation) Fields() []string
- func (m *IssueMutation) GithubID() (r string, exists bool)
- func (m *IssueMutation) ID() (id uuid.UUID, exists bool)
- func (m *IssueMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *IssueMutation) LastEditedAt() (r time.Time, exists bool)
- func (m *IssueMutation) LastEditedAtCleared() bool
- func (m *IssueMutation) OldClosedAt(ctx context.Context) (v time.Time, err error)
- func (m *IssueMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *IssueMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *IssueMutation) OldGithubID(ctx context.Context) (v string, err error)
- func (m *IssueMutation) OldLastEditedAt(ctx context.Context) (v time.Time, err error)
- func (m *IssueMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *IssueMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *IssueMutation) Op() Op
- func (m *IssueMutation) RemovedEdges() []string
- func (m *IssueMutation) RemovedIDs(name string) []ent.Value
- func (m *IssueMutation) RepositoryCleared() bool
- func (m *IssueMutation) RepositoryID() (id uuid.UUID, exists bool)
- func (m *IssueMutation) RepositoryIDs() (ids []uuid.UUID)
- func (m *IssueMutation) ResetClosedAt()
- func (m *IssueMutation) ResetCreatedAt()
- func (m *IssueMutation) ResetEdge(name string) error
- func (m *IssueMutation) ResetField(name string) error
- func (m *IssueMutation) ResetGithubID()
- func (m *IssueMutation) ResetLastEditedAt()
- func (m *IssueMutation) ResetRepository()
- func (m *IssueMutation) ResetTitle()
- func (m *IssueMutation) ResetUpdatedAt()
- func (m *IssueMutation) SetClosedAt(t time.Time)
- func (m *IssueMutation) SetCreatedAt(t time.Time)
- func (m *IssueMutation) SetField(name string, value ent.Value) error
- func (m *IssueMutation) SetGithubID(s string)
- func (m *IssueMutation) SetID(id uuid.UUID)
- func (m *IssueMutation) SetLastEditedAt(t time.Time)
- func (m *IssueMutation) SetOp(op Op)
- func (m *IssueMutation) SetRepositoryID(id uuid.UUID)
- func (m *IssueMutation) SetTitle(s string)
- func (m *IssueMutation) SetUpdatedAt(t time.Time)
- func (m *IssueMutation) Title() (r string, exists bool)
- func (m IssueMutation) Tx() (*Tx, error)
- func (m *IssueMutation) Type() string
- func (m *IssueMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *IssueMutation) Where(ps ...predicate.Issue)
- func (m *IssueMutation) WhereP(ps ...func(*sql.Selector))
- type IssueQuery
- func (iq *IssueQuery) Aggregate(fns ...AggregateFunc) *IssueSelect
- func (iq *IssueQuery) All(ctx context.Context) ([]*Issue, error)
- func (iq *IssueQuery) AllX(ctx context.Context) []*Issue
- func (iq *IssueQuery) Clone() *IssueQuery
- func (iq *IssueQuery) Count(ctx context.Context) (int, error)
- func (iq *IssueQuery) CountX(ctx context.Context) int
- func (iq *IssueQuery) Exist(ctx context.Context) (bool, error)
- func (iq *IssueQuery) ExistX(ctx context.Context) bool
- func (iq *IssueQuery) First(ctx context.Context) (*Issue, error)
- func (iq *IssueQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (iq *IssueQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (iq *IssueQuery) FirstX(ctx context.Context) *Issue
- func (iq *IssueQuery) GroupBy(field string, fields ...string) *IssueGroupBy
- func (iq *IssueQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (iq *IssueQuery) IDsX(ctx context.Context) []uuid.UUID
- func (iq *IssueQuery) Limit(limit int) *IssueQuery
- func (iq *IssueQuery) Offset(offset int) *IssueQuery
- func (iq *IssueQuery) Only(ctx context.Context) (*Issue, error)
- func (iq *IssueQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (iq *IssueQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (iq *IssueQuery) OnlyX(ctx context.Context) *Issue
- func (iq *IssueQuery) Order(o ...OrderFunc) *IssueQuery
- func (iq *IssueQuery) QueryRepository() *RepositoryQuery
- func (iq *IssueQuery) Select(fields ...string) *IssueSelect
- func (iq *IssueQuery) Unique(unique bool) *IssueQuery
- func (iq *IssueQuery) Where(ps ...predicate.Issue) *IssueQuery
- func (iq *IssueQuery) WithRepository(opts ...func(*RepositoryQuery)) *IssueQuery
- type IssueSelect
- func (is *IssueSelect) Aggregate(fns ...AggregateFunc) *IssueSelect
- func (s *IssueSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *IssueSelect) BoolX(ctx context.Context) bool
- func (s *IssueSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *IssueSelect) BoolsX(ctx context.Context) []bool
- func (s *IssueSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *IssueSelect) Float64X(ctx context.Context) float64
- func (s *IssueSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *IssueSelect) Float64sX(ctx context.Context) []float64
- func (s *IssueSelect) Int(ctx context.Context) (_ int, err error)
- func (s *IssueSelect) IntX(ctx context.Context) int
- func (s *IssueSelect) Ints(ctx context.Context) ([]int, error)
- func (s *IssueSelect) IntsX(ctx context.Context) []int
- func (is *IssueSelect) Scan(ctx context.Context, v any) error
- func (s *IssueSelect) ScanX(ctx context.Context, v any)
- func (s *IssueSelect) String(ctx context.Context) (_ string, err error)
- func (s *IssueSelect) StringX(ctx context.Context) string
- func (s *IssueSelect) Strings(ctx context.Context) ([]string, error)
- func (s *IssueSelect) StringsX(ctx context.Context) []string
- type IssueUpdate
- func (iu *IssueUpdate) ClearClosedAt() *IssueUpdate
- func (iu *IssueUpdate) ClearLastEditedAt() *IssueUpdate
- func (iu *IssueUpdate) ClearRepository() *IssueUpdate
- func (iu *IssueUpdate) Exec(ctx context.Context) error
- func (iu *IssueUpdate) ExecX(ctx context.Context)
- func (iu *IssueUpdate) Mutation() *IssueMutation
- func (iu *IssueUpdate) Save(ctx context.Context) (int, error)
- func (iu *IssueUpdate) SaveX(ctx context.Context) int
- func (iu *IssueUpdate) SetClosedAt(t time.Time) *IssueUpdate
- func (iu *IssueUpdate) SetCreatedAt(t time.Time) *IssueUpdate
- func (iu *IssueUpdate) SetGithubID(s string) *IssueUpdate
- func (iu *IssueUpdate) SetLastEditedAt(t time.Time) *IssueUpdate
- func (iu *IssueUpdate) SetNillableClosedAt(t *time.Time) *IssueUpdate
- func (iu *IssueUpdate) SetNillableCreatedAt(t *time.Time) *IssueUpdate
- func (iu *IssueUpdate) SetNillableLastEditedAt(t *time.Time) *IssueUpdate
- func (iu *IssueUpdate) SetNillableRepositoryID(id *uuid.UUID) *IssueUpdate
- func (iu *IssueUpdate) SetNillableUpdatedAt(t *time.Time) *IssueUpdate
- func (iu *IssueUpdate) SetRepository(r *Repository) *IssueUpdate
- func (iu *IssueUpdate) SetRepositoryID(id uuid.UUID) *IssueUpdate
- func (iu *IssueUpdate) SetTitle(s string) *IssueUpdate
- func (iu *IssueUpdate) SetUpdatedAt(t time.Time) *IssueUpdate
- func (iu *IssueUpdate) Where(ps ...predicate.Issue) *IssueUpdate
- type IssueUpdateOne
- func (iuo *IssueUpdateOne) ClearClosedAt() *IssueUpdateOne
- func (iuo *IssueUpdateOne) ClearLastEditedAt() *IssueUpdateOne
- func (iuo *IssueUpdateOne) ClearRepository() *IssueUpdateOne
- func (iuo *IssueUpdateOne) Exec(ctx context.Context) error
- func (iuo *IssueUpdateOne) ExecX(ctx context.Context)
- func (iuo *IssueUpdateOne) Mutation() *IssueMutation
- func (iuo *IssueUpdateOne) Save(ctx context.Context) (*Issue, error)
- func (iuo *IssueUpdateOne) SaveX(ctx context.Context) *Issue
- func (iuo *IssueUpdateOne) Select(field string, fields ...string) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetClosedAt(t time.Time) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetCreatedAt(t time.Time) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetGithubID(s string) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetLastEditedAt(t time.Time) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetNillableClosedAt(t *time.Time) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetNillableCreatedAt(t *time.Time) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetNillableLastEditedAt(t *time.Time) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetNillableRepositoryID(id *uuid.UUID) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetNillableUpdatedAt(t *time.Time) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetRepository(r *Repository) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetRepositoryID(id uuid.UUID) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetTitle(s string) *IssueUpdateOne
- func (iuo *IssueUpdateOne) SetUpdatedAt(t time.Time) *IssueUpdateOne
- func (iuo *IssueUpdateOne) Where(ps ...predicate.Issue) *IssueUpdateOne
- type Issues
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type PullRequest
- type PullRequestClient
- func (c *PullRequestClient) Create() *PullRequestCreate
- func (c *PullRequestClient) CreateBulk(builders ...*PullRequestCreate) *PullRequestCreateBulk
- func (c *PullRequestClient) Delete() *PullRequestDelete
- func (c *PullRequestClient) DeleteOne(pr *PullRequest) *PullRequestDeleteOne
- func (c *PullRequestClient) DeleteOneID(id uuid.UUID) *PullRequestDeleteOne
- func (c *PullRequestClient) Get(ctx context.Context, id uuid.UUID) (*PullRequest, error)
- func (c *PullRequestClient) GetX(ctx context.Context, id uuid.UUID) *PullRequest
- func (c *PullRequestClient) Hooks() []Hook
- func (c *PullRequestClient) Intercept(interceptors ...Interceptor)
- func (c *PullRequestClient) Interceptors() []Interceptor
- func (c *PullRequestClient) Query() *PullRequestQuery
- func (c *PullRequestClient) QueryCommits(pr *PullRequest) *CommitsQuery
- func (c *PullRequestClient) QueryRepository(pr *PullRequest) *RepositoryQuery
- func (c *PullRequestClient) Update() *PullRequestUpdate
- func (c *PullRequestClient) UpdateOne(pr *PullRequest) *PullRequestUpdateOne
- func (c *PullRequestClient) UpdateOneID(id uuid.UUID) *PullRequestUpdateOne
- func (c *PullRequestClient) Use(hooks ...Hook)
- type PullRequestCreate
- func (prc *PullRequestCreate) AddCommitIDs(ids ...uuid.UUID) *PullRequestCreate
- func (prc *PullRequestCreate) AddCommits(c ...*Commits) *PullRequestCreate
- func (prc *PullRequestCreate) Exec(ctx context.Context) error
- func (prc *PullRequestCreate) ExecX(ctx context.Context)
- func (prc *PullRequestCreate) Mutation() *PullRequestMutation
- func (prc *PullRequestCreate) Save(ctx context.Context) (*PullRequest, error)
- func (prc *PullRequestCreate) SaveX(ctx context.Context) *PullRequest
- func (prc *PullRequestCreate) SetClosedAt(t time.Time) *PullRequestCreate
- func (prc *PullRequestCreate) SetCreatedAt(t time.Time) *PullRequestCreate
- func (prc *PullRequestCreate) SetGetCommit(b bool) *PullRequestCreate
- func (prc *PullRequestCreate) SetGithubID(s string) *PullRequestCreate
- func (prc *PullRequestCreate) SetID(u uuid.UUID) *PullRequestCreate
- func (prc *PullRequestCreate) SetMergedAt(t time.Time) *PullRequestCreate
- func (prc *PullRequestCreate) SetNillableClosedAt(t *time.Time) *PullRequestCreate
- func (prc *PullRequestCreate) SetNillableCreatedAt(t *time.Time) *PullRequestCreate
- func (prc *PullRequestCreate) SetNillableGetCommit(b *bool) *PullRequestCreate
- func (prc *PullRequestCreate) SetNillableID(u *uuid.UUID) *PullRequestCreate
- func (prc *PullRequestCreate) SetNillableMergedAt(t *time.Time) *PullRequestCreate
- func (prc *PullRequestCreate) SetNillableRepositoryID(id *uuid.UUID) *PullRequestCreate
- func (prc *PullRequestCreate) SetNillableTotalCommits(i *int64) *PullRequestCreate
- func (prc *PullRequestCreate) SetNillableUpdatedAt(t *time.Time) *PullRequestCreate
- func (prc *PullRequestCreate) SetRepository(r *Repository) *PullRequestCreate
- func (prc *PullRequestCreate) SetRepositoryID(id uuid.UUID) *PullRequestCreate
- func (prc *PullRequestCreate) SetTitle(s string) *PullRequestCreate
- func (prc *PullRequestCreate) SetTotalCommits(i int64) *PullRequestCreate
- func (prc *PullRequestCreate) SetUpdatedAt(t time.Time) *PullRequestCreate
- type PullRequestCreateBulk
- type PullRequestDelete
- type PullRequestDeleteOne
- type PullRequestEdges
- type PullRequestGroupBy
- func (prgb *PullRequestGroupBy) Aggregate(fns ...AggregateFunc) *PullRequestGroupBy
- func (s *PullRequestGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *PullRequestGroupBy) BoolX(ctx context.Context) bool
- func (s *PullRequestGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *PullRequestGroupBy) BoolsX(ctx context.Context) []bool
- func (s *PullRequestGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *PullRequestGroupBy) Float64X(ctx context.Context) float64
- func (s *PullRequestGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *PullRequestGroupBy) Float64sX(ctx context.Context) []float64
- func (s *PullRequestGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *PullRequestGroupBy) IntX(ctx context.Context) int
- func (s *PullRequestGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *PullRequestGroupBy) IntsX(ctx context.Context) []int
- func (prgb *PullRequestGroupBy) Scan(ctx context.Context, v any) error
- func (s *PullRequestGroupBy) ScanX(ctx context.Context, v any)
- func (s *PullRequestGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *PullRequestGroupBy) StringX(ctx context.Context) string
- func (s *PullRequestGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *PullRequestGroupBy) StringsX(ctx context.Context) []string
- type PullRequestMutation
- func (m *PullRequestMutation) AddCommitIDs(ids ...uuid.UUID)
- func (m *PullRequestMutation) AddField(name string, value ent.Value) error
- func (m *PullRequestMutation) AddTotalCommits(i int64)
- func (m *PullRequestMutation) AddedEdges() []string
- func (m *PullRequestMutation) AddedField(name string) (ent.Value, bool)
- func (m *PullRequestMutation) AddedFields() []string
- func (m *PullRequestMutation) AddedIDs(name string) []ent.Value
- func (m *PullRequestMutation) AddedTotalCommits() (r int64, exists bool)
- func (m *PullRequestMutation) ClearClosedAt()
- func (m *PullRequestMutation) ClearCommits()
- func (m *PullRequestMutation) ClearEdge(name string) error
- func (m *PullRequestMutation) ClearField(name string) error
- func (m *PullRequestMutation) ClearMergedAt()
- func (m *PullRequestMutation) ClearRepository()
- func (m *PullRequestMutation) ClearedEdges() []string
- func (m *PullRequestMutation) ClearedFields() []string
- func (m PullRequestMutation) Client() *Client
- func (m *PullRequestMutation) ClosedAt() (r time.Time, exists bool)
- func (m *PullRequestMutation) ClosedAtCleared() bool
- func (m *PullRequestMutation) CommitsCleared() bool
- func (m *PullRequestMutation) CommitsIDs() (ids []uuid.UUID)
- func (m *PullRequestMutation) CreatedAt() (r time.Time, exists bool)
- func (m *PullRequestMutation) EdgeCleared(name string) bool
- func (m *PullRequestMutation) Field(name string) (ent.Value, bool)
- func (m *PullRequestMutation) FieldCleared(name string) bool
- func (m *PullRequestMutation) Fields() []string
- func (m *PullRequestMutation) GetCommit() (r bool, exists bool)
- func (m *PullRequestMutation) GithubID() (r string, exists bool)
- func (m *PullRequestMutation) ID() (id uuid.UUID, exists bool)
- func (m *PullRequestMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *PullRequestMutation) MergedAt() (r time.Time, exists bool)
- func (m *PullRequestMutation) MergedAtCleared() bool
- func (m *PullRequestMutation) OldClosedAt(ctx context.Context) (v time.Time, err error)
- func (m *PullRequestMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PullRequestMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *PullRequestMutation) OldGetCommit(ctx context.Context) (v bool, err error)
- func (m *PullRequestMutation) OldGithubID(ctx context.Context) (v string, err error)
- func (m *PullRequestMutation) OldMergedAt(ctx context.Context) (v time.Time, err error)
- func (m *PullRequestMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *PullRequestMutation) OldTotalCommits(ctx context.Context) (v int64, err error)
- func (m *PullRequestMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *PullRequestMutation) Op() Op
- func (m *PullRequestMutation) RemoveCommitIDs(ids ...uuid.UUID)
- func (m *PullRequestMutation) RemovedCommitsIDs() (ids []uuid.UUID)
- func (m *PullRequestMutation) RemovedEdges() []string
- func (m *PullRequestMutation) RemovedIDs(name string) []ent.Value
- func (m *PullRequestMutation) RepositoryCleared() bool
- func (m *PullRequestMutation) RepositoryID() (id uuid.UUID, exists bool)
- func (m *PullRequestMutation) RepositoryIDs() (ids []uuid.UUID)
- func (m *PullRequestMutation) ResetClosedAt()
- func (m *PullRequestMutation) ResetCommits()
- func (m *PullRequestMutation) ResetCreatedAt()
- func (m *PullRequestMutation) ResetEdge(name string) error
- func (m *PullRequestMutation) ResetField(name string) error
- func (m *PullRequestMutation) ResetGetCommit()
- func (m *PullRequestMutation) ResetGithubID()
- func (m *PullRequestMutation) ResetMergedAt()
- func (m *PullRequestMutation) ResetRepository()
- func (m *PullRequestMutation) ResetTitle()
- func (m *PullRequestMutation) ResetTotalCommits()
- func (m *PullRequestMutation) ResetUpdatedAt()
- func (m *PullRequestMutation) SetClosedAt(t time.Time)
- func (m *PullRequestMutation) SetCreatedAt(t time.Time)
- func (m *PullRequestMutation) SetField(name string, value ent.Value) error
- func (m *PullRequestMutation) SetGetCommit(b bool)
- func (m *PullRequestMutation) SetGithubID(s string)
- func (m *PullRequestMutation) SetID(id uuid.UUID)
- func (m *PullRequestMutation) SetMergedAt(t time.Time)
- func (m *PullRequestMutation) SetOp(op Op)
- func (m *PullRequestMutation) SetRepositoryID(id uuid.UUID)
- func (m *PullRequestMutation) SetTitle(s string)
- func (m *PullRequestMutation) SetTotalCommits(i int64)
- func (m *PullRequestMutation) SetUpdatedAt(t time.Time)
- func (m *PullRequestMutation) Title() (r string, exists bool)
- func (m *PullRequestMutation) TotalCommits() (r int64, exists bool)
- func (m PullRequestMutation) Tx() (*Tx, error)
- func (m *PullRequestMutation) Type() string
- func (m *PullRequestMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *PullRequestMutation) Where(ps ...predicate.PullRequest)
- func (m *PullRequestMutation) WhereP(ps ...func(*sql.Selector))
- type PullRequestQuery
- func (prq *PullRequestQuery) Aggregate(fns ...AggregateFunc) *PullRequestSelect
- func (prq *PullRequestQuery) All(ctx context.Context) ([]*PullRequest, error)
- func (prq *PullRequestQuery) AllX(ctx context.Context) []*PullRequest
- func (prq *PullRequestQuery) Clone() *PullRequestQuery
- func (prq *PullRequestQuery) Count(ctx context.Context) (int, error)
- func (prq *PullRequestQuery) CountX(ctx context.Context) int
- func (prq *PullRequestQuery) Exist(ctx context.Context) (bool, error)
- func (prq *PullRequestQuery) ExistX(ctx context.Context) bool
- func (prq *PullRequestQuery) First(ctx context.Context) (*PullRequest, error)
- func (prq *PullRequestQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (prq *PullRequestQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (prq *PullRequestQuery) FirstX(ctx context.Context) *PullRequest
- func (prq *PullRequestQuery) GroupBy(field string, fields ...string) *PullRequestGroupBy
- func (prq *PullRequestQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (prq *PullRequestQuery) IDsX(ctx context.Context) []uuid.UUID
- func (prq *PullRequestQuery) Limit(limit int) *PullRequestQuery
- func (prq *PullRequestQuery) Offset(offset int) *PullRequestQuery
- func (prq *PullRequestQuery) Only(ctx context.Context) (*PullRequest, error)
- func (prq *PullRequestQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (prq *PullRequestQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (prq *PullRequestQuery) OnlyX(ctx context.Context) *PullRequest
- func (prq *PullRequestQuery) Order(o ...OrderFunc) *PullRequestQuery
- func (prq *PullRequestQuery) QueryCommits() *CommitsQuery
- func (prq *PullRequestQuery) QueryRepository() *RepositoryQuery
- func (prq *PullRequestQuery) Select(fields ...string) *PullRequestSelect
- func (prq *PullRequestQuery) Unique(unique bool) *PullRequestQuery
- func (prq *PullRequestQuery) Where(ps ...predicate.PullRequest) *PullRequestQuery
- func (prq *PullRequestQuery) WithCommits(opts ...func(*CommitsQuery)) *PullRequestQuery
- func (prq *PullRequestQuery) WithRepository(opts ...func(*RepositoryQuery)) *PullRequestQuery
- type PullRequestSelect
- func (prs *PullRequestSelect) Aggregate(fns ...AggregateFunc) *PullRequestSelect
- func (s *PullRequestSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *PullRequestSelect) BoolX(ctx context.Context) bool
- func (s *PullRequestSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *PullRequestSelect) BoolsX(ctx context.Context) []bool
- func (s *PullRequestSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *PullRequestSelect) Float64X(ctx context.Context) float64
- func (s *PullRequestSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *PullRequestSelect) Float64sX(ctx context.Context) []float64
- func (s *PullRequestSelect) Int(ctx context.Context) (_ int, err error)
- func (s *PullRequestSelect) IntX(ctx context.Context) int
- func (s *PullRequestSelect) Ints(ctx context.Context) ([]int, error)
- func (s *PullRequestSelect) IntsX(ctx context.Context) []int
- func (prs *PullRequestSelect) Scan(ctx context.Context, v any) error
- func (s *PullRequestSelect) ScanX(ctx context.Context, v any)
- func (s *PullRequestSelect) String(ctx context.Context) (_ string, err error)
- func (s *PullRequestSelect) StringX(ctx context.Context) string
- func (s *PullRequestSelect) Strings(ctx context.Context) ([]string, error)
- func (s *PullRequestSelect) StringsX(ctx context.Context) []string
- type PullRequestUpdate
- func (pru *PullRequestUpdate) AddCommitIDs(ids ...uuid.UUID) *PullRequestUpdate
- func (pru *PullRequestUpdate) AddCommits(c ...*Commits) *PullRequestUpdate
- func (pru *PullRequestUpdate) AddTotalCommits(i int64) *PullRequestUpdate
- func (pru *PullRequestUpdate) ClearClosedAt() *PullRequestUpdate
- func (pru *PullRequestUpdate) ClearCommits() *PullRequestUpdate
- func (pru *PullRequestUpdate) ClearMergedAt() *PullRequestUpdate
- func (pru *PullRequestUpdate) ClearRepository() *PullRequestUpdate
- func (pru *PullRequestUpdate) Exec(ctx context.Context) error
- func (pru *PullRequestUpdate) ExecX(ctx context.Context)
- func (pru *PullRequestUpdate) Mutation() *PullRequestMutation
- func (pru *PullRequestUpdate) RemoveCommitIDs(ids ...uuid.UUID) *PullRequestUpdate
- func (pru *PullRequestUpdate) RemoveCommits(c ...*Commits) *PullRequestUpdate
- func (pru *PullRequestUpdate) Save(ctx context.Context) (int, error)
- func (pru *PullRequestUpdate) SaveX(ctx context.Context) int
- func (pru *PullRequestUpdate) SetClosedAt(t time.Time) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetCreatedAt(t time.Time) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetGetCommit(b bool) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetGithubID(s string) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetMergedAt(t time.Time) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetNillableClosedAt(t *time.Time) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetNillableCreatedAt(t *time.Time) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetNillableGetCommit(b *bool) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetNillableMergedAt(t *time.Time) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetNillableRepositoryID(id *uuid.UUID) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetNillableTotalCommits(i *int64) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetNillableUpdatedAt(t *time.Time) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetRepository(r *Repository) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetRepositoryID(id uuid.UUID) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetTitle(s string) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetTotalCommits(i int64) *PullRequestUpdate
- func (pru *PullRequestUpdate) SetUpdatedAt(t time.Time) *PullRequestUpdate
- func (pru *PullRequestUpdate) Where(ps ...predicate.PullRequest) *PullRequestUpdate
- type PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) AddCommitIDs(ids ...uuid.UUID) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) AddCommits(c ...*Commits) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) AddTotalCommits(i int64) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) ClearClosedAt() *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) ClearCommits() *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) ClearMergedAt() *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) ClearRepository() *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) Exec(ctx context.Context) error
- func (pruo *PullRequestUpdateOne) ExecX(ctx context.Context)
- func (pruo *PullRequestUpdateOne) Mutation() *PullRequestMutation
- func (pruo *PullRequestUpdateOne) RemoveCommitIDs(ids ...uuid.UUID) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) RemoveCommits(c ...*Commits) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) Save(ctx context.Context) (*PullRequest, error)
- func (pruo *PullRequestUpdateOne) SaveX(ctx context.Context) *PullRequest
- func (pruo *PullRequestUpdateOne) Select(field string, fields ...string) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetClosedAt(t time.Time) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetCreatedAt(t time.Time) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetGetCommit(b bool) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetGithubID(s string) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetMergedAt(t time.Time) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetNillableClosedAt(t *time.Time) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetNillableCreatedAt(t *time.Time) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetNillableGetCommit(b *bool) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetNillableMergedAt(t *time.Time) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetNillableRepositoryID(id *uuid.UUID) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetNillableTotalCommits(i *int64) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetNillableUpdatedAt(t *time.Time) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetRepository(r *Repository) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetRepositoryID(id uuid.UUID) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetTitle(s string) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetTotalCommits(i int64) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) SetUpdatedAt(t time.Time) *PullRequestUpdateOne
- func (pruo *PullRequestUpdateOne) Where(ps ...predicate.PullRequest) *PullRequestUpdateOne
- type PullRequests
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type Repositories
- type Repository
- type RepositoryClient
- func (c *RepositoryClient) Create() *RepositoryCreate
- func (c *RepositoryClient) CreateBulk(builders ...*RepositoryCreate) *RepositoryCreateBulk
- func (c *RepositoryClient) Delete() *RepositoryDelete
- func (c *RepositoryClient) DeleteOne(r *Repository) *RepositoryDeleteOne
- func (c *RepositoryClient) DeleteOneID(id uuid.UUID) *RepositoryDeleteOne
- func (c *RepositoryClient) Get(ctx context.Context, id uuid.UUID) (*Repository, error)
- func (c *RepositoryClient) GetX(ctx context.Context, id uuid.UUID) *Repository
- func (c *RepositoryClient) Hooks() []Hook
- func (c *RepositoryClient) Intercept(interceptors ...Interceptor)
- func (c *RepositoryClient) Interceptors() []Interceptor
- func (c *RepositoryClient) Query() *RepositoryQuery
- func (c *RepositoryClient) QueryIssues(r *Repository) *IssueQuery
- func (c *RepositoryClient) QueryPullRequests(r *Repository) *PullRequestQuery
- func (c *RepositoryClient) Update() *RepositoryUpdate
- func (c *RepositoryClient) UpdateOne(r *Repository) *RepositoryUpdateOne
- func (c *RepositoryClient) UpdateOneID(id uuid.UUID) *RepositoryUpdateOne
- func (c *RepositoryClient) Use(hooks ...Hook)
- type RepositoryCreate
- func (rc *RepositoryCreate) AddIssueIDs(ids ...uuid.UUID) *RepositoryCreate
- func (rc *RepositoryCreate) AddIssues(i ...*Issue) *RepositoryCreate
- func (rc *RepositoryCreate) AddPullRequestIDs(ids ...uuid.UUID) *RepositoryCreate
- func (rc *RepositoryCreate) AddPullRequests(p ...*PullRequest) *RepositoryCreate
- func (rc *RepositoryCreate) Exec(ctx context.Context) error
- func (rc *RepositoryCreate) ExecX(ctx context.Context)
- func (rc *RepositoryCreate) Mutation() *RepositoryMutation
- func (rc *RepositoryCreate) Save(ctx context.Context) (*Repository, error)
- func (rc *RepositoryCreate) SaveX(ctx context.Context) *Repository
- func (rc *RepositoryCreate) SetCreatedAt(t time.Time) *RepositoryCreate
- func (rc *RepositoryCreate) SetDescription(s string) *RepositoryCreate
- func (rc *RepositoryCreate) SetGetIssue(b bool) *RepositoryCreate
- func (rc *RepositoryCreate) SetGetPullRequest(b bool) *RepositoryCreate
- func (rc *RepositoryCreate) SetGithubID(s string) *RepositoryCreate
- func (rc *RepositoryCreate) SetID(u uuid.UUID) *RepositoryCreate
- func (rc *RepositoryCreate) SetName(s string) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillableCreatedAt(t *time.Time) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillableDescription(s *string) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillableGetIssue(b *bool) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillableGetPullRequest(b *bool) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillableID(u *uuid.UUID) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillablePushedAt(t *time.Time) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillableTotalIssue(i *int64) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillableTotalPr(i *int64) *RepositoryCreate
- func (rc *RepositoryCreate) SetNillableUpdatedAt(t *time.Time) *RepositoryCreate
- func (rc *RepositoryCreate) SetOwner(s string) *RepositoryCreate
- func (rc *RepositoryCreate) SetPushedAt(t time.Time) *RepositoryCreate
- func (rc *RepositoryCreate) SetTotalIssue(i int64) *RepositoryCreate
- func (rc *RepositoryCreate) SetTotalPr(i int64) *RepositoryCreate
- func (rc *RepositoryCreate) SetUpdatedAt(t time.Time) *RepositoryCreate
- type RepositoryCreateBulk
- type RepositoryDelete
- type RepositoryDeleteOne
- type RepositoryEdges
- type RepositoryGroupBy
- func (rgb *RepositoryGroupBy) Aggregate(fns ...AggregateFunc) *RepositoryGroupBy
- func (s *RepositoryGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *RepositoryGroupBy) BoolX(ctx context.Context) bool
- func (s *RepositoryGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *RepositoryGroupBy) BoolsX(ctx context.Context) []bool
- func (s *RepositoryGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *RepositoryGroupBy) Float64X(ctx context.Context) float64
- func (s *RepositoryGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *RepositoryGroupBy) Float64sX(ctx context.Context) []float64
- func (s *RepositoryGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *RepositoryGroupBy) IntX(ctx context.Context) int
- func (s *RepositoryGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *RepositoryGroupBy) IntsX(ctx context.Context) []int
- func (rgb *RepositoryGroupBy) Scan(ctx context.Context, v any) error
- func (s *RepositoryGroupBy) ScanX(ctx context.Context, v any)
- func (s *RepositoryGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *RepositoryGroupBy) StringX(ctx context.Context) string
- func (s *RepositoryGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *RepositoryGroupBy) StringsX(ctx context.Context) []string
- type RepositoryMutation
- func (m *RepositoryMutation) AddField(name string, value ent.Value) error
- func (m *RepositoryMutation) AddIssueIDs(ids ...uuid.UUID)
- func (m *RepositoryMutation) AddPullRequestIDs(ids ...uuid.UUID)
- func (m *RepositoryMutation) AddTotalIssue(i int64)
- func (m *RepositoryMutation) AddTotalPr(i int64)
- func (m *RepositoryMutation) AddedEdges() []string
- func (m *RepositoryMutation) AddedField(name string) (ent.Value, bool)
- func (m *RepositoryMutation) AddedFields() []string
- func (m *RepositoryMutation) AddedIDs(name string) []ent.Value
- func (m *RepositoryMutation) AddedTotalIssue() (r int64, exists bool)
- func (m *RepositoryMutation) AddedTotalPr() (r int64, exists bool)
- func (m *RepositoryMutation) ClearDescription()
- func (m *RepositoryMutation) ClearEdge(name string) error
- func (m *RepositoryMutation) ClearField(name string) error
- func (m *RepositoryMutation) ClearIssues()
- func (m *RepositoryMutation) ClearPullRequests()
- func (m *RepositoryMutation) ClearedEdges() []string
- func (m *RepositoryMutation) ClearedFields() []string
- func (m RepositoryMutation) Client() *Client
- func (m *RepositoryMutation) CreatedAt() (r time.Time, exists bool)
- func (m *RepositoryMutation) Description() (r string, exists bool)
- func (m *RepositoryMutation) DescriptionCleared() bool
- func (m *RepositoryMutation) EdgeCleared(name string) bool
- func (m *RepositoryMutation) Field(name string) (ent.Value, bool)
- func (m *RepositoryMutation) FieldCleared(name string) bool
- func (m *RepositoryMutation) Fields() []string
- func (m *RepositoryMutation) GetIssue() (r bool, exists bool)
- func (m *RepositoryMutation) GetPullRequest() (r bool, exists bool)
- func (m *RepositoryMutation) GithubID() (r string, exists bool)
- func (m *RepositoryMutation) ID() (id uuid.UUID, exists bool)
- func (m *RepositoryMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *RepositoryMutation) IssuesCleared() bool
- func (m *RepositoryMutation) IssuesIDs() (ids []uuid.UUID)
- func (m *RepositoryMutation) Name() (r string, exists bool)
- func (m *RepositoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *RepositoryMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *RepositoryMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *RepositoryMutation) OldGetIssue(ctx context.Context) (v bool, err error)
- func (m *RepositoryMutation) OldGetPullRequest(ctx context.Context) (v bool, err error)
- func (m *RepositoryMutation) OldGithubID(ctx context.Context) (v string, err error)
- func (m *RepositoryMutation) OldName(ctx context.Context) (v string, err error)
- func (m *RepositoryMutation) OldOwner(ctx context.Context) (v string, err error)
- func (m *RepositoryMutation) OldPushedAt(ctx context.Context) (v time.Time, err error)
- func (m *RepositoryMutation) OldTotalIssue(ctx context.Context) (v int64, err error)
- func (m *RepositoryMutation) OldTotalPr(ctx context.Context) (v int64, err error)
- func (m *RepositoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *RepositoryMutation) Op() Op
- func (m *RepositoryMutation) Owner() (r string, exists bool)
- func (m *RepositoryMutation) PullRequestsCleared() bool
- func (m *RepositoryMutation) PullRequestsIDs() (ids []uuid.UUID)
- func (m *RepositoryMutation) PushedAt() (r time.Time, exists bool)
- func (m *RepositoryMutation) RemoveIssueIDs(ids ...uuid.UUID)
- func (m *RepositoryMutation) RemovePullRequestIDs(ids ...uuid.UUID)
- func (m *RepositoryMutation) RemovedEdges() []string
- func (m *RepositoryMutation) RemovedIDs(name string) []ent.Value
- func (m *RepositoryMutation) RemovedIssuesIDs() (ids []uuid.UUID)
- func (m *RepositoryMutation) RemovedPullRequestsIDs() (ids []uuid.UUID)
- func (m *RepositoryMutation) ResetCreatedAt()
- func (m *RepositoryMutation) ResetDescription()
- func (m *RepositoryMutation) ResetEdge(name string) error
- func (m *RepositoryMutation) ResetField(name string) error
- func (m *RepositoryMutation) ResetGetIssue()
- func (m *RepositoryMutation) ResetGetPullRequest()
- func (m *RepositoryMutation) ResetGithubID()
- func (m *RepositoryMutation) ResetIssues()
- func (m *RepositoryMutation) ResetName()
- func (m *RepositoryMutation) ResetOwner()
- func (m *RepositoryMutation) ResetPullRequests()
- func (m *RepositoryMutation) ResetPushedAt()
- func (m *RepositoryMutation) ResetTotalIssue()
- func (m *RepositoryMutation) ResetTotalPr()
- func (m *RepositoryMutation) ResetUpdatedAt()
- func (m *RepositoryMutation) SetCreatedAt(t time.Time)
- func (m *RepositoryMutation) SetDescription(s string)
- func (m *RepositoryMutation) SetField(name string, value ent.Value) error
- func (m *RepositoryMutation) SetGetIssue(b bool)
- func (m *RepositoryMutation) SetGetPullRequest(b bool)
- func (m *RepositoryMutation) SetGithubID(s string)
- func (m *RepositoryMutation) SetID(id uuid.UUID)
- func (m *RepositoryMutation) SetName(s string)
- func (m *RepositoryMutation) SetOp(op Op)
- func (m *RepositoryMutation) SetOwner(s string)
- func (m *RepositoryMutation) SetPushedAt(t time.Time)
- func (m *RepositoryMutation) SetTotalIssue(i int64)
- func (m *RepositoryMutation) SetTotalPr(i int64)
- func (m *RepositoryMutation) SetUpdatedAt(t time.Time)
- func (m *RepositoryMutation) TotalIssue() (r int64, exists bool)
- func (m *RepositoryMutation) TotalPr() (r int64, exists bool)
- func (m RepositoryMutation) Tx() (*Tx, error)
- func (m *RepositoryMutation) Type() string
- func (m *RepositoryMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *RepositoryMutation) Where(ps ...predicate.Repository)
- func (m *RepositoryMutation) WhereP(ps ...func(*sql.Selector))
- type RepositoryQuery
- func (rq *RepositoryQuery) Aggregate(fns ...AggregateFunc) *RepositorySelect
- func (rq *RepositoryQuery) All(ctx context.Context) ([]*Repository, error)
- func (rq *RepositoryQuery) AllX(ctx context.Context) []*Repository
- func (rq *RepositoryQuery) Clone() *RepositoryQuery
- func (rq *RepositoryQuery) Count(ctx context.Context) (int, error)
- func (rq *RepositoryQuery) CountX(ctx context.Context) int
- func (rq *RepositoryQuery) Exist(ctx context.Context) (bool, error)
- func (rq *RepositoryQuery) ExistX(ctx context.Context) bool
- func (rq *RepositoryQuery) First(ctx context.Context) (*Repository, error)
- func (rq *RepositoryQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (rq *RepositoryQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (rq *RepositoryQuery) FirstX(ctx context.Context) *Repository
- func (rq *RepositoryQuery) GroupBy(field string, fields ...string) *RepositoryGroupBy
- func (rq *RepositoryQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (rq *RepositoryQuery) IDsX(ctx context.Context) []uuid.UUID
- func (rq *RepositoryQuery) Limit(limit int) *RepositoryQuery
- func (rq *RepositoryQuery) Offset(offset int) *RepositoryQuery
- func (rq *RepositoryQuery) Only(ctx context.Context) (*Repository, error)
- func (rq *RepositoryQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (rq *RepositoryQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (rq *RepositoryQuery) OnlyX(ctx context.Context) *Repository
- func (rq *RepositoryQuery) Order(o ...OrderFunc) *RepositoryQuery
- func (rq *RepositoryQuery) QueryIssues() *IssueQuery
- func (rq *RepositoryQuery) QueryPullRequests() *PullRequestQuery
- func (rq *RepositoryQuery) Select(fields ...string) *RepositorySelect
- func (rq *RepositoryQuery) Unique(unique bool) *RepositoryQuery
- func (rq *RepositoryQuery) Where(ps ...predicate.Repository) *RepositoryQuery
- func (rq *RepositoryQuery) WithIssues(opts ...func(*IssueQuery)) *RepositoryQuery
- func (rq *RepositoryQuery) WithPullRequests(opts ...func(*PullRequestQuery)) *RepositoryQuery
- type RepositorySelect
- func (rs *RepositorySelect) Aggregate(fns ...AggregateFunc) *RepositorySelect
- func (s *RepositorySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *RepositorySelect) BoolX(ctx context.Context) bool
- func (s *RepositorySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *RepositorySelect) BoolsX(ctx context.Context) []bool
- func (s *RepositorySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *RepositorySelect) Float64X(ctx context.Context) float64
- func (s *RepositorySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *RepositorySelect) Float64sX(ctx context.Context) []float64
- func (s *RepositorySelect) Int(ctx context.Context) (_ int, err error)
- func (s *RepositorySelect) IntX(ctx context.Context) int
- func (s *RepositorySelect) Ints(ctx context.Context) ([]int, error)
- func (s *RepositorySelect) IntsX(ctx context.Context) []int
- func (rs *RepositorySelect) Scan(ctx context.Context, v any) error
- func (s *RepositorySelect) ScanX(ctx context.Context, v any)
- func (s *RepositorySelect) String(ctx context.Context) (_ string, err error)
- func (s *RepositorySelect) StringX(ctx context.Context) string
- func (s *RepositorySelect) Strings(ctx context.Context) ([]string, error)
- func (s *RepositorySelect) StringsX(ctx context.Context) []string
- type RepositoryUpdate
- func (ru *RepositoryUpdate) AddIssueIDs(ids ...uuid.UUID) *RepositoryUpdate
- func (ru *RepositoryUpdate) AddIssues(i ...*Issue) *RepositoryUpdate
- func (ru *RepositoryUpdate) AddPullRequestIDs(ids ...uuid.UUID) *RepositoryUpdate
- func (ru *RepositoryUpdate) AddPullRequests(p ...*PullRequest) *RepositoryUpdate
- func (ru *RepositoryUpdate) AddTotalIssue(i int64) *RepositoryUpdate
- func (ru *RepositoryUpdate) AddTotalPr(i int64) *RepositoryUpdate
- func (ru *RepositoryUpdate) ClearDescription() *RepositoryUpdate
- func (ru *RepositoryUpdate) ClearIssues() *RepositoryUpdate
- func (ru *RepositoryUpdate) ClearPullRequests() *RepositoryUpdate
- func (ru *RepositoryUpdate) Exec(ctx context.Context) error
- func (ru *RepositoryUpdate) ExecX(ctx context.Context)
- func (ru *RepositoryUpdate) Mutation() *RepositoryMutation
- func (ru *RepositoryUpdate) RemoveIssueIDs(ids ...uuid.UUID) *RepositoryUpdate
- func (ru *RepositoryUpdate) RemoveIssues(i ...*Issue) *RepositoryUpdate
- func (ru *RepositoryUpdate) RemovePullRequestIDs(ids ...uuid.UUID) *RepositoryUpdate
- func (ru *RepositoryUpdate) RemovePullRequests(p ...*PullRequest) *RepositoryUpdate
- func (ru *RepositoryUpdate) Save(ctx context.Context) (int, error)
- func (ru *RepositoryUpdate) SaveX(ctx context.Context) int
- func (ru *RepositoryUpdate) SetCreatedAt(t time.Time) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetDescription(s string) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetGetIssue(b bool) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetGetPullRequest(b bool) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetGithubID(s string) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetName(s string) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetNillableCreatedAt(t *time.Time) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetNillableDescription(s *string) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetNillableGetIssue(b *bool) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetNillableGetPullRequest(b *bool) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetNillablePushedAt(t *time.Time) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetNillableTotalIssue(i *int64) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetNillableTotalPr(i *int64) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetNillableUpdatedAt(t *time.Time) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetOwner(s string) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetPushedAt(t time.Time) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetTotalIssue(i int64) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetTotalPr(i int64) *RepositoryUpdate
- func (ru *RepositoryUpdate) SetUpdatedAt(t time.Time) *RepositoryUpdate
- func (ru *RepositoryUpdate) Where(ps ...predicate.Repository) *RepositoryUpdate
- type RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) AddIssueIDs(ids ...uuid.UUID) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) AddIssues(i ...*Issue) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) AddPullRequestIDs(ids ...uuid.UUID) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) AddPullRequests(p ...*PullRequest) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) AddTotalIssue(i int64) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) AddTotalPr(i int64) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) ClearDescription() *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) ClearIssues() *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) ClearPullRequests() *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) Exec(ctx context.Context) error
- func (ruo *RepositoryUpdateOne) ExecX(ctx context.Context)
- func (ruo *RepositoryUpdateOne) Mutation() *RepositoryMutation
- func (ruo *RepositoryUpdateOne) RemoveIssueIDs(ids ...uuid.UUID) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) RemoveIssues(i ...*Issue) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) RemovePullRequestIDs(ids ...uuid.UUID) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) RemovePullRequests(p ...*PullRequest) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) Save(ctx context.Context) (*Repository, error)
- func (ruo *RepositoryUpdateOne) SaveX(ctx context.Context) *Repository
- func (ruo *RepositoryUpdateOne) Select(field string, fields ...string) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetCreatedAt(t time.Time) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetDescription(s string) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetGetIssue(b bool) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetGetPullRequest(b bool) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetGithubID(s string) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetName(s string) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetNillableCreatedAt(t *time.Time) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetNillableDescription(s *string) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetNillableGetIssue(b *bool) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetNillableGetPullRequest(b *bool) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetNillablePushedAt(t *time.Time) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetNillableTotalIssue(i *int64) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetNillableTotalPr(i *int64) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetNillableUpdatedAt(t *time.Time) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetOwner(s string) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetPushedAt(t time.Time) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetTotalIssue(i int64) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetTotalPr(i int64) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) SetUpdatedAt(t time.Time) *RepositoryUpdateOne
- func (ruo *RepositoryUpdateOne) Where(ps ...predicate.Repository) *RepositoryUpdateOne
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeCommits = "Commits" TypeIssue = "Issue" TypePullRequest = "PullRequest" TypeRepository = "Repository" )
Variables ¶
This section is empty.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct {
// Schema is the client for creating, migrating and dropping schema.
Schema *migrate.Schema
// Commits is the client for interacting with the Commits builders.
Commits *CommitsClient
// Issue is the client for interacting with the Issue builders.
Issue *IssueClient
// PullRequest is the client for interacting with the PullRequest builders.
PullRequest *PullRequestClient
// Repository is the client for interacting with the Repository builders.
Repository *RepositoryClient
// 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(). Commits. 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 Commits ¶
type Commits struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// GithubID holds the value of the "github_id" field.
GithubID string `json:"github_id,omitempty"`
// Message holds the value of the "message" field.
Message string `json:"message,omitempty"`
// Additions holds the value of the "additions" field.
Additions int64 `json:"additions,omitempty"`
// Deletions holds the value of the "deletions" field.
Deletions int64 `json:"deletions,omitempty"`
// ChangeFiles holds the value of the "change_files" field.
ChangeFiles int64 `json:"change_files,omitempty"`
// CommittedAt holds the value of the "committed_at" field.
CommittedAt time.Time `json:"committed_at,omitempty"`
// PushedAt holds the value of the "pushed_at" field.
PushedAt time.Time `json:"pushed_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the CommitsQuery when eager-loading is set.
Edges CommitsEdges `json:"edges"`
// contains filtered or unexported fields
}
Commits is the model entity for the Commits schema.
func (*Commits) QueryPullRequest ¶
func (c *Commits) QueryPullRequest() *PullRequestQuery
QueryPullRequest queries the "pull_request" edge of the Commits entity.
func (*Commits) Unwrap ¶
Unwrap unwraps the Commits 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 (*Commits) Update ¶
func (c *Commits) Update() *CommitsUpdateOne
Update returns a builder for updating this Commits. Note that you need to call Commits.Unwrap() before calling this method if this Commits was returned from a transaction, and the transaction was committed or rolled back.
type CommitsClient ¶
type CommitsClient struct {
// contains filtered or unexported fields
}
CommitsClient is a client for the Commits schema.
func NewCommitsClient ¶
func NewCommitsClient(c config) *CommitsClient
NewCommitsClient returns a client for the Commits from the given config.
func (*CommitsClient) Create ¶
func (c *CommitsClient) Create() *CommitsCreate
Create returns a builder for creating a Commits entity.
func (*CommitsClient) CreateBulk ¶
func (c *CommitsClient) CreateBulk(builders ...*CommitsCreate) *CommitsCreateBulk
CreateBulk returns a builder for creating a bulk of Commits entities.
func (*CommitsClient) Delete ¶
func (c *CommitsClient) Delete() *CommitsDelete
Delete returns a delete builder for Commits.
func (*CommitsClient) DeleteOne ¶
func (c *CommitsClient) DeleteOne(co *Commits) *CommitsDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*CommitsClient) DeleteOneID ¶
func (c *CommitsClient) DeleteOneID(id uuid.UUID) *CommitsDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*CommitsClient) Hooks ¶
func (c *CommitsClient) Hooks() []Hook
Hooks returns the client hooks.
func (*CommitsClient) Intercept ¶
func (c *CommitsClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `commits.Intercept(f(g(h())))`.
func (*CommitsClient) Interceptors ¶
func (c *CommitsClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*CommitsClient) Query ¶
func (c *CommitsClient) Query() *CommitsQuery
Query returns a query builder for Commits.
func (*CommitsClient) QueryPullRequest ¶
func (c *CommitsClient) QueryPullRequest(co *Commits) *PullRequestQuery
QueryPullRequest queries the pull_request edge of a Commits.
func (*CommitsClient) Update ¶
func (c *CommitsClient) Update() *CommitsUpdate
Update returns an update builder for Commits.
func (*CommitsClient) UpdateOne ¶
func (c *CommitsClient) UpdateOne(co *Commits) *CommitsUpdateOne
UpdateOne returns an update builder for the given entity.
func (*CommitsClient) UpdateOneID ¶
func (c *CommitsClient) UpdateOneID(id uuid.UUID) *CommitsUpdateOne
UpdateOneID returns an update builder for the given id.
func (*CommitsClient) Use ¶
func (c *CommitsClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `commits.Hooks(f(g(h())))`.
type CommitsCreate ¶
type CommitsCreate struct {
// contains filtered or unexported fields
}
CommitsCreate is the builder for creating a Commits entity.
func (*CommitsCreate) Exec ¶
func (cc *CommitsCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*CommitsCreate) ExecX ¶
func (cc *CommitsCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CommitsCreate) Mutation ¶
func (cc *CommitsCreate) Mutation() *CommitsMutation
Mutation returns the CommitsMutation object of the builder.
func (*CommitsCreate) Save ¶
func (cc *CommitsCreate) Save(ctx context.Context) (*Commits, error)
Save creates the Commits in the database.
func (*CommitsCreate) SaveX ¶
func (cc *CommitsCreate) SaveX(ctx context.Context) *Commits
SaveX calls Save and panics if Save returns an error.
func (*CommitsCreate) SetAdditions ¶
func (cc *CommitsCreate) SetAdditions(i int64) *CommitsCreate
SetAdditions sets the "additions" field.
func (*CommitsCreate) SetChangeFiles ¶
func (cc *CommitsCreate) SetChangeFiles(i int64) *CommitsCreate
SetChangeFiles sets the "change_files" field.
func (*CommitsCreate) SetCommittedAt ¶
func (cc *CommitsCreate) SetCommittedAt(t time.Time) *CommitsCreate
SetCommittedAt sets the "committed_at" field.
func (*CommitsCreate) SetDeletions ¶
func (cc *CommitsCreate) SetDeletions(i int64) *CommitsCreate
SetDeletions sets the "deletions" field.
func (*CommitsCreate) SetGithubID ¶
func (cc *CommitsCreate) SetGithubID(s string) *CommitsCreate
SetGithubID sets the "github_id" field.
func (*CommitsCreate) SetID ¶
func (cc *CommitsCreate) SetID(u uuid.UUID) *CommitsCreate
SetID sets the "id" field.
func (*CommitsCreate) SetMessage ¶
func (cc *CommitsCreate) SetMessage(s string) *CommitsCreate
SetMessage sets the "message" field.
func (*CommitsCreate) SetNillableCommittedAt ¶
func (cc *CommitsCreate) SetNillableCommittedAt(t *time.Time) *CommitsCreate
SetNillableCommittedAt sets the "committed_at" field if the given value is not nil.
func (*CommitsCreate) SetNillableID ¶
func (cc *CommitsCreate) SetNillableID(u *uuid.UUID) *CommitsCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*CommitsCreate) SetNillablePullRequestID ¶
func (cc *CommitsCreate) SetNillablePullRequestID(id *uuid.UUID) *CommitsCreate
SetNillablePullRequestID sets the "pull_request" edge to the PullRequest entity by ID if the given value is not nil.
func (*CommitsCreate) SetNillablePushedAt ¶
func (cc *CommitsCreate) SetNillablePushedAt(t *time.Time) *CommitsCreate
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*CommitsCreate) SetPullRequest ¶
func (cc *CommitsCreate) SetPullRequest(p *PullRequest) *CommitsCreate
SetPullRequest sets the "pull_request" edge to the PullRequest entity.
func (*CommitsCreate) SetPullRequestID ¶
func (cc *CommitsCreate) SetPullRequestID(id uuid.UUID) *CommitsCreate
SetPullRequestID sets the "pull_request" edge to the PullRequest entity by ID.
func (*CommitsCreate) SetPushedAt ¶
func (cc *CommitsCreate) SetPushedAt(t time.Time) *CommitsCreate
SetPushedAt sets the "pushed_at" field.
type CommitsCreateBulk ¶
type CommitsCreateBulk struct {
// contains filtered or unexported fields
}
CommitsCreateBulk is the builder for creating many Commits entities in bulk.
func (*CommitsCreateBulk) Exec ¶
func (ccb *CommitsCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*CommitsCreateBulk) ExecX ¶
func (ccb *CommitsCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type CommitsDelete ¶
type CommitsDelete struct {
// contains filtered or unexported fields
}
CommitsDelete is the builder for deleting a Commits entity.
func (*CommitsDelete) Exec ¶
func (cd *CommitsDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*CommitsDelete) ExecX ¶
func (cd *CommitsDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*CommitsDelete) Where ¶
func (cd *CommitsDelete) Where(ps ...predicate.Commits) *CommitsDelete
Where appends a list predicates to the CommitsDelete builder.
type CommitsDeleteOne ¶
type CommitsDeleteOne struct {
// contains filtered or unexported fields
}
CommitsDeleteOne is the builder for deleting a single Commits entity.
func (*CommitsDeleteOne) Exec ¶
func (cdo *CommitsDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*CommitsDeleteOne) ExecX ¶
func (cdo *CommitsDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CommitsDeleteOne) Where ¶
func (cdo *CommitsDeleteOne) Where(ps ...predicate.Commits) *CommitsDeleteOne
Where appends a list predicates to the CommitsDelete builder.
type CommitsEdges ¶
type CommitsEdges struct {
// PullRequest holds the value of the pull_request edge.
PullRequest *PullRequest `json:"pull_request,omitempty"`
// contains filtered or unexported fields
}
CommitsEdges holds the relations/edges for other nodes in the graph.
func (CommitsEdges) PullRequestOrErr ¶
func (e CommitsEdges) PullRequestOrErr() (*PullRequest, error)
PullRequestOrErr returns the PullRequest value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type CommitsGroupBy ¶
type CommitsGroupBy struct {
// contains filtered or unexported fields
}
CommitsGroupBy is the group-by builder for Commits entities.
func (*CommitsGroupBy) Aggregate ¶
func (cgb *CommitsGroupBy) Aggregate(fns ...AggregateFunc) *CommitsGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*CommitsGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CommitsGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CommitsGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CommitsGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CommitsGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CommitsGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CommitsGroupBy) Scan ¶
func (cgb *CommitsGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CommitsGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CommitsMutation ¶
type CommitsMutation struct {
// contains filtered or unexported fields
}
CommitsMutation represents an operation that mutates the Commits nodes in the graph.
func (*CommitsMutation) AddAdditions ¶
func (m *CommitsMutation) AddAdditions(i int64)
AddAdditions adds i to the "additions" field.
func (*CommitsMutation) AddChangeFiles ¶
func (m *CommitsMutation) AddChangeFiles(i int64)
AddChangeFiles adds i to the "change_files" field.
func (*CommitsMutation) AddDeletions ¶
func (m *CommitsMutation) AddDeletions(i int64)
AddDeletions adds i to the "deletions" field.
func (*CommitsMutation) AddField ¶
func (m *CommitsMutation) 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 (*CommitsMutation) AddedAdditions ¶
func (m *CommitsMutation) AddedAdditions() (r int64, exists bool)
AddedAdditions returns the value that was added to the "additions" field in this mutation.
func (*CommitsMutation) AddedChangeFiles ¶
func (m *CommitsMutation) AddedChangeFiles() (r int64, exists bool)
AddedChangeFiles returns the value that was added to the "change_files" field in this mutation.
func (*CommitsMutation) AddedDeletions ¶
func (m *CommitsMutation) AddedDeletions() (r int64, exists bool)
AddedDeletions returns the value that was added to the "deletions" field in this mutation.
func (*CommitsMutation) AddedEdges ¶
func (m *CommitsMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*CommitsMutation) AddedField ¶
func (m *CommitsMutation) 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 (*CommitsMutation) AddedFields ¶
func (m *CommitsMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*CommitsMutation) AddedIDs ¶
func (m *CommitsMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*CommitsMutation) Additions ¶
func (m *CommitsMutation) Additions() (r int64, exists bool)
Additions returns the value of the "additions" field in the mutation.
func (*CommitsMutation) ChangeFiles ¶
func (m *CommitsMutation) ChangeFiles() (r int64, exists bool)
ChangeFiles returns the value of the "change_files" field in the mutation.
func (*CommitsMutation) ClearEdge ¶
func (m *CommitsMutation) 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 (*CommitsMutation) ClearField ¶
func (m *CommitsMutation) 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 (*CommitsMutation) ClearPullRequest ¶
func (m *CommitsMutation) ClearPullRequest()
ClearPullRequest clears the "pull_request" edge to the PullRequest entity.
func (*CommitsMutation) ClearPushedAt ¶
func (m *CommitsMutation) ClearPushedAt()
ClearPushedAt clears the value of the "pushed_at" field.
func (*CommitsMutation) ClearedEdges ¶
func (m *CommitsMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*CommitsMutation) ClearedFields ¶
func (m *CommitsMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (CommitsMutation) Client ¶
func (m CommitsMutation) 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 (*CommitsMutation) CommittedAt ¶
func (m *CommitsMutation) CommittedAt() (r time.Time, exists bool)
CommittedAt returns the value of the "committed_at" field in the mutation.
func (*CommitsMutation) Deletions ¶
func (m *CommitsMutation) Deletions() (r int64, exists bool)
Deletions returns the value of the "deletions" field in the mutation.
func (*CommitsMutation) EdgeCleared ¶
func (m *CommitsMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*CommitsMutation) Field ¶
func (m *CommitsMutation) 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 (*CommitsMutation) FieldCleared ¶
func (m *CommitsMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*CommitsMutation) Fields ¶
func (m *CommitsMutation) 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 (*CommitsMutation) GithubID ¶
func (m *CommitsMutation) GithubID() (r string, exists bool)
GithubID returns the value of the "github_id" field in the mutation.
func (*CommitsMutation) ID ¶
func (m *CommitsMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*CommitsMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*CommitsMutation) Message ¶
func (m *CommitsMutation) Message() (r string, exists bool)
Message returns the value of the "message" field in the mutation.
func (*CommitsMutation) OldAdditions ¶
func (m *CommitsMutation) OldAdditions(ctx context.Context) (v int64, err error)
OldAdditions returns the old "additions" field's value of the Commits entity. If the Commits object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CommitsMutation) OldChangeFiles ¶
func (m *CommitsMutation) OldChangeFiles(ctx context.Context) (v int64, err error)
OldChangeFiles returns the old "change_files" field's value of the Commits entity. If the Commits object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CommitsMutation) OldCommittedAt ¶
OldCommittedAt returns the old "committed_at" field's value of the Commits entity. If the Commits object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CommitsMutation) OldDeletions ¶
func (m *CommitsMutation) OldDeletions(ctx context.Context) (v int64, err error)
OldDeletions returns the old "deletions" field's value of the Commits entity. If the Commits object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CommitsMutation) 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 (*CommitsMutation) OldGithubID ¶
func (m *CommitsMutation) OldGithubID(ctx context.Context) (v string, err error)
OldGithubID returns the old "github_id" field's value of the Commits entity. If the Commits object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CommitsMutation) OldMessage ¶
func (m *CommitsMutation) OldMessage(ctx context.Context) (v string, err error)
OldMessage returns the old "message" field's value of the Commits entity. If the Commits object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CommitsMutation) OldPushedAt ¶
OldPushedAt returns the old "pushed_at" field's value of the Commits entity. If the Commits object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*CommitsMutation) PullRequestCleared ¶
func (m *CommitsMutation) PullRequestCleared() bool
PullRequestCleared reports if the "pull_request" edge to the PullRequest entity was cleared.
func (*CommitsMutation) PullRequestID ¶
func (m *CommitsMutation) PullRequestID() (id uuid.UUID, exists bool)
PullRequestID returns the "pull_request" edge ID in the mutation.
func (*CommitsMutation) PullRequestIDs ¶
func (m *CommitsMutation) PullRequestIDs() (ids []uuid.UUID)
PullRequestIDs returns the "pull_request" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PullRequestID instead. It exists only for internal usage by the builders.
func (*CommitsMutation) PushedAt ¶
func (m *CommitsMutation) PushedAt() (r time.Time, exists bool)
PushedAt returns the value of the "pushed_at" field in the mutation.
func (*CommitsMutation) PushedAtCleared ¶
func (m *CommitsMutation) PushedAtCleared() bool
PushedAtCleared returns if the "pushed_at" field was cleared in this mutation.
func (*CommitsMutation) RemovedEdges ¶
func (m *CommitsMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*CommitsMutation) RemovedIDs ¶
func (m *CommitsMutation) 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 (*CommitsMutation) ResetAdditions ¶
func (m *CommitsMutation) ResetAdditions()
ResetAdditions resets all changes to the "additions" field.
func (*CommitsMutation) ResetChangeFiles ¶
func (m *CommitsMutation) ResetChangeFiles()
ResetChangeFiles resets all changes to the "change_files" field.
func (*CommitsMutation) ResetCommittedAt ¶
func (m *CommitsMutation) ResetCommittedAt()
ResetCommittedAt resets all changes to the "committed_at" field.
func (*CommitsMutation) ResetDeletions ¶
func (m *CommitsMutation) ResetDeletions()
ResetDeletions resets all changes to the "deletions" field.
func (*CommitsMutation) ResetEdge ¶
func (m *CommitsMutation) 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 (*CommitsMutation) ResetField ¶
func (m *CommitsMutation) 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 (*CommitsMutation) ResetGithubID ¶
func (m *CommitsMutation) ResetGithubID()
ResetGithubID resets all changes to the "github_id" field.
func (*CommitsMutation) ResetMessage ¶
func (m *CommitsMutation) ResetMessage()
ResetMessage resets all changes to the "message" field.
func (*CommitsMutation) ResetPullRequest ¶
func (m *CommitsMutation) ResetPullRequest()
ResetPullRequest resets all changes to the "pull_request" edge.
func (*CommitsMutation) ResetPushedAt ¶
func (m *CommitsMutation) ResetPushedAt()
ResetPushedAt resets all changes to the "pushed_at" field.
func (*CommitsMutation) SetAdditions ¶
func (m *CommitsMutation) SetAdditions(i int64)
SetAdditions sets the "additions" field.
func (*CommitsMutation) SetChangeFiles ¶
func (m *CommitsMutation) SetChangeFiles(i int64)
SetChangeFiles sets the "change_files" field.
func (*CommitsMutation) SetCommittedAt ¶
func (m *CommitsMutation) SetCommittedAt(t time.Time)
SetCommittedAt sets the "committed_at" field.
func (*CommitsMutation) SetDeletions ¶
func (m *CommitsMutation) SetDeletions(i int64)
SetDeletions sets the "deletions" field.
func (*CommitsMutation) SetField ¶
func (m *CommitsMutation) 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 (*CommitsMutation) SetGithubID ¶
func (m *CommitsMutation) SetGithubID(s string)
SetGithubID sets the "github_id" field.
func (*CommitsMutation) SetID ¶
func (m *CommitsMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Commits entities.
func (*CommitsMutation) SetMessage ¶
func (m *CommitsMutation) SetMessage(s string)
SetMessage sets the "message" field.
func (*CommitsMutation) SetOp ¶
func (m *CommitsMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*CommitsMutation) SetPullRequestID ¶
func (m *CommitsMutation) SetPullRequestID(id uuid.UUID)
SetPullRequestID sets the "pull_request" edge to the PullRequest entity by id.
func (*CommitsMutation) SetPushedAt ¶
func (m *CommitsMutation) SetPushedAt(t time.Time)
SetPushedAt sets the "pushed_at" field.
func (CommitsMutation) Tx ¶
func (m CommitsMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*CommitsMutation) Type ¶
func (m *CommitsMutation) Type() string
Type returns the node type of this mutation (Commits).
func (*CommitsMutation) Where ¶
func (m *CommitsMutation) Where(ps ...predicate.Commits)
Where appends a list predicates to the CommitsMutation builder.
func (*CommitsMutation) WhereP ¶
func (m *CommitsMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the CommitsMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type CommitsQuery ¶
type CommitsQuery struct {
// contains filtered or unexported fields
}
CommitsQuery is the builder for querying Commits entities.
func (*CommitsQuery) Aggregate ¶
func (cq *CommitsQuery) Aggregate(fns ...AggregateFunc) *CommitsSelect
Aggregate returns a CommitsSelect configured with the given aggregations.
func (*CommitsQuery) All ¶
func (cq *CommitsQuery) All(ctx context.Context) ([]*Commits, error)
All executes the query and returns a list of CommitsSlice.
func (*CommitsQuery) AllX ¶
func (cq *CommitsQuery) AllX(ctx context.Context) []*Commits
AllX is like All, but panics if an error occurs.
func (*CommitsQuery) Clone ¶
func (cq *CommitsQuery) Clone() *CommitsQuery
Clone returns a duplicate of the CommitsQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*CommitsQuery) Count ¶
func (cq *CommitsQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*CommitsQuery) CountX ¶
func (cq *CommitsQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*CommitsQuery) Exist ¶
func (cq *CommitsQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*CommitsQuery) ExistX ¶
func (cq *CommitsQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*CommitsQuery) First ¶
func (cq *CommitsQuery) First(ctx context.Context) (*Commits, error)
First returns the first Commits entity from the query. Returns a *NotFoundError when no Commits was found.
func (*CommitsQuery) FirstID ¶
FirstID returns the first Commits ID from the query. Returns a *NotFoundError when no Commits ID was found.
func (*CommitsQuery) FirstIDX ¶
func (cq *CommitsQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*CommitsQuery) FirstX ¶
func (cq *CommitsQuery) FirstX(ctx context.Context) *Commits
FirstX is like First, but panics if an error occurs.
func (*CommitsQuery) GroupBy ¶
func (cq *CommitsQuery) GroupBy(field string, fields ...string) *CommitsGroupBy
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 {
GithubID string `json:"github_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.Commits.Query().
GroupBy(commits.FieldGithubID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*CommitsQuery) IDsX ¶
func (cq *CommitsQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*CommitsQuery) Limit ¶
func (cq *CommitsQuery) Limit(limit int) *CommitsQuery
Limit the number of records to be returned by this query.
func (*CommitsQuery) Offset ¶
func (cq *CommitsQuery) Offset(offset int) *CommitsQuery
Offset to start from.
func (*CommitsQuery) Only ¶
func (cq *CommitsQuery) Only(ctx context.Context) (*Commits, error)
Only returns a single Commits entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Commits entity is found. Returns a *NotFoundError when no Commits entities are found.
func (*CommitsQuery) OnlyID ¶
OnlyID is like Only, but returns the only Commits ID in the query. Returns a *NotSingularError when more than one Commits ID is found. Returns a *NotFoundError when no entities are found.
func (*CommitsQuery) OnlyIDX ¶
func (cq *CommitsQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*CommitsQuery) OnlyX ¶
func (cq *CommitsQuery) OnlyX(ctx context.Context) *Commits
OnlyX is like Only, but panics if an error occurs.
func (*CommitsQuery) Order ¶
func (cq *CommitsQuery) Order(o ...OrderFunc) *CommitsQuery
Order specifies how the records should be ordered.
func (*CommitsQuery) QueryPullRequest ¶
func (cq *CommitsQuery) QueryPullRequest() *PullRequestQuery
QueryPullRequest chains the current query on the "pull_request" edge.
func (*CommitsQuery) Select ¶
func (cq *CommitsQuery) Select(fields ...string) *CommitsSelect
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 {
GithubID string `json:"github_id,omitempty"`
}
client.Commits.Query().
Select(commits.FieldGithubID).
Scan(ctx, &v)
func (*CommitsQuery) Unique ¶
func (cq *CommitsQuery) Unique(unique bool) *CommitsQuery
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 (*CommitsQuery) Where ¶
func (cq *CommitsQuery) Where(ps ...predicate.Commits) *CommitsQuery
Where adds a new predicate for the CommitsQuery builder.
func (*CommitsQuery) WithPullRequest ¶
func (cq *CommitsQuery) WithPullRequest(opts ...func(*PullRequestQuery)) *CommitsQuery
WithPullRequest tells the query-builder to eager-load the nodes that are connected to the "pull_request" edge. The optional arguments are used to configure the query builder of the edge.
type CommitsSelect ¶
type CommitsSelect struct {
*CommitsQuery
// contains filtered or unexported fields
}
CommitsSelect is the builder for selecting fields of Commits entities.
func (*CommitsSelect) Aggregate ¶
func (cs *CommitsSelect) Aggregate(fns ...AggregateFunc) *CommitsSelect
Aggregate adds the given aggregation functions to the selector query.
func (*CommitsSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*CommitsSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*CommitsSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*CommitsSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*CommitsSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*CommitsSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*CommitsSelect) Scan ¶
func (cs *CommitsSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*CommitsSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type CommitsUpdate ¶
type CommitsUpdate struct {
// contains filtered or unexported fields
}
CommitsUpdate is the builder for updating Commits entities.
func (*CommitsUpdate) AddAdditions ¶
func (cu *CommitsUpdate) AddAdditions(i int64) *CommitsUpdate
AddAdditions adds i to the "additions" field.
func (*CommitsUpdate) AddChangeFiles ¶
func (cu *CommitsUpdate) AddChangeFiles(i int64) *CommitsUpdate
AddChangeFiles adds i to the "change_files" field.
func (*CommitsUpdate) AddDeletions ¶
func (cu *CommitsUpdate) AddDeletions(i int64) *CommitsUpdate
AddDeletions adds i to the "deletions" field.
func (*CommitsUpdate) ClearPullRequest ¶
func (cu *CommitsUpdate) ClearPullRequest() *CommitsUpdate
ClearPullRequest clears the "pull_request" edge to the PullRequest entity.
func (*CommitsUpdate) ClearPushedAt ¶
func (cu *CommitsUpdate) ClearPushedAt() *CommitsUpdate
ClearPushedAt clears the value of the "pushed_at" field.
func (*CommitsUpdate) Exec ¶
func (cu *CommitsUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*CommitsUpdate) ExecX ¶
func (cu *CommitsUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CommitsUpdate) Mutation ¶
func (cu *CommitsUpdate) Mutation() *CommitsMutation
Mutation returns the CommitsMutation object of the builder.
func (*CommitsUpdate) Save ¶
func (cu *CommitsUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*CommitsUpdate) SaveX ¶
func (cu *CommitsUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*CommitsUpdate) SetAdditions ¶
func (cu *CommitsUpdate) SetAdditions(i int64) *CommitsUpdate
SetAdditions sets the "additions" field.
func (*CommitsUpdate) SetChangeFiles ¶
func (cu *CommitsUpdate) SetChangeFiles(i int64) *CommitsUpdate
SetChangeFiles sets the "change_files" field.
func (*CommitsUpdate) SetCommittedAt ¶
func (cu *CommitsUpdate) SetCommittedAt(t time.Time) *CommitsUpdate
SetCommittedAt sets the "committed_at" field.
func (*CommitsUpdate) SetDeletions ¶
func (cu *CommitsUpdate) SetDeletions(i int64) *CommitsUpdate
SetDeletions sets the "deletions" field.
func (*CommitsUpdate) SetGithubID ¶
func (cu *CommitsUpdate) SetGithubID(s string) *CommitsUpdate
SetGithubID sets the "github_id" field.
func (*CommitsUpdate) SetMessage ¶
func (cu *CommitsUpdate) SetMessage(s string) *CommitsUpdate
SetMessage sets the "message" field.
func (*CommitsUpdate) SetNillableCommittedAt ¶
func (cu *CommitsUpdate) SetNillableCommittedAt(t *time.Time) *CommitsUpdate
SetNillableCommittedAt sets the "committed_at" field if the given value is not nil.
func (*CommitsUpdate) SetNillablePullRequestID ¶
func (cu *CommitsUpdate) SetNillablePullRequestID(id *uuid.UUID) *CommitsUpdate
SetNillablePullRequestID sets the "pull_request" edge to the PullRequest entity by ID if the given value is not nil.
func (*CommitsUpdate) SetNillablePushedAt ¶
func (cu *CommitsUpdate) SetNillablePushedAt(t *time.Time) *CommitsUpdate
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*CommitsUpdate) SetPullRequest ¶
func (cu *CommitsUpdate) SetPullRequest(p *PullRequest) *CommitsUpdate
SetPullRequest sets the "pull_request" edge to the PullRequest entity.
func (*CommitsUpdate) SetPullRequestID ¶
func (cu *CommitsUpdate) SetPullRequestID(id uuid.UUID) *CommitsUpdate
SetPullRequestID sets the "pull_request" edge to the PullRequest entity by ID.
func (*CommitsUpdate) SetPushedAt ¶
func (cu *CommitsUpdate) SetPushedAt(t time.Time) *CommitsUpdate
SetPushedAt sets the "pushed_at" field.
func (*CommitsUpdate) Where ¶
func (cu *CommitsUpdate) Where(ps ...predicate.Commits) *CommitsUpdate
Where appends a list predicates to the CommitsUpdate builder.
type CommitsUpdateOne ¶
type CommitsUpdateOne struct {
// contains filtered or unexported fields
}
CommitsUpdateOne is the builder for updating a single Commits entity.
func (*CommitsUpdateOne) AddAdditions ¶
func (cuo *CommitsUpdateOne) AddAdditions(i int64) *CommitsUpdateOne
AddAdditions adds i to the "additions" field.
func (*CommitsUpdateOne) AddChangeFiles ¶
func (cuo *CommitsUpdateOne) AddChangeFiles(i int64) *CommitsUpdateOne
AddChangeFiles adds i to the "change_files" field.
func (*CommitsUpdateOne) AddDeletions ¶
func (cuo *CommitsUpdateOne) AddDeletions(i int64) *CommitsUpdateOne
AddDeletions adds i to the "deletions" field.
func (*CommitsUpdateOne) ClearPullRequest ¶
func (cuo *CommitsUpdateOne) ClearPullRequest() *CommitsUpdateOne
ClearPullRequest clears the "pull_request" edge to the PullRequest entity.
func (*CommitsUpdateOne) ClearPushedAt ¶
func (cuo *CommitsUpdateOne) ClearPushedAt() *CommitsUpdateOne
ClearPushedAt clears the value of the "pushed_at" field.
func (*CommitsUpdateOne) Exec ¶
func (cuo *CommitsUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*CommitsUpdateOne) ExecX ¶
func (cuo *CommitsUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*CommitsUpdateOne) Mutation ¶
func (cuo *CommitsUpdateOne) Mutation() *CommitsMutation
Mutation returns the CommitsMutation object of the builder.
func (*CommitsUpdateOne) Save ¶
func (cuo *CommitsUpdateOne) Save(ctx context.Context) (*Commits, error)
Save executes the query and returns the updated Commits entity.
func (*CommitsUpdateOne) SaveX ¶
func (cuo *CommitsUpdateOne) SaveX(ctx context.Context) *Commits
SaveX is like Save, but panics if an error occurs.
func (*CommitsUpdateOne) Select ¶
func (cuo *CommitsUpdateOne) Select(field string, fields ...string) *CommitsUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*CommitsUpdateOne) SetAdditions ¶
func (cuo *CommitsUpdateOne) SetAdditions(i int64) *CommitsUpdateOne
SetAdditions sets the "additions" field.
func (*CommitsUpdateOne) SetChangeFiles ¶
func (cuo *CommitsUpdateOne) SetChangeFiles(i int64) *CommitsUpdateOne
SetChangeFiles sets the "change_files" field.
func (*CommitsUpdateOne) SetCommittedAt ¶
func (cuo *CommitsUpdateOne) SetCommittedAt(t time.Time) *CommitsUpdateOne
SetCommittedAt sets the "committed_at" field.
func (*CommitsUpdateOne) SetDeletions ¶
func (cuo *CommitsUpdateOne) SetDeletions(i int64) *CommitsUpdateOne
SetDeletions sets the "deletions" field.
func (*CommitsUpdateOne) SetGithubID ¶
func (cuo *CommitsUpdateOne) SetGithubID(s string) *CommitsUpdateOne
SetGithubID sets the "github_id" field.
func (*CommitsUpdateOne) SetMessage ¶
func (cuo *CommitsUpdateOne) SetMessage(s string) *CommitsUpdateOne
SetMessage sets the "message" field.
func (*CommitsUpdateOne) SetNillableCommittedAt ¶
func (cuo *CommitsUpdateOne) SetNillableCommittedAt(t *time.Time) *CommitsUpdateOne
SetNillableCommittedAt sets the "committed_at" field if the given value is not nil.
func (*CommitsUpdateOne) SetNillablePullRequestID ¶
func (cuo *CommitsUpdateOne) SetNillablePullRequestID(id *uuid.UUID) *CommitsUpdateOne
SetNillablePullRequestID sets the "pull_request" edge to the PullRequest entity by ID if the given value is not nil.
func (*CommitsUpdateOne) SetNillablePushedAt ¶
func (cuo *CommitsUpdateOne) SetNillablePushedAt(t *time.Time) *CommitsUpdateOne
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*CommitsUpdateOne) SetPullRequest ¶
func (cuo *CommitsUpdateOne) SetPullRequest(p *PullRequest) *CommitsUpdateOne
SetPullRequest sets the "pull_request" edge to the PullRequest entity.
func (*CommitsUpdateOne) SetPullRequestID ¶
func (cuo *CommitsUpdateOne) SetPullRequestID(id uuid.UUID) *CommitsUpdateOne
SetPullRequestID sets the "pull_request" edge to the PullRequest entity by ID.
func (*CommitsUpdateOne) SetPushedAt ¶
func (cuo *CommitsUpdateOne) SetPushedAt(t time.Time) *CommitsUpdateOne
SetPushedAt sets the "pushed_at" field.
func (*CommitsUpdateOne) Where ¶
func (cuo *CommitsUpdateOne) Where(ps ...predicate.Commits) *CommitsUpdateOne
Where appends a list predicates to the CommitsUpdate builder.
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type Issue ¶
type Issue struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// GithubID holds the value of the "github_id" field.
GithubID string `json:"github_id,omitempty"`
// Title holds the value of the "title" field.
Title string `json:"title,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"`
// LastEditedAt holds the value of the "last_edited_at" field.
LastEditedAt time.Time `json:"last_edited_at,omitempty"`
// ClosedAt holds the value of the "closed_at" field.
ClosedAt time.Time `json:"closed_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the IssueQuery when eager-loading is set.
Edges IssueEdges `json:"edges"`
// contains filtered or unexported fields
}
Issue is the model entity for the Issue schema.
func (*Issue) QueryRepository ¶
func (i *Issue) QueryRepository() *RepositoryQuery
QueryRepository queries the "repository" edge of the Issue entity.
func (*Issue) Unwrap ¶
Unwrap unwraps the Issue 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 (*Issue) Update ¶
func (i *Issue) Update() *IssueUpdateOne
Update returns a builder for updating this Issue. Note that you need to call Issue.Unwrap() before calling this method if this Issue was returned from a transaction, and the transaction was committed or rolled back.
type IssueClient ¶
type IssueClient struct {
// contains filtered or unexported fields
}
IssueClient is a client for the Issue schema.
func NewIssueClient ¶
func NewIssueClient(c config) *IssueClient
NewIssueClient returns a client for the Issue from the given config.
func (*IssueClient) Create ¶
func (c *IssueClient) Create() *IssueCreate
Create returns a builder for creating a Issue entity.
func (*IssueClient) CreateBulk ¶
func (c *IssueClient) CreateBulk(builders ...*IssueCreate) *IssueCreateBulk
CreateBulk returns a builder for creating a bulk of Issue entities.
func (*IssueClient) Delete ¶
func (c *IssueClient) Delete() *IssueDelete
Delete returns a delete builder for Issue.
func (*IssueClient) DeleteOne ¶
func (c *IssueClient) DeleteOne(i *Issue) *IssueDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*IssueClient) DeleteOneID ¶
func (c *IssueClient) DeleteOneID(id uuid.UUID) *IssueDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*IssueClient) Intercept ¶
func (c *IssueClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `issue.Intercept(f(g(h())))`.
func (*IssueClient) Interceptors ¶
func (c *IssueClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*IssueClient) Query ¶
func (c *IssueClient) Query() *IssueQuery
Query returns a query builder for Issue.
func (*IssueClient) QueryRepository ¶
func (c *IssueClient) QueryRepository(i *Issue) *RepositoryQuery
QueryRepository queries the repository edge of a Issue.
func (*IssueClient) Update ¶
func (c *IssueClient) Update() *IssueUpdate
Update returns an update builder for Issue.
func (*IssueClient) UpdateOne ¶
func (c *IssueClient) UpdateOne(i *Issue) *IssueUpdateOne
UpdateOne returns an update builder for the given entity.
func (*IssueClient) UpdateOneID ¶
func (c *IssueClient) UpdateOneID(id uuid.UUID) *IssueUpdateOne
UpdateOneID returns an update builder for the given id.
func (*IssueClient) Use ¶
func (c *IssueClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `issue.Hooks(f(g(h())))`.
type IssueCreate ¶
type IssueCreate struct {
// contains filtered or unexported fields
}
IssueCreate is the builder for creating a Issue entity.
func (*IssueCreate) Exec ¶
func (ic *IssueCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*IssueCreate) ExecX ¶
func (ic *IssueCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IssueCreate) Mutation ¶
func (ic *IssueCreate) Mutation() *IssueMutation
Mutation returns the IssueMutation object of the builder.
func (*IssueCreate) Save ¶
func (ic *IssueCreate) Save(ctx context.Context) (*Issue, error)
Save creates the Issue in the database.
func (*IssueCreate) SaveX ¶
func (ic *IssueCreate) SaveX(ctx context.Context) *Issue
SaveX calls Save and panics if Save returns an error.
func (*IssueCreate) SetClosedAt ¶
func (ic *IssueCreate) SetClosedAt(t time.Time) *IssueCreate
SetClosedAt sets the "closed_at" field.
func (*IssueCreate) SetCreatedAt ¶
func (ic *IssueCreate) SetCreatedAt(t time.Time) *IssueCreate
SetCreatedAt sets the "created_at" field.
func (*IssueCreate) SetGithubID ¶
func (ic *IssueCreate) SetGithubID(s string) *IssueCreate
SetGithubID sets the "github_id" field.
func (*IssueCreate) SetID ¶
func (ic *IssueCreate) SetID(u uuid.UUID) *IssueCreate
SetID sets the "id" field.
func (*IssueCreate) SetLastEditedAt ¶
func (ic *IssueCreate) SetLastEditedAt(t time.Time) *IssueCreate
SetLastEditedAt sets the "last_edited_at" field.
func (*IssueCreate) SetNillableClosedAt ¶
func (ic *IssueCreate) SetNillableClosedAt(t *time.Time) *IssueCreate
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*IssueCreate) SetNillableCreatedAt ¶
func (ic *IssueCreate) SetNillableCreatedAt(t *time.Time) *IssueCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*IssueCreate) SetNillableID ¶
func (ic *IssueCreate) SetNillableID(u *uuid.UUID) *IssueCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*IssueCreate) SetNillableLastEditedAt ¶
func (ic *IssueCreate) SetNillableLastEditedAt(t *time.Time) *IssueCreate
SetNillableLastEditedAt sets the "last_edited_at" field if the given value is not nil.
func (*IssueCreate) SetNillableRepositoryID ¶
func (ic *IssueCreate) SetNillableRepositoryID(id *uuid.UUID) *IssueCreate
SetNillableRepositoryID sets the "repository" edge to the Repository entity by ID if the given value is not nil.
func (*IssueCreate) SetNillableUpdatedAt ¶
func (ic *IssueCreate) SetNillableUpdatedAt(t *time.Time) *IssueCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*IssueCreate) SetRepository ¶
func (ic *IssueCreate) SetRepository(r *Repository) *IssueCreate
SetRepository sets the "repository" edge to the Repository entity.
func (*IssueCreate) SetRepositoryID ¶
func (ic *IssueCreate) SetRepositoryID(id uuid.UUID) *IssueCreate
SetRepositoryID sets the "repository" edge to the Repository entity by ID.
func (*IssueCreate) SetTitle ¶
func (ic *IssueCreate) SetTitle(s string) *IssueCreate
SetTitle sets the "title" field.
func (*IssueCreate) SetUpdatedAt ¶
func (ic *IssueCreate) SetUpdatedAt(t time.Time) *IssueCreate
SetUpdatedAt sets the "updated_at" field.
type IssueCreateBulk ¶
type IssueCreateBulk struct {
// contains filtered or unexported fields
}
IssueCreateBulk is the builder for creating many Issue entities in bulk.
func (*IssueCreateBulk) Exec ¶
func (icb *IssueCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*IssueCreateBulk) ExecX ¶
func (icb *IssueCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type IssueDelete ¶
type IssueDelete struct {
// contains filtered or unexported fields
}
IssueDelete is the builder for deleting a Issue entity.
func (*IssueDelete) Exec ¶
func (id *IssueDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*IssueDelete) ExecX ¶
func (id *IssueDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*IssueDelete) Where ¶
func (id *IssueDelete) Where(ps ...predicate.Issue) *IssueDelete
Where appends a list predicates to the IssueDelete builder.
type IssueDeleteOne ¶
type IssueDeleteOne struct {
// contains filtered or unexported fields
}
IssueDeleteOne is the builder for deleting a single Issue entity.
func (*IssueDeleteOne) Exec ¶
func (ido *IssueDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*IssueDeleteOne) ExecX ¶
func (ido *IssueDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IssueDeleteOne) Where ¶
func (ido *IssueDeleteOne) Where(ps ...predicate.Issue) *IssueDeleteOne
Where appends a list predicates to the IssueDelete builder.
type IssueEdges ¶
type IssueEdges struct {
// Repository holds the value of the repository edge.
Repository *Repository `json:"repository,omitempty"`
// contains filtered or unexported fields
}
IssueEdges holds the relations/edges for other nodes in the graph.
func (IssueEdges) RepositoryOrErr ¶
func (e IssueEdges) RepositoryOrErr() (*Repository, error)
RepositoryOrErr returns the Repository value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type IssueGroupBy ¶
type IssueGroupBy struct {
// contains filtered or unexported fields
}
IssueGroupBy is the group-by builder for Issue entities.
func (*IssueGroupBy) Aggregate ¶
func (igb *IssueGroupBy) Aggregate(fns ...AggregateFunc) *IssueGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*IssueGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IssueGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IssueGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IssueGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IssueGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IssueGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IssueGroupBy) Scan ¶
func (igb *IssueGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IssueGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type IssueMutation ¶
type IssueMutation struct {
// contains filtered or unexported fields
}
IssueMutation represents an operation that mutates the Issue nodes in the graph.
func (*IssueMutation) AddField ¶
func (m *IssueMutation) 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 (*IssueMutation) AddedEdges ¶
func (m *IssueMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*IssueMutation) AddedField ¶
func (m *IssueMutation) 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 (*IssueMutation) AddedFields ¶
func (m *IssueMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*IssueMutation) AddedIDs ¶
func (m *IssueMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*IssueMutation) ClearClosedAt ¶
func (m *IssueMutation) ClearClosedAt()
ClearClosedAt clears the value of the "closed_at" field.
func (*IssueMutation) ClearEdge ¶
func (m *IssueMutation) 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 (*IssueMutation) ClearField ¶
func (m *IssueMutation) 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 (*IssueMutation) ClearLastEditedAt ¶
func (m *IssueMutation) ClearLastEditedAt()
ClearLastEditedAt clears the value of the "last_edited_at" field.
func (*IssueMutation) ClearRepository ¶
func (m *IssueMutation) ClearRepository()
ClearRepository clears the "repository" edge to the Repository entity.
func (*IssueMutation) ClearedEdges ¶
func (m *IssueMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*IssueMutation) ClearedFields ¶
func (m *IssueMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (IssueMutation) Client ¶
func (m IssueMutation) 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 (*IssueMutation) ClosedAt ¶
func (m *IssueMutation) ClosedAt() (r time.Time, exists bool)
ClosedAt returns the value of the "closed_at" field in the mutation.
func (*IssueMutation) ClosedAtCleared ¶
func (m *IssueMutation) ClosedAtCleared() bool
ClosedAtCleared returns if the "closed_at" field was cleared in this mutation.
func (*IssueMutation) CreatedAt ¶
func (m *IssueMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*IssueMutation) EdgeCleared ¶
func (m *IssueMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*IssueMutation) Field ¶
func (m *IssueMutation) 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 (*IssueMutation) FieldCleared ¶
func (m *IssueMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*IssueMutation) Fields ¶
func (m *IssueMutation) 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 (*IssueMutation) GithubID ¶
func (m *IssueMutation) GithubID() (r string, exists bool)
GithubID returns the value of the "github_id" field in the mutation.
func (*IssueMutation) ID ¶
func (m *IssueMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*IssueMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*IssueMutation) LastEditedAt ¶
func (m *IssueMutation) LastEditedAt() (r time.Time, exists bool)
LastEditedAt returns the value of the "last_edited_at" field in the mutation.
func (*IssueMutation) LastEditedAtCleared ¶
func (m *IssueMutation) LastEditedAtCleared() bool
LastEditedAtCleared returns if the "last_edited_at" field was cleared in this mutation.
func (*IssueMutation) OldClosedAt ¶
OldClosedAt returns the old "closed_at" field's value of the Issue entity. If the Issue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*IssueMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Issue entity. If the Issue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*IssueMutation) 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 (*IssueMutation) OldGithubID ¶
func (m *IssueMutation) OldGithubID(ctx context.Context) (v string, err error)
OldGithubID returns the old "github_id" field's value of the Issue entity. If the Issue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*IssueMutation) OldLastEditedAt ¶
OldLastEditedAt returns the old "last_edited_at" field's value of the Issue entity. If the Issue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*IssueMutation) OldTitle ¶
func (m *IssueMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the Issue entity. If the Issue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*IssueMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Issue entity. If the Issue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*IssueMutation) RemovedEdges ¶
func (m *IssueMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*IssueMutation) RemovedIDs ¶
func (m *IssueMutation) 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 (*IssueMutation) RepositoryCleared ¶
func (m *IssueMutation) RepositoryCleared() bool
RepositoryCleared reports if the "repository" edge to the Repository entity was cleared.
func (*IssueMutation) RepositoryID ¶
func (m *IssueMutation) RepositoryID() (id uuid.UUID, exists bool)
RepositoryID returns the "repository" edge ID in the mutation.
func (*IssueMutation) RepositoryIDs ¶
func (m *IssueMutation) RepositoryIDs() (ids []uuid.UUID)
RepositoryIDs returns the "repository" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RepositoryID instead. It exists only for internal usage by the builders.
func (*IssueMutation) ResetClosedAt ¶
func (m *IssueMutation) ResetClosedAt()
ResetClosedAt resets all changes to the "closed_at" field.
func (*IssueMutation) ResetCreatedAt ¶
func (m *IssueMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*IssueMutation) ResetEdge ¶
func (m *IssueMutation) 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 (*IssueMutation) ResetField ¶
func (m *IssueMutation) 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 (*IssueMutation) ResetGithubID ¶
func (m *IssueMutation) ResetGithubID()
ResetGithubID resets all changes to the "github_id" field.
func (*IssueMutation) ResetLastEditedAt ¶
func (m *IssueMutation) ResetLastEditedAt()
ResetLastEditedAt resets all changes to the "last_edited_at" field.
func (*IssueMutation) ResetRepository ¶
func (m *IssueMutation) ResetRepository()
ResetRepository resets all changes to the "repository" edge.
func (*IssueMutation) ResetTitle ¶
func (m *IssueMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*IssueMutation) ResetUpdatedAt ¶
func (m *IssueMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*IssueMutation) SetClosedAt ¶
func (m *IssueMutation) SetClosedAt(t time.Time)
SetClosedAt sets the "closed_at" field.
func (*IssueMutation) SetCreatedAt ¶
func (m *IssueMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*IssueMutation) SetField ¶
func (m *IssueMutation) 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 (*IssueMutation) SetGithubID ¶
func (m *IssueMutation) SetGithubID(s string)
SetGithubID sets the "github_id" field.
func (*IssueMutation) SetID ¶
func (m *IssueMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Issue entities.
func (*IssueMutation) SetLastEditedAt ¶
func (m *IssueMutation) SetLastEditedAt(t time.Time)
SetLastEditedAt sets the "last_edited_at" field.
func (*IssueMutation) SetOp ¶
func (m *IssueMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*IssueMutation) SetRepositoryID ¶
func (m *IssueMutation) SetRepositoryID(id uuid.UUID)
SetRepositoryID sets the "repository" edge to the Repository entity by id.
func (*IssueMutation) SetTitle ¶
func (m *IssueMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*IssueMutation) SetUpdatedAt ¶
func (m *IssueMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*IssueMutation) Title ¶
func (m *IssueMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (IssueMutation) Tx ¶
func (m IssueMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*IssueMutation) Type ¶
func (m *IssueMutation) Type() string
Type returns the node type of this mutation (Issue).
func (*IssueMutation) UpdatedAt ¶
func (m *IssueMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*IssueMutation) Where ¶
func (m *IssueMutation) Where(ps ...predicate.Issue)
Where appends a list predicates to the IssueMutation builder.
func (*IssueMutation) WhereP ¶
func (m *IssueMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the IssueMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type IssueQuery ¶
type IssueQuery struct {
// contains filtered or unexported fields
}
IssueQuery is the builder for querying Issue entities.
func (*IssueQuery) Aggregate ¶
func (iq *IssueQuery) Aggregate(fns ...AggregateFunc) *IssueSelect
Aggregate returns a IssueSelect configured with the given aggregations.
func (*IssueQuery) All ¶
func (iq *IssueQuery) All(ctx context.Context) ([]*Issue, error)
All executes the query and returns a list of Issues.
func (*IssueQuery) AllX ¶
func (iq *IssueQuery) AllX(ctx context.Context) []*Issue
AllX is like All, but panics if an error occurs.
func (*IssueQuery) Clone ¶
func (iq *IssueQuery) Clone() *IssueQuery
Clone returns a duplicate of the IssueQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*IssueQuery) Count ¶
func (iq *IssueQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*IssueQuery) CountX ¶
func (iq *IssueQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*IssueQuery) Exist ¶
func (iq *IssueQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*IssueQuery) ExistX ¶
func (iq *IssueQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*IssueQuery) First ¶
func (iq *IssueQuery) First(ctx context.Context) (*Issue, error)
First returns the first Issue entity from the query. Returns a *NotFoundError when no Issue was found.
func (*IssueQuery) FirstID ¶
FirstID returns the first Issue ID from the query. Returns a *NotFoundError when no Issue ID was found.
func (*IssueQuery) FirstIDX ¶
func (iq *IssueQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*IssueQuery) FirstX ¶
func (iq *IssueQuery) FirstX(ctx context.Context) *Issue
FirstX is like First, but panics if an error occurs.
func (*IssueQuery) GroupBy ¶
func (iq *IssueQuery) GroupBy(field string, fields ...string) *IssueGroupBy
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 {
GithubID string `json:"github_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.Issue.Query().
GroupBy(issue.FieldGithubID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*IssueQuery) IDsX ¶
func (iq *IssueQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*IssueQuery) Limit ¶
func (iq *IssueQuery) Limit(limit int) *IssueQuery
Limit the number of records to be returned by this query.
func (*IssueQuery) Offset ¶
func (iq *IssueQuery) Offset(offset int) *IssueQuery
Offset to start from.
func (*IssueQuery) Only ¶
func (iq *IssueQuery) Only(ctx context.Context) (*Issue, error)
Only returns a single Issue entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Issue entity is found. Returns a *NotFoundError when no Issue entities are found.
func (*IssueQuery) OnlyID ¶
OnlyID is like Only, but returns the only Issue ID in the query. Returns a *NotSingularError when more than one Issue ID is found. Returns a *NotFoundError when no entities are found.
func (*IssueQuery) OnlyIDX ¶
func (iq *IssueQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*IssueQuery) OnlyX ¶
func (iq *IssueQuery) OnlyX(ctx context.Context) *Issue
OnlyX is like Only, but panics if an error occurs.
func (*IssueQuery) Order ¶
func (iq *IssueQuery) Order(o ...OrderFunc) *IssueQuery
Order specifies how the records should be ordered.
func (*IssueQuery) QueryRepository ¶
func (iq *IssueQuery) QueryRepository() *RepositoryQuery
QueryRepository chains the current query on the "repository" edge.
func (*IssueQuery) Select ¶
func (iq *IssueQuery) Select(fields ...string) *IssueSelect
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 {
GithubID string `json:"github_id,omitempty"`
}
client.Issue.Query().
Select(issue.FieldGithubID).
Scan(ctx, &v)
func (*IssueQuery) Unique ¶
func (iq *IssueQuery) Unique(unique bool) *IssueQuery
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 (*IssueQuery) Where ¶
func (iq *IssueQuery) Where(ps ...predicate.Issue) *IssueQuery
Where adds a new predicate for the IssueQuery builder.
func (*IssueQuery) WithRepository ¶
func (iq *IssueQuery) WithRepository(opts ...func(*RepositoryQuery)) *IssueQuery
WithRepository tells the query-builder to eager-load the nodes that are connected to the "repository" edge. The optional arguments are used to configure the query builder of the edge.
type IssueSelect ¶
type IssueSelect struct {
*IssueQuery
// contains filtered or unexported fields
}
IssueSelect is the builder for selecting fields of Issue entities.
func (*IssueSelect) Aggregate ¶
func (is *IssueSelect) Aggregate(fns ...AggregateFunc) *IssueSelect
Aggregate adds the given aggregation functions to the selector query.
func (*IssueSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*IssueSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*IssueSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*IssueSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*IssueSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*IssueSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*IssueSelect) Scan ¶
func (is *IssueSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*IssueSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type IssueUpdate ¶
type IssueUpdate struct {
// contains filtered or unexported fields
}
IssueUpdate is the builder for updating Issue entities.
func (*IssueUpdate) ClearClosedAt ¶
func (iu *IssueUpdate) ClearClosedAt() *IssueUpdate
ClearClosedAt clears the value of the "closed_at" field.
func (*IssueUpdate) ClearLastEditedAt ¶
func (iu *IssueUpdate) ClearLastEditedAt() *IssueUpdate
ClearLastEditedAt clears the value of the "last_edited_at" field.
func (*IssueUpdate) ClearRepository ¶
func (iu *IssueUpdate) ClearRepository() *IssueUpdate
ClearRepository clears the "repository" edge to the Repository entity.
func (*IssueUpdate) Exec ¶
func (iu *IssueUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*IssueUpdate) ExecX ¶
func (iu *IssueUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IssueUpdate) Mutation ¶
func (iu *IssueUpdate) Mutation() *IssueMutation
Mutation returns the IssueMutation object of the builder.
func (*IssueUpdate) Save ¶
func (iu *IssueUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*IssueUpdate) SaveX ¶
func (iu *IssueUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*IssueUpdate) SetClosedAt ¶
func (iu *IssueUpdate) SetClosedAt(t time.Time) *IssueUpdate
SetClosedAt sets the "closed_at" field.
func (*IssueUpdate) SetCreatedAt ¶
func (iu *IssueUpdate) SetCreatedAt(t time.Time) *IssueUpdate
SetCreatedAt sets the "created_at" field.
func (*IssueUpdate) SetGithubID ¶
func (iu *IssueUpdate) SetGithubID(s string) *IssueUpdate
SetGithubID sets the "github_id" field.
func (*IssueUpdate) SetLastEditedAt ¶
func (iu *IssueUpdate) SetLastEditedAt(t time.Time) *IssueUpdate
SetLastEditedAt sets the "last_edited_at" field.
func (*IssueUpdate) SetNillableClosedAt ¶
func (iu *IssueUpdate) SetNillableClosedAt(t *time.Time) *IssueUpdate
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*IssueUpdate) SetNillableCreatedAt ¶
func (iu *IssueUpdate) SetNillableCreatedAt(t *time.Time) *IssueUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*IssueUpdate) SetNillableLastEditedAt ¶
func (iu *IssueUpdate) SetNillableLastEditedAt(t *time.Time) *IssueUpdate
SetNillableLastEditedAt sets the "last_edited_at" field if the given value is not nil.
func (*IssueUpdate) SetNillableRepositoryID ¶
func (iu *IssueUpdate) SetNillableRepositoryID(id *uuid.UUID) *IssueUpdate
SetNillableRepositoryID sets the "repository" edge to the Repository entity by ID if the given value is not nil.
func (*IssueUpdate) SetNillableUpdatedAt ¶
func (iu *IssueUpdate) SetNillableUpdatedAt(t *time.Time) *IssueUpdate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*IssueUpdate) SetRepository ¶
func (iu *IssueUpdate) SetRepository(r *Repository) *IssueUpdate
SetRepository sets the "repository" edge to the Repository entity.
func (*IssueUpdate) SetRepositoryID ¶
func (iu *IssueUpdate) SetRepositoryID(id uuid.UUID) *IssueUpdate
SetRepositoryID sets the "repository" edge to the Repository entity by ID.
func (*IssueUpdate) SetTitle ¶
func (iu *IssueUpdate) SetTitle(s string) *IssueUpdate
SetTitle sets the "title" field.
func (*IssueUpdate) SetUpdatedAt ¶
func (iu *IssueUpdate) SetUpdatedAt(t time.Time) *IssueUpdate
SetUpdatedAt sets the "updated_at" field.
func (*IssueUpdate) Where ¶
func (iu *IssueUpdate) Where(ps ...predicate.Issue) *IssueUpdate
Where appends a list predicates to the IssueUpdate builder.
type IssueUpdateOne ¶
type IssueUpdateOne struct {
// contains filtered or unexported fields
}
IssueUpdateOne is the builder for updating a single Issue entity.
func (*IssueUpdateOne) ClearClosedAt ¶
func (iuo *IssueUpdateOne) ClearClosedAt() *IssueUpdateOne
ClearClosedAt clears the value of the "closed_at" field.
func (*IssueUpdateOne) ClearLastEditedAt ¶
func (iuo *IssueUpdateOne) ClearLastEditedAt() *IssueUpdateOne
ClearLastEditedAt clears the value of the "last_edited_at" field.
func (*IssueUpdateOne) ClearRepository ¶
func (iuo *IssueUpdateOne) ClearRepository() *IssueUpdateOne
ClearRepository clears the "repository" edge to the Repository entity.
func (*IssueUpdateOne) Exec ¶
func (iuo *IssueUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*IssueUpdateOne) ExecX ¶
func (iuo *IssueUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*IssueUpdateOne) Mutation ¶
func (iuo *IssueUpdateOne) Mutation() *IssueMutation
Mutation returns the IssueMutation object of the builder.
func (*IssueUpdateOne) Save ¶
func (iuo *IssueUpdateOne) Save(ctx context.Context) (*Issue, error)
Save executes the query and returns the updated Issue entity.
func (*IssueUpdateOne) SaveX ¶
func (iuo *IssueUpdateOne) SaveX(ctx context.Context) *Issue
SaveX is like Save, but panics if an error occurs.
func (*IssueUpdateOne) Select ¶
func (iuo *IssueUpdateOne) Select(field string, fields ...string) *IssueUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*IssueUpdateOne) SetClosedAt ¶
func (iuo *IssueUpdateOne) SetClosedAt(t time.Time) *IssueUpdateOne
SetClosedAt sets the "closed_at" field.
func (*IssueUpdateOne) SetCreatedAt ¶
func (iuo *IssueUpdateOne) SetCreatedAt(t time.Time) *IssueUpdateOne
SetCreatedAt sets the "created_at" field.
func (*IssueUpdateOne) SetGithubID ¶
func (iuo *IssueUpdateOne) SetGithubID(s string) *IssueUpdateOne
SetGithubID sets the "github_id" field.
func (*IssueUpdateOne) SetLastEditedAt ¶
func (iuo *IssueUpdateOne) SetLastEditedAt(t time.Time) *IssueUpdateOne
SetLastEditedAt sets the "last_edited_at" field.
func (*IssueUpdateOne) SetNillableClosedAt ¶
func (iuo *IssueUpdateOne) SetNillableClosedAt(t *time.Time) *IssueUpdateOne
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*IssueUpdateOne) SetNillableCreatedAt ¶
func (iuo *IssueUpdateOne) SetNillableCreatedAt(t *time.Time) *IssueUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*IssueUpdateOne) SetNillableLastEditedAt ¶
func (iuo *IssueUpdateOne) SetNillableLastEditedAt(t *time.Time) *IssueUpdateOne
SetNillableLastEditedAt sets the "last_edited_at" field if the given value is not nil.
func (*IssueUpdateOne) SetNillableRepositoryID ¶
func (iuo *IssueUpdateOne) SetNillableRepositoryID(id *uuid.UUID) *IssueUpdateOne
SetNillableRepositoryID sets the "repository" edge to the Repository entity by ID if the given value is not nil.
func (*IssueUpdateOne) SetNillableUpdatedAt ¶
func (iuo *IssueUpdateOne) SetNillableUpdatedAt(t *time.Time) *IssueUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*IssueUpdateOne) SetRepository ¶
func (iuo *IssueUpdateOne) SetRepository(r *Repository) *IssueUpdateOne
SetRepository sets the "repository" edge to the Repository entity.
func (*IssueUpdateOne) SetRepositoryID ¶
func (iuo *IssueUpdateOne) SetRepositoryID(id uuid.UUID) *IssueUpdateOne
SetRepositoryID sets the "repository" edge to the Repository entity by ID.
func (*IssueUpdateOne) SetTitle ¶
func (iuo *IssueUpdateOne) SetTitle(s string) *IssueUpdateOne
SetTitle sets the "title" field.
func (*IssueUpdateOne) SetUpdatedAt ¶
func (iuo *IssueUpdateOne) SetUpdatedAt(t time.Time) *IssueUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*IssueUpdateOne) Where ¶
func (iuo *IssueUpdateOne) Where(ps ...predicate.Issue) *IssueUpdateOne
Where appends a list predicates to the IssueUpdate builder.
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 PullRequest ¶
type PullRequest struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// GithubID holds the value of the "github_id" field.
GithubID string `json:"github_id,omitempty"`
// Title holds the value of the "title" field.
Title string `json:"title,omitempty"`
// TotalCommits holds the value of the "total_commits" field.
TotalCommits int64 `json:"total_commits,omitempty"`
// コミット情報を取得したかどうか(0:未取得 1:取得済み)
GetCommit bool `json:"get_commit,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"`
// ClosedAt holds the value of the "closed_at" field.
ClosedAt time.Time `json:"closed_at,omitempty"`
// MergedAt holds the value of the "merged_at" field.
MergedAt time.Time `json:"merged_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the PullRequestQuery when eager-loading is set.
Edges PullRequestEdges `json:"edges"`
// contains filtered or unexported fields
}
PullRequest is the model entity for the PullRequest schema.
func (*PullRequest) QueryCommits ¶
func (pr *PullRequest) QueryCommits() *CommitsQuery
QueryCommits queries the "commits" edge of the PullRequest entity.
func (*PullRequest) QueryRepository ¶
func (pr *PullRequest) QueryRepository() *RepositoryQuery
QueryRepository queries the "repository" edge of the PullRequest entity.
func (*PullRequest) String ¶
func (pr *PullRequest) String() string
String implements the fmt.Stringer.
func (*PullRequest) Unwrap ¶
func (pr *PullRequest) Unwrap() *PullRequest
Unwrap unwraps the PullRequest 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 (*PullRequest) Update ¶
func (pr *PullRequest) Update() *PullRequestUpdateOne
Update returns a builder for updating this PullRequest. Note that you need to call PullRequest.Unwrap() before calling this method if this PullRequest was returned from a transaction, and the transaction was committed or rolled back.
type PullRequestClient ¶
type PullRequestClient struct {
// contains filtered or unexported fields
}
PullRequestClient is a client for the PullRequest schema.
func NewPullRequestClient ¶
func NewPullRequestClient(c config) *PullRequestClient
NewPullRequestClient returns a client for the PullRequest from the given config.
func (*PullRequestClient) Create ¶
func (c *PullRequestClient) Create() *PullRequestCreate
Create returns a builder for creating a PullRequest entity.
func (*PullRequestClient) CreateBulk ¶
func (c *PullRequestClient) CreateBulk(builders ...*PullRequestCreate) *PullRequestCreateBulk
CreateBulk returns a builder for creating a bulk of PullRequest entities.
func (*PullRequestClient) Delete ¶
func (c *PullRequestClient) Delete() *PullRequestDelete
Delete returns a delete builder for PullRequest.
func (*PullRequestClient) DeleteOne ¶
func (c *PullRequestClient) DeleteOne(pr *PullRequest) *PullRequestDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*PullRequestClient) DeleteOneID ¶
func (c *PullRequestClient) DeleteOneID(id uuid.UUID) *PullRequestDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*PullRequestClient) Get ¶
func (c *PullRequestClient) Get(ctx context.Context, id uuid.UUID) (*PullRequest, error)
Get returns a PullRequest entity by its id.
func (*PullRequestClient) GetX ¶
func (c *PullRequestClient) GetX(ctx context.Context, id uuid.UUID) *PullRequest
GetX is like Get, but panics if an error occurs.
func (*PullRequestClient) Hooks ¶
func (c *PullRequestClient) Hooks() []Hook
Hooks returns the client hooks.
func (*PullRequestClient) Intercept ¶
func (c *PullRequestClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `pullrequest.Intercept(f(g(h())))`.
func (*PullRequestClient) Interceptors ¶
func (c *PullRequestClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*PullRequestClient) Query ¶
func (c *PullRequestClient) Query() *PullRequestQuery
Query returns a query builder for PullRequest.
func (*PullRequestClient) QueryCommits ¶
func (c *PullRequestClient) QueryCommits(pr *PullRequest) *CommitsQuery
QueryCommits queries the commits edge of a PullRequest.
func (*PullRequestClient) QueryRepository ¶
func (c *PullRequestClient) QueryRepository(pr *PullRequest) *RepositoryQuery
QueryRepository queries the repository edge of a PullRequest.
func (*PullRequestClient) Update ¶
func (c *PullRequestClient) Update() *PullRequestUpdate
Update returns an update builder for PullRequest.
func (*PullRequestClient) UpdateOne ¶
func (c *PullRequestClient) UpdateOne(pr *PullRequest) *PullRequestUpdateOne
UpdateOne returns an update builder for the given entity.
func (*PullRequestClient) UpdateOneID ¶
func (c *PullRequestClient) UpdateOneID(id uuid.UUID) *PullRequestUpdateOne
UpdateOneID returns an update builder for the given id.
func (*PullRequestClient) Use ¶
func (c *PullRequestClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `pullrequest.Hooks(f(g(h())))`.
type PullRequestCreate ¶
type PullRequestCreate struct {
// contains filtered or unexported fields
}
PullRequestCreate is the builder for creating a PullRequest entity.
func (*PullRequestCreate) AddCommitIDs ¶
func (prc *PullRequestCreate) AddCommitIDs(ids ...uuid.UUID) *PullRequestCreate
AddCommitIDs adds the "commits" edge to the Commits entity by IDs.
func (*PullRequestCreate) AddCommits ¶
func (prc *PullRequestCreate) AddCommits(c ...*Commits) *PullRequestCreate
AddCommits adds the "commits" edges to the Commits entity.
func (*PullRequestCreate) Exec ¶
func (prc *PullRequestCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*PullRequestCreate) ExecX ¶
func (prc *PullRequestCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PullRequestCreate) Mutation ¶
func (prc *PullRequestCreate) Mutation() *PullRequestMutation
Mutation returns the PullRequestMutation object of the builder.
func (*PullRequestCreate) Save ¶
func (prc *PullRequestCreate) Save(ctx context.Context) (*PullRequest, error)
Save creates the PullRequest in the database.
func (*PullRequestCreate) SaveX ¶
func (prc *PullRequestCreate) SaveX(ctx context.Context) *PullRequest
SaveX calls Save and panics if Save returns an error.
func (*PullRequestCreate) SetClosedAt ¶
func (prc *PullRequestCreate) SetClosedAt(t time.Time) *PullRequestCreate
SetClosedAt sets the "closed_at" field.
func (*PullRequestCreate) SetCreatedAt ¶
func (prc *PullRequestCreate) SetCreatedAt(t time.Time) *PullRequestCreate
SetCreatedAt sets the "created_at" field.
func (*PullRequestCreate) SetGetCommit ¶
func (prc *PullRequestCreate) SetGetCommit(b bool) *PullRequestCreate
SetGetCommit sets the "get_commit" field.
func (*PullRequestCreate) SetGithubID ¶
func (prc *PullRequestCreate) SetGithubID(s string) *PullRequestCreate
SetGithubID sets the "github_id" field.
func (*PullRequestCreate) SetID ¶
func (prc *PullRequestCreate) SetID(u uuid.UUID) *PullRequestCreate
SetID sets the "id" field.
func (*PullRequestCreate) SetMergedAt ¶
func (prc *PullRequestCreate) SetMergedAt(t time.Time) *PullRequestCreate
SetMergedAt sets the "merged_at" field.
func (*PullRequestCreate) SetNillableClosedAt ¶
func (prc *PullRequestCreate) SetNillableClosedAt(t *time.Time) *PullRequestCreate
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*PullRequestCreate) SetNillableCreatedAt ¶
func (prc *PullRequestCreate) SetNillableCreatedAt(t *time.Time) *PullRequestCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*PullRequestCreate) SetNillableGetCommit ¶
func (prc *PullRequestCreate) SetNillableGetCommit(b *bool) *PullRequestCreate
SetNillableGetCommit sets the "get_commit" field if the given value is not nil.
func (*PullRequestCreate) SetNillableID ¶
func (prc *PullRequestCreate) SetNillableID(u *uuid.UUID) *PullRequestCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*PullRequestCreate) SetNillableMergedAt ¶
func (prc *PullRequestCreate) SetNillableMergedAt(t *time.Time) *PullRequestCreate
SetNillableMergedAt sets the "merged_at" field if the given value is not nil.
func (*PullRequestCreate) SetNillableRepositoryID ¶
func (prc *PullRequestCreate) SetNillableRepositoryID(id *uuid.UUID) *PullRequestCreate
SetNillableRepositoryID sets the "repository" edge to the Repository entity by ID if the given value is not nil.
func (*PullRequestCreate) SetNillableTotalCommits ¶
func (prc *PullRequestCreate) SetNillableTotalCommits(i *int64) *PullRequestCreate
SetNillableTotalCommits sets the "total_commits" field if the given value is not nil.
func (*PullRequestCreate) SetNillableUpdatedAt ¶
func (prc *PullRequestCreate) SetNillableUpdatedAt(t *time.Time) *PullRequestCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*PullRequestCreate) SetRepository ¶
func (prc *PullRequestCreate) SetRepository(r *Repository) *PullRequestCreate
SetRepository sets the "repository" edge to the Repository entity.
func (*PullRequestCreate) SetRepositoryID ¶
func (prc *PullRequestCreate) SetRepositoryID(id uuid.UUID) *PullRequestCreate
SetRepositoryID sets the "repository" edge to the Repository entity by ID.
func (*PullRequestCreate) SetTitle ¶
func (prc *PullRequestCreate) SetTitle(s string) *PullRequestCreate
SetTitle sets the "title" field.
func (*PullRequestCreate) SetTotalCommits ¶
func (prc *PullRequestCreate) SetTotalCommits(i int64) *PullRequestCreate
SetTotalCommits sets the "total_commits" field.
func (*PullRequestCreate) SetUpdatedAt ¶
func (prc *PullRequestCreate) SetUpdatedAt(t time.Time) *PullRequestCreate
SetUpdatedAt sets the "updated_at" field.
type PullRequestCreateBulk ¶
type PullRequestCreateBulk struct {
// contains filtered or unexported fields
}
PullRequestCreateBulk is the builder for creating many PullRequest entities in bulk.
func (*PullRequestCreateBulk) Exec ¶
func (prcb *PullRequestCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*PullRequestCreateBulk) ExecX ¶
func (prcb *PullRequestCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PullRequestCreateBulk) Save ¶
func (prcb *PullRequestCreateBulk) Save(ctx context.Context) ([]*PullRequest, error)
Save creates the PullRequest entities in the database.
func (*PullRequestCreateBulk) SaveX ¶
func (prcb *PullRequestCreateBulk) SaveX(ctx context.Context) []*PullRequest
SaveX is like Save, but panics if an error occurs.
type PullRequestDelete ¶
type PullRequestDelete struct {
// contains filtered or unexported fields
}
PullRequestDelete is the builder for deleting a PullRequest entity.
func (*PullRequestDelete) Exec ¶
func (prd *PullRequestDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*PullRequestDelete) ExecX ¶
func (prd *PullRequestDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*PullRequestDelete) Where ¶
func (prd *PullRequestDelete) Where(ps ...predicate.PullRequest) *PullRequestDelete
Where appends a list predicates to the PullRequestDelete builder.
type PullRequestDeleteOne ¶
type PullRequestDeleteOne struct {
// contains filtered or unexported fields
}
PullRequestDeleteOne is the builder for deleting a single PullRequest entity.
func (*PullRequestDeleteOne) Exec ¶
func (prdo *PullRequestDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*PullRequestDeleteOne) ExecX ¶
func (prdo *PullRequestDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PullRequestDeleteOne) Where ¶
func (prdo *PullRequestDeleteOne) Where(ps ...predicate.PullRequest) *PullRequestDeleteOne
Where appends a list predicates to the PullRequestDelete builder.
type PullRequestEdges ¶
type PullRequestEdges struct {
// Commits holds the value of the commits edge.
Commits []*Commits `json:"commits,omitempty"`
// Repository holds the value of the repository edge.
Repository *Repository `json:"repository,omitempty"`
// contains filtered or unexported fields
}
PullRequestEdges holds the relations/edges for other nodes in the graph.
func (PullRequestEdges) CommitsOrErr ¶
func (e PullRequestEdges) CommitsOrErr() ([]*Commits, error)
CommitsOrErr returns the Commits value or an error if the edge was not loaded in eager-loading.
func (PullRequestEdges) RepositoryOrErr ¶
func (e PullRequestEdges) RepositoryOrErr() (*Repository, error)
RepositoryOrErr returns the Repository value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type PullRequestGroupBy ¶
type PullRequestGroupBy struct {
// contains filtered or unexported fields
}
PullRequestGroupBy is the group-by builder for PullRequest entities.
func (*PullRequestGroupBy) Aggregate ¶
func (prgb *PullRequestGroupBy) Aggregate(fns ...AggregateFunc) *PullRequestGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*PullRequestGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PullRequestGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PullRequestGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PullRequestGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PullRequestGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PullRequestGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PullRequestGroupBy) Scan ¶
func (prgb *PullRequestGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*PullRequestGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type PullRequestMutation ¶
type PullRequestMutation struct {
// contains filtered or unexported fields
}
PullRequestMutation represents an operation that mutates the PullRequest nodes in the graph.
func (*PullRequestMutation) AddCommitIDs ¶
func (m *PullRequestMutation) AddCommitIDs(ids ...uuid.UUID)
AddCommitIDs adds the "commits" edge to the Commits entity by ids.
func (*PullRequestMutation) AddField ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) AddTotalCommits ¶
func (m *PullRequestMutation) AddTotalCommits(i int64)
AddTotalCommits adds i to the "total_commits" field.
func (*PullRequestMutation) AddedEdges ¶
func (m *PullRequestMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*PullRequestMutation) AddedField ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) AddedFields ¶
func (m *PullRequestMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*PullRequestMutation) AddedIDs ¶
func (m *PullRequestMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*PullRequestMutation) AddedTotalCommits ¶
func (m *PullRequestMutation) AddedTotalCommits() (r int64, exists bool)
AddedTotalCommits returns the value that was added to the "total_commits" field in this mutation.
func (*PullRequestMutation) ClearClosedAt ¶
func (m *PullRequestMutation) ClearClosedAt()
ClearClosedAt clears the value of the "closed_at" field.
func (*PullRequestMutation) ClearCommits ¶
func (m *PullRequestMutation) ClearCommits()
ClearCommits clears the "commits" edge to the Commits entity.
func (*PullRequestMutation) ClearEdge ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) ClearField ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) ClearMergedAt ¶
func (m *PullRequestMutation) ClearMergedAt()
ClearMergedAt clears the value of the "merged_at" field.
func (*PullRequestMutation) ClearRepository ¶
func (m *PullRequestMutation) ClearRepository()
ClearRepository clears the "repository" edge to the Repository entity.
func (*PullRequestMutation) ClearedEdges ¶
func (m *PullRequestMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*PullRequestMutation) ClearedFields ¶
func (m *PullRequestMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (PullRequestMutation) Client ¶
func (m PullRequestMutation) 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 (*PullRequestMutation) ClosedAt ¶
func (m *PullRequestMutation) ClosedAt() (r time.Time, exists bool)
ClosedAt returns the value of the "closed_at" field in the mutation.
func (*PullRequestMutation) ClosedAtCleared ¶
func (m *PullRequestMutation) ClosedAtCleared() bool
ClosedAtCleared returns if the "closed_at" field was cleared in this mutation.
func (*PullRequestMutation) CommitsCleared ¶
func (m *PullRequestMutation) CommitsCleared() bool
CommitsCleared reports if the "commits" edge to the Commits entity was cleared.
func (*PullRequestMutation) CommitsIDs ¶
func (m *PullRequestMutation) CommitsIDs() (ids []uuid.UUID)
CommitsIDs returns the "commits" edge IDs in the mutation.
func (*PullRequestMutation) CreatedAt ¶
func (m *PullRequestMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*PullRequestMutation) EdgeCleared ¶
func (m *PullRequestMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*PullRequestMutation) Field ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) FieldCleared ¶
func (m *PullRequestMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*PullRequestMutation) Fields ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) GetCommit ¶
func (m *PullRequestMutation) GetCommit() (r bool, exists bool)
GetCommit returns the value of the "get_commit" field in the mutation.
func (*PullRequestMutation) GithubID ¶
func (m *PullRequestMutation) GithubID() (r string, exists bool)
GithubID returns the value of the "github_id" field in the mutation.
func (*PullRequestMutation) ID ¶
func (m *PullRequestMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*PullRequestMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*PullRequestMutation) MergedAt ¶
func (m *PullRequestMutation) MergedAt() (r time.Time, exists bool)
MergedAt returns the value of the "merged_at" field in the mutation.
func (*PullRequestMutation) MergedAtCleared ¶
func (m *PullRequestMutation) MergedAtCleared() bool
MergedAtCleared returns if the "merged_at" field was cleared in this mutation.
func (*PullRequestMutation) OldClosedAt ¶
OldClosedAt returns the old "closed_at" field's value of the PullRequest entity. If the PullRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PullRequestMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the PullRequest entity. If the PullRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PullRequestMutation) 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 (*PullRequestMutation) OldGetCommit ¶
func (m *PullRequestMutation) OldGetCommit(ctx context.Context) (v bool, err error)
OldGetCommit returns the old "get_commit" field's value of the PullRequest entity. If the PullRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PullRequestMutation) OldGithubID ¶
func (m *PullRequestMutation) OldGithubID(ctx context.Context) (v string, err error)
OldGithubID returns the old "github_id" field's value of the PullRequest entity. If the PullRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PullRequestMutation) OldMergedAt ¶
OldMergedAt returns the old "merged_at" field's value of the PullRequest entity. If the PullRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PullRequestMutation) OldTitle ¶
func (m *PullRequestMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the PullRequest entity. If the PullRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PullRequestMutation) OldTotalCommits ¶
func (m *PullRequestMutation) OldTotalCommits(ctx context.Context) (v int64, err error)
OldTotalCommits returns the old "total_commits" field's value of the PullRequest entity. If the PullRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PullRequestMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the PullRequest entity. If the PullRequest object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PullRequestMutation) Op ¶
func (m *PullRequestMutation) Op() Op
Op returns the operation name.
func (*PullRequestMutation) RemoveCommitIDs ¶
func (m *PullRequestMutation) RemoveCommitIDs(ids ...uuid.UUID)
RemoveCommitIDs removes the "commits" edge to the Commits entity by IDs.
func (*PullRequestMutation) RemovedCommitsIDs ¶
func (m *PullRequestMutation) RemovedCommitsIDs() (ids []uuid.UUID)
RemovedCommits returns the removed IDs of the "commits" edge to the Commits entity.
func (*PullRequestMutation) RemovedEdges ¶
func (m *PullRequestMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*PullRequestMutation) RemovedIDs ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) RepositoryCleared ¶
func (m *PullRequestMutation) RepositoryCleared() bool
RepositoryCleared reports if the "repository" edge to the Repository entity was cleared.
func (*PullRequestMutation) RepositoryID ¶
func (m *PullRequestMutation) RepositoryID() (id uuid.UUID, exists bool)
RepositoryID returns the "repository" edge ID in the mutation.
func (*PullRequestMutation) RepositoryIDs ¶
func (m *PullRequestMutation) RepositoryIDs() (ids []uuid.UUID)
RepositoryIDs returns the "repository" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RepositoryID instead. It exists only for internal usage by the builders.
func (*PullRequestMutation) ResetClosedAt ¶
func (m *PullRequestMutation) ResetClosedAt()
ResetClosedAt resets all changes to the "closed_at" field.
func (*PullRequestMutation) ResetCommits ¶
func (m *PullRequestMutation) ResetCommits()
ResetCommits resets all changes to the "commits" edge.
func (*PullRequestMutation) ResetCreatedAt ¶
func (m *PullRequestMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*PullRequestMutation) ResetEdge ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) ResetField ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) ResetGetCommit ¶
func (m *PullRequestMutation) ResetGetCommit()
ResetGetCommit resets all changes to the "get_commit" field.
func (*PullRequestMutation) ResetGithubID ¶
func (m *PullRequestMutation) ResetGithubID()
ResetGithubID resets all changes to the "github_id" field.
func (*PullRequestMutation) ResetMergedAt ¶
func (m *PullRequestMutation) ResetMergedAt()
ResetMergedAt resets all changes to the "merged_at" field.
func (*PullRequestMutation) ResetRepository ¶
func (m *PullRequestMutation) ResetRepository()
ResetRepository resets all changes to the "repository" edge.
func (*PullRequestMutation) ResetTitle ¶
func (m *PullRequestMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*PullRequestMutation) ResetTotalCommits ¶
func (m *PullRequestMutation) ResetTotalCommits()
ResetTotalCommits resets all changes to the "total_commits" field.
func (*PullRequestMutation) ResetUpdatedAt ¶
func (m *PullRequestMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*PullRequestMutation) SetClosedAt ¶
func (m *PullRequestMutation) SetClosedAt(t time.Time)
SetClosedAt sets the "closed_at" field.
func (*PullRequestMutation) SetCreatedAt ¶
func (m *PullRequestMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*PullRequestMutation) SetField ¶
func (m *PullRequestMutation) 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 (*PullRequestMutation) SetGetCommit ¶
func (m *PullRequestMutation) SetGetCommit(b bool)
SetGetCommit sets the "get_commit" field.
func (*PullRequestMutation) SetGithubID ¶
func (m *PullRequestMutation) SetGithubID(s string)
SetGithubID sets the "github_id" field.
func (*PullRequestMutation) SetID ¶
func (m *PullRequestMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of PullRequest entities.
func (*PullRequestMutation) SetMergedAt ¶
func (m *PullRequestMutation) SetMergedAt(t time.Time)
SetMergedAt sets the "merged_at" field.
func (*PullRequestMutation) SetOp ¶
func (m *PullRequestMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*PullRequestMutation) SetRepositoryID ¶
func (m *PullRequestMutation) SetRepositoryID(id uuid.UUID)
SetRepositoryID sets the "repository" edge to the Repository entity by id.
func (*PullRequestMutation) SetTitle ¶
func (m *PullRequestMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*PullRequestMutation) SetTotalCommits ¶
func (m *PullRequestMutation) SetTotalCommits(i int64)
SetTotalCommits sets the "total_commits" field.
func (*PullRequestMutation) SetUpdatedAt ¶
func (m *PullRequestMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*PullRequestMutation) Title ¶
func (m *PullRequestMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (*PullRequestMutation) TotalCommits ¶
func (m *PullRequestMutation) TotalCommits() (r int64, exists bool)
TotalCommits returns the value of the "total_commits" field in the mutation.
func (PullRequestMutation) Tx ¶
func (m PullRequestMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*PullRequestMutation) Type ¶
func (m *PullRequestMutation) Type() string
Type returns the node type of this mutation (PullRequest).
func (*PullRequestMutation) UpdatedAt ¶
func (m *PullRequestMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*PullRequestMutation) Where ¶
func (m *PullRequestMutation) Where(ps ...predicate.PullRequest)
Where appends a list predicates to the PullRequestMutation builder.
func (*PullRequestMutation) WhereP ¶
func (m *PullRequestMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the PullRequestMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type PullRequestQuery ¶
type PullRequestQuery struct {
// contains filtered or unexported fields
}
PullRequestQuery is the builder for querying PullRequest entities.
func (*PullRequestQuery) Aggregate ¶
func (prq *PullRequestQuery) Aggregate(fns ...AggregateFunc) *PullRequestSelect
Aggregate returns a PullRequestSelect configured with the given aggregations.
func (*PullRequestQuery) All ¶
func (prq *PullRequestQuery) All(ctx context.Context) ([]*PullRequest, error)
All executes the query and returns a list of PullRequests.
func (*PullRequestQuery) AllX ¶
func (prq *PullRequestQuery) AllX(ctx context.Context) []*PullRequest
AllX is like All, but panics if an error occurs.
func (*PullRequestQuery) Clone ¶
func (prq *PullRequestQuery) Clone() *PullRequestQuery
Clone returns a duplicate of the PullRequestQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*PullRequestQuery) Count ¶
func (prq *PullRequestQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*PullRequestQuery) CountX ¶
func (prq *PullRequestQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*PullRequestQuery) Exist ¶
func (prq *PullRequestQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*PullRequestQuery) ExistX ¶
func (prq *PullRequestQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*PullRequestQuery) First ¶
func (prq *PullRequestQuery) First(ctx context.Context) (*PullRequest, error)
First returns the first PullRequest entity from the query. Returns a *NotFoundError when no PullRequest was found.
func (*PullRequestQuery) FirstID ¶
FirstID returns the first PullRequest ID from the query. Returns a *NotFoundError when no PullRequest ID was found.
func (*PullRequestQuery) FirstIDX ¶
func (prq *PullRequestQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*PullRequestQuery) FirstX ¶
func (prq *PullRequestQuery) FirstX(ctx context.Context) *PullRequest
FirstX is like First, but panics if an error occurs.
func (*PullRequestQuery) GroupBy ¶
func (prq *PullRequestQuery) GroupBy(field string, fields ...string) *PullRequestGroupBy
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 {
GithubID string `json:"github_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.PullRequest.Query().
GroupBy(pullrequest.FieldGithubID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*PullRequestQuery) IDsX ¶
func (prq *PullRequestQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*PullRequestQuery) Limit ¶
func (prq *PullRequestQuery) Limit(limit int) *PullRequestQuery
Limit the number of records to be returned by this query.
func (*PullRequestQuery) Offset ¶
func (prq *PullRequestQuery) Offset(offset int) *PullRequestQuery
Offset to start from.
func (*PullRequestQuery) Only ¶
func (prq *PullRequestQuery) Only(ctx context.Context) (*PullRequest, error)
Only returns a single PullRequest entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one PullRequest entity is found. Returns a *NotFoundError when no PullRequest entities are found.
func (*PullRequestQuery) OnlyID ¶
OnlyID is like Only, but returns the only PullRequest ID in the query. Returns a *NotSingularError when more than one PullRequest ID is found. Returns a *NotFoundError when no entities are found.
func (*PullRequestQuery) OnlyIDX ¶
func (prq *PullRequestQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*PullRequestQuery) OnlyX ¶
func (prq *PullRequestQuery) OnlyX(ctx context.Context) *PullRequest
OnlyX is like Only, but panics if an error occurs.
func (*PullRequestQuery) Order ¶
func (prq *PullRequestQuery) Order(o ...OrderFunc) *PullRequestQuery
Order specifies how the records should be ordered.
func (*PullRequestQuery) QueryCommits ¶
func (prq *PullRequestQuery) QueryCommits() *CommitsQuery
QueryCommits chains the current query on the "commits" edge.
func (*PullRequestQuery) QueryRepository ¶
func (prq *PullRequestQuery) QueryRepository() *RepositoryQuery
QueryRepository chains the current query on the "repository" edge.
func (*PullRequestQuery) Select ¶
func (prq *PullRequestQuery) Select(fields ...string) *PullRequestSelect
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 {
GithubID string `json:"github_id,omitempty"`
}
client.PullRequest.Query().
Select(pullrequest.FieldGithubID).
Scan(ctx, &v)
func (*PullRequestQuery) Unique ¶
func (prq *PullRequestQuery) Unique(unique bool) *PullRequestQuery
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 (*PullRequestQuery) Where ¶
func (prq *PullRequestQuery) Where(ps ...predicate.PullRequest) *PullRequestQuery
Where adds a new predicate for the PullRequestQuery builder.
func (*PullRequestQuery) WithCommits ¶
func (prq *PullRequestQuery) WithCommits(opts ...func(*CommitsQuery)) *PullRequestQuery
WithCommits tells the query-builder to eager-load the nodes that are connected to the "commits" edge. The optional arguments are used to configure the query builder of the edge.
func (*PullRequestQuery) WithRepository ¶
func (prq *PullRequestQuery) WithRepository(opts ...func(*RepositoryQuery)) *PullRequestQuery
WithRepository tells the query-builder to eager-load the nodes that are connected to the "repository" edge. The optional arguments are used to configure the query builder of the edge.
type PullRequestSelect ¶
type PullRequestSelect struct {
*PullRequestQuery
// contains filtered or unexported fields
}
PullRequestSelect is the builder for selecting fields of PullRequest entities.
func (*PullRequestSelect) Aggregate ¶
func (prs *PullRequestSelect) Aggregate(fns ...AggregateFunc) *PullRequestSelect
Aggregate adds the given aggregation functions to the selector query.
func (*PullRequestSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PullRequestSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PullRequestSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PullRequestSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PullRequestSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PullRequestSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PullRequestSelect) Scan ¶
func (prs *PullRequestSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*PullRequestSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type PullRequestUpdate ¶
type PullRequestUpdate struct {
// contains filtered or unexported fields
}
PullRequestUpdate is the builder for updating PullRequest entities.
func (*PullRequestUpdate) AddCommitIDs ¶
func (pru *PullRequestUpdate) AddCommitIDs(ids ...uuid.UUID) *PullRequestUpdate
AddCommitIDs adds the "commits" edge to the Commits entity by IDs.
func (*PullRequestUpdate) AddCommits ¶
func (pru *PullRequestUpdate) AddCommits(c ...*Commits) *PullRequestUpdate
AddCommits adds the "commits" edges to the Commits entity.
func (*PullRequestUpdate) AddTotalCommits ¶
func (pru *PullRequestUpdate) AddTotalCommits(i int64) *PullRequestUpdate
AddTotalCommits adds i to the "total_commits" field.
func (*PullRequestUpdate) ClearClosedAt ¶
func (pru *PullRequestUpdate) ClearClosedAt() *PullRequestUpdate
ClearClosedAt clears the value of the "closed_at" field.
func (*PullRequestUpdate) ClearCommits ¶
func (pru *PullRequestUpdate) ClearCommits() *PullRequestUpdate
ClearCommits clears all "commits" edges to the Commits entity.
func (*PullRequestUpdate) ClearMergedAt ¶
func (pru *PullRequestUpdate) ClearMergedAt() *PullRequestUpdate
ClearMergedAt clears the value of the "merged_at" field.
func (*PullRequestUpdate) ClearRepository ¶
func (pru *PullRequestUpdate) ClearRepository() *PullRequestUpdate
ClearRepository clears the "repository" edge to the Repository entity.
func (*PullRequestUpdate) Exec ¶
func (pru *PullRequestUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*PullRequestUpdate) ExecX ¶
func (pru *PullRequestUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PullRequestUpdate) Mutation ¶
func (pru *PullRequestUpdate) Mutation() *PullRequestMutation
Mutation returns the PullRequestMutation object of the builder.
func (*PullRequestUpdate) RemoveCommitIDs ¶
func (pru *PullRequestUpdate) RemoveCommitIDs(ids ...uuid.UUID) *PullRequestUpdate
RemoveCommitIDs removes the "commits" edge to Commits entities by IDs.
func (*PullRequestUpdate) RemoveCommits ¶
func (pru *PullRequestUpdate) RemoveCommits(c ...*Commits) *PullRequestUpdate
RemoveCommits removes "commits" edges to Commits entities.
func (*PullRequestUpdate) Save ¶
func (pru *PullRequestUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*PullRequestUpdate) SaveX ¶
func (pru *PullRequestUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*PullRequestUpdate) SetClosedAt ¶
func (pru *PullRequestUpdate) SetClosedAt(t time.Time) *PullRequestUpdate
SetClosedAt sets the "closed_at" field.
func (*PullRequestUpdate) SetCreatedAt ¶
func (pru *PullRequestUpdate) SetCreatedAt(t time.Time) *PullRequestUpdate
SetCreatedAt sets the "created_at" field.
func (*PullRequestUpdate) SetGetCommit ¶
func (pru *PullRequestUpdate) SetGetCommit(b bool) *PullRequestUpdate
SetGetCommit sets the "get_commit" field.
func (*PullRequestUpdate) SetGithubID ¶
func (pru *PullRequestUpdate) SetGithubID(s string) *PullRequestUpdate
SetGithubID sets the "github_id" field.
func (*PullRequestUpdate) SetMergedAt ¶
func (pru *PullRequestUpdate) SetMergedAt(t time.Time) *PullRequestUpdate
SetMergedAt sets the "merged_at" field.
func (*PullRequestUpdate) SetNillableClosedAt ¶
func (pru *PullRequestUpdate) SetNillableClosedAt(t *time.Time) *PullRequestUpdate
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*PullRequestUpdate) SetNillableCreatedAt ¶
func (pru *PullRequestUpdate) SetNillableCreatedAt(t *time.Time) *PullRequestUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*PullRequestUpdate) SetNillableGetCommit ¶
func (pru *PullRequestUpdate) SetNillableGetCommit(b *bool) *PullRequestUpdate
SetNillableGetCommit sets the "get_commit" field if the given value is not nil.
func (*PullRequestUpdate) SetNillableMergedAt ¶
func (pru *PullRequestUpdate) SetNillableMergedAt(t *time.Time) *PullRequestUpdate
SetNillableMergedAt sets the "merged_at" field if the given value is not nil.
func (*PullRequestUpdate) SetNillableRepositoryID ¶
func (pru *PullRequestUpdate) SetNillableRepositoryID(id *uuid.UUID) *PullRequestUpdate
SetNillableRepositoryID sets the "repository" edge to the Repository entity by ID if the given value is not nil.
func (*PullRequestUpdate) SetNillableTotalCommits ¶
func (pru *PullRequestUpdate) SetNillableTotalCommits(i *int64) *PullRequestUpdate
SetNillableTotalCommits sets the "total_commits" field if the given value is not nil.
func (*PullRequestUpdate) SetNillableUpdatedAt ¶
func (pru *PullRequestUpdate) SetNillableUpdatedAt(t *time.Time) *PullRequestUpdate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*PullRequestUpdate) SetRepository ¶
func (pru *PullRequestUpdate) SetRepository(r *Repository) *PullRequestUpdate
SetRepository sets the "repository" edge to the Repository entity.
func (*PullRequestUpdate) SetRepositoryID ¶
func (pru *PullRequestUpdate) SetRepositoryID(id uuid.UUID) *PullRequestUpdate
SetRepositoryID sets the "repository" edge to the Repository entity by ID.
func (*PullRequestUpdate) SetTitle ¶
func (pru *PullRequestUpdate) SetTitle(s string) *PullRequestUpdate
SetTitle sets the "title" field.
func (*PullRequestUpdate) SetTotalCommits ¶
func (pru *PullRequestUpdate) SetTotalCommits(i int64) *PullRequestUpdate
SetTotalCommits sets the "total_commits" field.
func (*PullRequestUpdate) SetUpdatedAt ¶
func (pru *PullRequestUpdate) SetUpdatedAt(t time.Time) *PullRequestUpdate
SetUpdatedAt sets the "updated_at" field.
func (*PullRequestUpdate) Where ¶
func (pru *PullRequestUpdate) Where(ps ...predicate.PullRequest) *PullRequestUpdate
Where appends a list predicates to the PullRequestUpdate builder.
type PullRequestUpdateOne ¶
type PullRequestUpdateOne struct {
// contains filtered or unexported fields
}
PullRequestUpdateOne is the builder for updating a single PullRequest entity.
func (*PullRequestUpdateOne) AddCommitIDs ¶
func (pruo *PullRequestUpdateOne) AddCommitIDs(ids ...uuid.UUID) *PullRequestUpdateOne
AddCommitIDs adds the "commits" edge to the Commits entity by IDs.
func (*PullRequestUpdateOne) AddCommits ¶
func (pruo *PullRequestUpdateOne) AddCommits(c ...*Commits) *PullRequestUpdateOne
AddCommits adds the "commits" edges to the Commits entity.
func (*PullRequestUpdateOne) AddTotalCommits ¶
func (pruo *PullRequestUpdateOne) AddTotalCommits(i int64) *PullRequestUpdateOne
AddTotalCommits adds i to the "total_commits" field.
func (*PullRequestUpdateOne) ClearClosedAt ¶
func (pruo *PullRequestUpdateOne) ClearClosedAt() *PullRequestUpdateOne
ClearClosedAt clears the value of the "closed_at" field.
func (*PullRequestUpdateOne) ClearCommits ¶
func (pruo *PullRequestUpdateOne) ClearCommits() *PullRequestUpdateOne
ClearCommits clears all "commits" edges to the Commits entity.
func (*PullRequestUpdateOne) ClearMergedAt ¶
func (pruo *PullRequestUpdateOne) ClearMergedAt() *PullRequestUpdateOne
ClearMergedAt clears the value of the "merged_at" field.
func (*PullRequestUpdateOne) ClearRepository ¶
func (pruo *PullRequestUpdateOne) ClearRepository() *PullRequestUpdateOne
ClearRepository clears the "repository" edge to the Repository entity.
func (*PullRequestUpdateOne) Exec ¶
func (pruo *PullRequestUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*PullRequestUpdateOne) ExecX ¶
func (pruo *PullRequestUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PullRequestUpdateOne) Mutation ¶
func (pruo *PullRequestUpdateOne) Mutation() *PullRequestMutation
Mutation returns the PullRequestMutation object of the builder.
func (*PullRequestUpdateOne) RemoveCommitIDs ¶
func (pruo *PullRequestUpdateOne) RemoveCommitIDs(ids ...uuid.UUID) *PullRequestUpdateOne
RemoveCommitIDs removes the "commits" edge to Commits entities by IDs.
func (*PullRequestUpdateOne) RemoveCommits ¶
func (pruo *PullRequestUpdateOne) RemoveCommits(c ...*Commits) *PullRequestUpdateOne
RemoveCommits removes "commits" edges to Commits entities.
func (*PullRequestUpdateOne) Save ¶
func (pruo *PullRequestUpdateOne) Save(ctx context.Context) (*PullRequest, error)
Save executes the query and returns the updated PullRequest entity.
func (*PullRequestUpdateOne) SaveX ¶
func (pruo *PullRequestUpdateOne) SaveX(ctx context.Context) *PullRequest
SaveX is like Save, but panics if an error occurs.
func (*PullRequestUpdateOne) Select ¶
func (pruo *PullRequestUpdateOne) Select(field string, fields ...string) *PullRequestUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*PullRequestUpdateOne) SetClosedAt ¶
func (pruo *PullRequestUpdateOne) SetClosedAt(t time.Time) *PullRequestUpdateOne
SetClosedAt sets the "closed_at" field.
func (*PullRequestUpdateOne) SetCreatedAt ¶
func (pruo *PullRequestUpdateOne) SetCreatedAt(t time.Time) *PullRequestUpdateOne
SetCreatedAt sets the "created_at" field.
func (*PullRequestUpdateOne) SetGetCommit ¶
func (pruo *PullRequestUpdateOne) SetGetCommit(b bool) *PullRequestUpdateOne
SetGetCommit sets the "get_commit" field.
func (*PullRequestUpdateOne) SetGithubID ¶
func (pruo *PullRequestUpdateOne) SetGithubID(s string) *PullRequestUpdateOne
SetGithubID sets the "github_id" field.
func (*PullRequestUpdateOne) SetMergedAt ¶
func (pruo *PullRequestUpdateOne) SetMergedAt(t time.Time) *PullRequestUpdateOne
SetMergedAt sets the "merged_at" field.
func (*PullRequestUpdateOne) SetNillableClosedAt ¶
func (pruo *PullRequestUpdateOne) SetNillableClosedAt(t *time.Time) *PullRequestUpdateOne
SetNillableClosedAt sets the "closed_at" field if the given value is not nil.
func (*PullRequestUpdateOne) SetNillableCreatedAt ¶
func (pruo *PullRequestUpdateOne) SetNillableCreatedAt(t *time.Time) *PullRequestUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*PullRequestUpdateOne) SetNillableGetCommit ¶
func (pruo *PullRequestUpdateOne) SetNillableGetCommit(b *bool) *PullRequestUpdateOne
SetNillableGetCommit sets the "get_commit" field if the given value is not nil.
func (*PullRequestUpdateOne) SetNillableMergedAt ¶
func (pruo *PullRequestUpdateOne) SetNillableMergedAt(t *time.Time) *PullRequestUpdateOne
SetNillableMergedAt sets the "merged_at" field if the given value is not nil.
func (*PullRequestUpdateOne) SetNillableRepositoryID ¶
func (pruo *PullRequestUpdateOne) SetNillableRepositoryID(id *uuid.UUID) *PullRequestUpdateOne
SetNillableRepositoryID sets the "repository" edge to the Repository entity by ID if the given value is not nil.
func (*PullRequestUpdateOne) SetNillableTotalCommits ¶
func (pruo *PullRequestUpdateOne) SetNillableTotalCommits(i *int64) *PullRequestUpdateOne
SetNillableTotalCommits sets the "total_commits" field if the given value is not nil.
func (*PullRequestUpdateOne) SetNillableUpdatedAt ¶
func (pruo *PullRequestUpdateOne) SetNillableUpdatedAt(t *time.Time) *PullRequestUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*PullRequestUpdateOne) SetRepository ¶
func (pruo *PullRequestUpdateOne) SetRepository(r *Repository) *PullRequestUpdateOne
SetRepository sets the "repository" edge to the Repository entity.
func (*PullRequestUpdateOne) SetRepositoryID ¶
func (pruo *PullRequestUpdateOne) SetRepositoryID(id uuid.UUID) *PullRequestUpdateOne
SetRepositoryID sets the "repository" edge to the Repository entity by ID.
func (*PullRequestUpdateOne) SetTitle ¶
func (pruo *PullRequestUpdateOne) SetTitle(s string) *PullRequestUpdateOne
SetTitle sets the "title" field.
func (*PullRequestUpdateOne) SetTotalCommits ¶
func (pruo *PullRequestUpdateOne) SetTotalCommits(i int64) *PullRequestUpdateOne
SetTotalCommits sets the "total_commits" field.
func (*PullRequestUpdateOne) SetUpdatedAt ¶
func (pruo *PullRequestUpdateOne) SetUpdatedAt(t time.Time) *PullRequestUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*PullRequestUpdateOne) Where ¶
func (pruo *PullRequestUpdateOne) Where(ps ...predicate.PullRequest) *PullRequestUpdateOne
Where appends a list predicates to the PullRequestUpdate builder.
type PullRequests ¶
type PullRequests []*PullRequest
PullRequests is a parsable slice of PullRequest.
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 Repository ¶
type Repository struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// GithubID holds the value of the "github_id" field.
GithubID string `json:"github_id,omitempty"`
// Owner holds the value of the "owner" field.
Owner string `json:"owner,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"`
// TotalPr holds the value of the "total_pr" field.
TotalPr int64 `json:"total_pr,omitempty"`
// TotalIssue holds the value of the "total_issue" field.
TotalIssue int64 `json:"total_issue,omitempty"`
// PR情報を取得したかどうか(0:未取得 1:取得済み)
GetPullRequest bool `json:"get_pull_request,omitempty"`
// Issue情報を取得したかどうか(0:未取得 1:取得済み)
GetIssue bool `json:"get_issue,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"`
// PushedAt holds the value of the "pushed_at" field.
PushedAt time.Time `json:"pushed_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the RepositoryQuery when eager-loading is set.
Edges RepositoryEdges `json:"edges"`
// contains filtered or unexported fields
}
Repository is the model entity for the Repository schema.
func (*Repository) QueryIssues ¶
func (r *Repository) QueryIssues() *IssueQuery
QueryIssues queries the "issues" edge of the Repository entity.
func (*Repository) QueryPullRequests ¶
func (r *Repository) QueryPullRequests() *PullRequestQuery
QueryPullRequests queries the "pull_requests" edge of the Repository entity.
func (*Repository) String ¶
func (r *Repository) String() string
String implements the fmt.Stringer.
func (*Repository) Unwrap ¶
func (r *Repository) Unwrap() *Repository
Unwrap unwraps the Repository 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 (*Repository) Update ¶
func (r *Repository) Update() *RepositoryUpdateOne
Update returns a builder for updating this Repository. Note that you need to call Repository.Unwrap() before calling this method if this Repository was returned from a transaction, and the transaction was committed or rolled back.
type RepositoryClient ¶
type RepositoryClient struct {
// contains filtered or unexported fields
}
RepositoryClient is a client for the Repository schema.
func NewRepositoryClient ¶
func NewRepositoryClient(c config) *RepositoryClient
NewRepositoryClient returns a client for the Repository from the given config.
func (*RepositoryClient) Create ¶
func (c *RepositoryClient) Create() *RepositoryCreate
Create returns a builder for creating a Repository entity.
func (*RepositoryClient) CreateBulk ¶
func (c *RepositoryClient) CreateBulk(builders ...*RepositoryCreate) *RepositoryCreateBulk
CreateBulk returns a builder for creating a bulk of Repository entities.
func (*RepositoryClient) Delete ¶
func (c *RepositoryClient) Delete() *RepositoryDelete
Delete returns a delete builder for Repository.
func (*RepositoryClient) DeleteOne ¶
func (c *RepositoryClient) DeleteOne(r *Repository) *RepositoryDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*RepositoryClient) DeleteOneID ¶
func (c *RepositoryClient) DeleteOneID(id uuid.UUID) *RepositoryDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*RepositoryClient) Get ¶
func (c *RepositoryClient) Get(ctx context.Context, id uuid.UUID) (*Repository, error)
Get returns a Repository entity by its id.
func (*RepositoryClient) GetX ¶
func (c *RepositoryClient) GetX(ctx context.Context, id uuid.UUID) *Repository
GetX is like Get, but panics if an error occurs.
func (*RepositoryClient) Hooks ¶
func (c *RepositoryClient) Hooks() []Hook
Hooks returns the client hooks.
func (*RepositoryClient) Intercept ¶
func (c *RepositoryClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `repository.Intercept(f(g(h())))`.
func (*RepositoryClient) Interceptors ¶
func (c *RepositoryClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*RepositoryClient) Query ¶
func (c *RepositoryClient) Query() *RepositoryQuery
Query returns a query builder for Repository.
func (*RepositoryClient) QueryIssues ¶
func (c *RepositoryClient) QueryIssues(r *Repository) *IssueQuery
QueryIssues queries the issues edge of a Repository.
func (*RepositoryClient) QueryPullRequests ¶
func (c *RepositoryClient) QueryPullRequests(r *Repository) *PullRequestQuery
QueryPullRequests queries the pull_requests edge of a Repository.
func (*RepositoryClient) Update ¶
func (c *RepositoryClient) Update() *RepositoryUpdate
Update returns an update builder for Repository.
func (*RepositoryClient) UpdateOne ¶
func (c *RepositoryClient) UpdateOne(r *Repository) *RepositoryUpdateOne
UpdateOne returns an update builder for the given entity.
func (*RepositoryClient) UpdateOneID ¶
func (c *RepositoryClient) UpdateOneID(id uuid.UUID) *RepositoryUpdateOne
UpdateOneID returns an update builder for the given id.
func (*RepositoryClient) Use ¶
func (c *RepositoryClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `repository.Hooks(f(g(h())))`.
type RepositoryCreate ¶
type RepositoryCreate struct {
// contains filtered or unexported fields
}
RepositoryCreate is the builder for creating a Repository entity.
func (*RepositoryCreate) AddIssueIDs ¶
func (rc *RepositoryCreate) AddIssueIDs(ids ...uuid.UUID) *RepositoryCreate
AddIssueIDs adds the "issues" edge to the Issue entity by IDs.
func (*RepositoryCreate) AddIssues ¶
func (rc *RepositoryCreate) AddIssues(i ...*Issue) *RepositoryCreate
AddIssues adds the "issues" edges to the Issue entity.
func (*RepositoryCreate) AddPullRequestIDs ¶
func (rc *RepositoryCreate) AddPullRequestIDs(ids ...uuid.UUID) *RepositoryCreate
AddPullRequestIDs adds the "pull_requests" edge to the PullRequest entity by IDs.
func (*RepositoryCreate) AddPullRequests ¶
func (rc *RepositoryCreate) AddPullRequests(p ...*PullRequest) *RepositoryCreate
AddPullRequests adds the "pull_requests" edges to the PullRequest entity.
func (*RepositoryCreate) Exec ¶
func (rc *RepositoryCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*RepositoryCreate) ExecX ¶
func (rc *RepositoryCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RepositoryCreate) Mutation ¶
func (rc *RepositoryCreate) Mutation() *RepositoryMutation
Mutation returns the RepositoryMutation object of the builder.
func (*RepositoryCreate) Save ¶
func (rc *RepositoryCreate) Save(ctx context.Context) (*Repository, error)
Save creates the Repository in the database.
func (*RepositoryCreate) SaveX ¶
func (rc *RepositoryCreate) SaveX(ctx context.Context) *Repository
SaveX calls Save and panics if Save returns an error.
func (*RepositoryCreate) SetCreatedAt ¶
func (rc *RepositoryCreate) SetCreatedAt(t time.Time) *RepositoryCreate
SetCreatedAt sets the "created_at" field.
func (*RepositoryCreate) SetDescription ¶
func (rc *RepositoryCreate) SetDescription(s string) *RepositoryCreate
SetDescription sets the "description" field.
func (*RepositoryCreate) SetGetIssue ¶
func (rc *RepositoryCreate) SetGetIssue(b bool) *RepositoryCreate
SetGetIssue sets the "get_issue" field.
func (*RepositoryCreate) SetGetPullRequest ¶
func (rc *RepositoryCreate) SetGetPullRequest(b bool) *RepositoryCreate
SetGetPullRequest sets the "get_pull_request" field.
func (*RepositoryCreate) SetGithubID ¶
func (rc *RepositoryCreate) SetGithubID(s string) *RepositoryCreate
SetGithubID sets the "github_id" field.
func (*RepositoryCreate) SetID ¶
func (rc *RepositoryCreate) SetID(u uuid.UUID) *RepositoryCreate
SetID sets the "id" field.
func (*RepositoryCreate) SetName ¶
func (rc *RepositoryCreate) SetName(s string) *RepositoryCreate
SetName sets the "name" field.
func (*RepositoryCreate) SetNillableCreatedAt ¶
func (rc *RepositoryCreate) SetNillableCreatedAt(t *time.Time) *RepositoryCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*RepositoryCreate) SetNillableDescription ¶
func (rc *RepositoryCreate) SetNillableDescription(s *string) *RepositoryCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*RepositoryCreate) SetNillableGetIssue ¶
func (rc *RepositoryCreate) SetNillableGetIssue(b *bool) *RepositoryCreate
SetNillableGetIssue sets the "get_issue" field if the given value is not nil.
func (*RepositoryCreate) SetNillableGetPullRequest ¶
func (rc *RepositoryCreate) SetNillableGetPullRequest(b *bool) *RepositoryCreate
SetNillableGetPullRequest sets the "get_pull_request" field if the given value is not nil.
func (*RepositoryCreate) SetNillableID ¶
func (rc *RepositoryCreate) SetNillableID(u *uuid.UUID) *RepositoryCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*RepositoryCreate) SetNillablePushedAt ¶
func (rc *RepositoryCreate) SetNillablePushedAt(t *time.Time) *RepositoryCreate
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*RepositoryCreate) SetNillableTotalIssue ¶
func (rc *RepositoryCreate) SetNillableTotalIssue(i *int64) *RepositoryCreate
SetNillableTotalIssue sets the "total_issue" field if the given value is not nil.
func (*RepositoryCreate) SetNillableTotalPr ¶
func (rc *RepositoryCreate) SetNillableTotalPr(i *int64) *RepositoryCreate
SetNillableTotalPr sets the "total_pr" field if the given value is not nil.
func (*RepositoryCreate) SetNillableUpdatedAt ¶
func (rc *RepositoryCreate) SetNillableUpdatedAt(t *time.Time) *RepositoryCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*RepositoryCreate) SetOwner ¶
func (rc *RepositoryCreate) SetOwner(s string) *RepositoryCreate
SetOwner sets the "owner" field.
func (*RepositoryCreate) SetPushedAt ¶
func (rc *RepositoryCreate) SetPushedAt(t time.Time) *RepositoryCreate
SetPushedAt sets the "pushed_at" field.
func (*RepositoryCreate) SetTotalIssue ¶
func (rc *RepositoryCreate) SetTotalIssue(i int64) *RepositoryCreate
SetTotalIssue sets the "total_issue" field.
func (*RepositoryCreate) SetTotalPr ¶
func (rc *RepositoryCreate) SetTotalPr(i int64) *RepositoryCreate
SetTotalPr sets the "total_pr" field.
func (*RepositoryCreate) SetUpdatedAt ¶
func (rc *RepositoryCreate) SetUpdatedAt(t time.Time) *RepositoryCreate
SetUpdatedAt sets the "updated_at" field.
type RepositoryCreateBulk ¶
type RepositoryCreateBulk struct {
// contains filtered or unexported fields
}
RepositoryCreateBulk is the builder for creating many Repository entities in bulk.
func (*RepositoryCreateBulk) Exec ¶
func (rcb *RepositoryCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*RepositoryCreateBulk) ExecX ¶
func (rcb *RepositoryCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RepositoryCreateBulk) Save ¶
func (rcb *RepositoryCreateBulk) Save(ctx context.Context) ([]*Repository, error)
Save creates the Repository entities in the database.
func (*RepositoryCreateBulk) SaveX ¶
func (rcb *RepositoryCreateBulk) SaveX(ctx context.Context) []*Repository
SaveX is like Save, but panics if an error occurs.
type RepositoryDelete ¶
type RepositoryDelete struct {
// contains filtered or unexported fields
}
RepositoryDelete is the builder for deleting a Repository entity.
func (*RepositoryDelete) Exec ¶
func (rd *RepositoryDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*RepositoryDelete) ExecX ¶
func (rd *RepositoryDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*RepositoryDelete) Where ¶
func (rd *RepositoryDelete) Where(ps ...predicate.Repository) *RepositoryDelete
Where appends a list predicates to the RepositoryDelete builder.
type RepositoryDeleteOne ¶
type RepositoryDeleteOne struct {
// contains filtered or unexported fields
}
RepositoryDeleteOne is the builder for deleting a single Repository entity.
func (*RepositoryDeleteOne) Exec ¶
func (rdo *RepositoryDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*RepositoryDeleteOne) ExecX ¶
func (rdo *RepositoryDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RepositoryDeleteOne) Where ¶
func (rdo *RepositoryDeleteOne) Where(ps ...predicate.Repository) *RepositoryDeleteOne
Where appends a list predicates to the RepositoryDelete builder.
type RepositoryEdges ¶
type RepositoryEdges struct {
// PullRequests holds the value of the pull_requests edge.
PullRequests []*PullRequest `json:"pull_requests,omitempty"`
// Issues holds the value of the issues edge.
Issues []*Issue `json:"issues,omitempty"`
// contains filtered or unexported fields
}
RepositoryEdges holds the relations/edges for other nodes in the graph.
func (RepositoryEdges) IssuesOrErr ¶
func (e RepositoryEdges) IssuesOrErr() ([]*Issue, error)
IssuesOrErr returns the Issues value or an error if the edge was not loaded in eager-loading.
func (RepositoryEdges) PullRequestsOrErr ¶
func (e RepositoryEdges) PullRequestsOrErr() ([]*PullRequest, error)
PullRequestsOrErr returns the PullRequests value or an error if the edge was not loaded in eager-loading.
type RepositoryGroupBy ¶
type RepositoryGroupBy struct {
// contains filtered or unexported fields
}
RepositoryGroupBy is the group-by builder for Repository entities.
func (*RepositoryGroupBy) Aggregate ¶
func (rgb *RepositoryGroupBy) Aggregate(fns ...AggregateFunc) *RepositoryGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*RepositoryGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*RepositoryGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*RepositoryGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*RepositoryGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*RepositoryGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*RepositoryGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*RepositoryGroupBy) Scan ¶
func (rgb *RepositoryGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*RepositoryGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type RepositoryMutation ¶
type RepositoryMutation struct {
// contains filtered or unexported fields
}
RepositoryMutation represents an operation that mutates the Repository nodes in the graph.
func (*RepositoryMutation) AddField ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) AddIssueIDs ¶
func (m *RepositoryMutation) AddIssueIDs(ids ...uuid.UUID)
AddIssueIDs adds the "issues" edge to the Issue entity by ids.
func (*RepositoryMutation) AddPullRequestIDs ¶
func (m *RepositoryMutation) AddPullRequestIDs(ids ...uuid.UUID)
AddPullRequestIDs adds the "pull_requests" edge to the PullRequest entity by ids.
func (*RepositoryMutation) AddTotalIssue ¶
func (m *RepositoryMutation) AddTotalIssue(i int64)
AddTotalIssue adds i to the "total_issue" field.
func (*RepositoryMutation) AddTotalPr ¶
func (m *RepositoryMutation) AddTotalPr(i int64)
AddTotalPr adds i to the "total_pr" field.
func (*RepositoryMutation) AddedEdges ¶
func (m *RepositoryMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*RepositoryMutation) AddedField ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) AddedFields ¶
func (m *RepositoryMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*RepositoryMutation) AddedIDs ¶
func (m *RepositoryMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*RepositoryMutation) AddedTotalIssue ¶
func (m *RepositoryMutation) AddedTotalIssue() (r int64, exists bool)
AddedTotalIssue returns the value that was added to the "total_issue" field in this mutation.
func (*RepositoryMutation) AddedTotalPr ¶
func (m *RepositoryMutation) AddedTotalPr() (r int64, exists bool)
AddedTotalPr returns the value that was added to the "total_pr" field in this mutation.
func (*RepositoryMutation) ClearDescription ¶
func (m *RepositoryMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*RepositoryMutation) ClearEdge ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) ClearField ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) ClearIssues ¶
func (m *RepositoryMutation) ClearIssues()
ClearIssues clears the "issues" edge to the Issue entity.
func (*RepositoryMutation) ClearPullRequests ¶
func (m *RepositoryMutation) ClearPullRequests()
ClearPullRequests clears the "pull_requests" edge to the PullRequest entity.
func (*RepositoryMutation) ClearedEdges ¶
func (m *RepositoryMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*RepositoryMutation) ClearedFields ¶
func (m *RepositoryMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (RepositoryMutation) Client ¶
func (m RepositoryMutation) 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 (*RepositoryMutation) CreatedAt ¶
func (m *RepositoryMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*RepositoryMutation) Description ¶
func (m *RepositoryMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*RepositoryMutation) DescriptionCleared ¶
func (m *RepositoryMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*RepositoryMutation) EdgeCleared ¶
func (m *RepositoryMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*RepositoryMutation) Field ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) FieldCleared ¶
func (m *RepositoryMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*RepositoryMutation) Fields ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) GetIssue ¶
func (m *RepositoryMutation) GetIssue() (r bool, exists bool)
GetIssue returns the value of the "get_issue" field in the mutation.
func (*RepositoryMutation) GetPullRequest ¶
func (m *RepositoryMutation) GetPullRequest() (r bool, exists bool)
GetPullRequest returns the value of the "get_pull_request" field in the mutation.
func (*RepositoryMutation) GithubID ¶
func (m *RepositoryMutation) GithubID() (r string, exists bool)
GithubID returns the value of the "github_id" field in the mutation.
func (*RepositoryMutation) ID ¶
func (m *RepositoryMutation) ID() (id uuid.UUID, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*RepositoryMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*RepositoryMutation) IssuesCleared ¶
func (m *RepositoryMutation) IssuesCleared() bool
IssuesCleared reports if the "issues" edge to the Issue entity was cleared.
func (*RepositoryMutation) IssuesIDs ¶
func (m *RepositoryMutation) IssuesIDs() (ids []uuid.UUID)
IssuesIDs returns the "issues" edge IDs in the mutation.
func (*RepositoryMutation) Name ¶
func (m *RepositoryMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*RepositoryMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldDescription ¶
func (m *RepositoryMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) 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 (*RepositoryMutation) OldGetIssue ¶
func (m *RepositoryMutation) OldGetIssue(ctx context.Context) (v bool, err error)
OldGetIssue returns the old "get_issue" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldGetPullRequest ¶
func (m *RepositoryMutation) OldGetPullRequest(ctx context.Context) (v bool, err error)
OldGetPullRequest returns the old "get_pull_request" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldGithubID ¶
func (m *RepositoryMutation) OldGithubID(ctx context.Context) (v string, err error)
OldGithubID returns the old "github_id" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldName ¶
func (m *RepositoryMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldOwner ¶
func (m *RepositoryMutation) OldOwner(ctx context.Context) (v string, err error)
OldOwner returns the old "owner" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldPushedAt ¶
OldPushedAt returns the old "pushed_at" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldTotalIssue ¶
func (m *RepositoryMutation) OldTotalIssue(ctx context.Context) (v int64, err error)
OldTotalIssue returns the old "total_issue" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldTotalPr ¶
func (m *RepositoryMutation) OldTotalPr(ctx context.Context) (v int64, err error)
OldTotalPr returns the old "total_pr" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Repository entity. If the Repository object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*RepositoryMutation) Owner ¶
func (m *RepositoryMutation) Owner() (r string, exists bool)
Owner returns the value of the "owner" field in the mutation.
func (*RepositoryMutation) PullRequestsCleared ¶
func (m *RepositoryMutation) PullRequestsCleared() bool
PullRequestsCleared reports if the "pull_requests" edge to the PullRequest entity was cleared.
func (*RepositoryMutation) PullRequestsIDs ¶
func (m *RepositoryMutation) PullRequestsIDs() (ids []uuid.UUID)
PullRequestsIDs returns the "pull_requests" edge IDs in the mutation.
func (*RepositoryMutation) PushedAt ¶
func (m *RepositoryMutation) PushedAt() (r time.Time, exists bool)
PushedAt returns the value of the "pushed_at" field in the mutation.
func (*RepositoryMutation) RemoveIssueIDs ¶
func (m *RepositoryMutation) RemoveIssueIDs(ids ...uuid.UUID)
RemoveIssueIDs removes the "issues" edge to the Issue entity by IDs.
func (*RepositoryMutation) RemovePullRequestIDs ¶
func (m *RepositoryMutation) RemovePullRequestIDs(ids ...uuid.UUID)
RemovePullRequestIDs removes the "pull_requests" edge to the PullRequest entity by IDs.
func (*RepositoryMutation) RemovedEdges ¶
func (m *RepositoryMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*RepositoryMutation) RemovedIDs ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) RemovedIssuesIDs ¶
func (m *RepositoryMutation) RemovedIssuesIDs() (ids []uuid.UUID)
RemovedIssues returns the removed IDs of the "issues" edge to the Issue entity.
func (*RepositoryMutation) RemovedPullRequestsIDs ¶
func (m *RepositoryMutation) RemovedPullRequestsIDs() (ids []uuid.UUID)
RemovedPullRequests returns the removed IDs of the "pull_requests" edge to the PullRequest entity.
func (*RepositoryMutation) ResetCreatedAt ¶
func (m *RepositoryMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*RepositoryMutation) ResetDescription ¶
func (m *RepositoryMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*RepositoryMutation) ResetEdge ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) ResetField ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) ResetGetIssue ¶
func (m *RepositoryMutation) ResetGetIssue()
ResetGetIssue resets all changes to the "get_issue" field.
func (*RepositoryMutation) ResetGetPullRequest ¶
func (m *RepositoryMutation) ResetGetPullRequest()
ResetGetPullRequest resets all changes to the "get_pull_request" field.
func (*RepositoryMutation) ResetGithubID ¶
func (m *RepositoryMutation) ResetGithubID()
ResetGithubID resets all changes to the "github_id" field.
func (*RepositoryMutation) ResetIssues ¶
func (m *RepositoryMutation) ResetIssues()
ResetIssues resets all changes to the "issues" edge.
func (*RepositoryMutation) ResetName ¶
func (m *RepositoryMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*RepositoryMutation) ResetOwner ¶
func (m *RepositoryMutation) ResetOwner()
ResetOwner resets all changes to the "owner" field.
func (*RepositoryMutation) ResetPullRequests ¶
func (m *RepositoryMutation) ResetPullRequests()
ResetPullRequests resets all changes to the "pull_requests" edge.
func (*RepositoryMutation) ResetPushedAt ¶
func (m *RepositoryMutation) ResetPushedAt()
ResetPushedAt resets all changes to the "pushed_at" field.
func (*RepositoryMutation) ResetTotalIssue ¶
func (m *RepositoryMutation) ResetTotalIssue()
ResetTotalIssue resets all changes to the "total_issue" field.
func (*RepositoryMutation) ResetTotalPr ¶
func (m *RepositoryMutation) ResetTotalPr()
ResetTotalPr resets all changes to the "total_pr" field.
func (*RepositoryMutation) ResetUpdatedAt ¶
func (m *RepositoryMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*RepositoryMutation) SetCreatedAt ¶
func (m *RepositoryMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*RepositoryMutation) SetDescription ¶
func (m *RepositoryMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*RepositoryMutation) SetField ¶
func (m *RepositoryMutation) 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 (*RepositoryMutation) SetGetIssue ¶
func (m *RepositoryMutation) SetGetIssue(b bool)
SetGetIssue sets the "get_issue" field.
func (*RepositoryMutation) SetGetPullRequest ¶
func (m *RepositoryMutation) SetGetPullRequest(b bool)
SetGetPullRequest sets the "get_pull_request" field.
func (*RepositoryMutation) SetGithubID ¶
func (m *RepositoryMutation) SetGithubID(s string)
SetGithubID sets the "github_id" field.
func (*RepositoryMutation) SetID ¶
func (m *RepositoryMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Repository entities.
func (*RepositoryMutation) SetName ¶
func (m *RepositoryMutation) SetName(s string)
SetName sets the "name" field.
func (*RepositoryMutation) SetOp ¶
func (m *RepositoryMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*RepositoryMutation) SetOwner ¶
func (m *RepositoryMutation) SetOwner(s string)
SetOwner sets the "owner" field.
func (*RepositoryMutation) SetPushedAt ¶
func (m *RepositoryMutation) SetPushedAt(t time.Time)
SetPushedAt sets the "pushed_at" field.
func (*RepositoryMutation) SetTotalIssue ¶
func (m *RepositoryMutation) SetTotalIssue(i int64)
SetTotalIssue sets the "total_issue" field.
func (*RepositoryMutation) SetTotalPr ¶
func (m *RepositoryMutation) SetTotalPr(i int64)
SetTotalPr sets the "total_pr" field.
func (*RepositoryMutation) SetUpdatedAt ¶
func (m *RepositoryMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*RepositoryMutation) TotalIssue ¶
func (m *RepositoryMutation) TotalIssue() (r int64, exists bool)
TotalIssue returns the value of the "total_issue" field in the mutation.
func (*RepositoryMutation) TotalPr ¶
func (m *RepositoryMutation) TotalPr() (r int64, exists bool)
TotalPr returns the value of the "total_pr" field in the mutation.
func (RepositoryMutation) Tx ¶
func (m RepositoryMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*RepositoryMutation) Type ¶
func (m *RepositoryMutation) Type() string
Type returns the node type of this mutation (Repository).
func (*RepositoryMutation) UpdatedAt ¶
func (m *RepositoryMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*RepositoryMutation) Where ¶
func (m *RepositoryMutation) Where(ps ...predicate.Repository)
Where appends a list predicates to the RepositoryMutation builder.
func (*RepositoryMutation) WhereP ¶
func (m *RepositoryMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the RepositoryMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type RepositoryQuery ¶
type RepositoryQuery struct {
// contains filtered or unexported fields
}
RepositoryQuery is the builder for querying Repository entities.
func (*RepositoryQuery) Aggregate ¶
func (rq *RepositoryQuery) Aggregate(fns ...AggregateFunc) *RepositorySelect
Aggregate returns a RepositorySelect configured with the given aggregations.
func (*RepositoryQuery) All ¶
func (rq *RepositoryQuery) All(ctx context.Context) ([]*Repository, error)
All executes the query and returns a list of Repositories.
func (*RepositoryQuery) AllX ¶
func (rq *RepositoryQuery) AllX(ctx context.Context) []*Repository
AllX is like All, but panics if an error occurs.
func (*RepositoryQuery) Clone ¶
func (rq *RepositoryQuery) Clone() *RepositoryQuery
Clone returns a duplicate of the RepositoryQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*RepositoryQuery) Count ¶
func (rq *RepositoryQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*RepositoryQuery) CountX ¶
func (rq *RepositoryQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*RepositoryQuery) Exist ¶
func (rq *RepositoryQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*RepositoryQuery) ExistX ¶
func (rq *RepositoryQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*RepositoryQuery) First ¶
func (rq *RepositoryQuery) First(ctx context.Context) (*Repository, error)
First returns the first Repository entity from the query. Returns a *NotFoundError when no Repository was found.
func (*RepositoryQuery) FirstID ¶
FirstID returns the first Repository ID from the query. Returns a *NotFoundError when no Repository ID was found.
func (*RepositoryQuery) FirstIDX ¶
func (rq *RepositoryQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*RepositoryQuery) FirstX ¶
func (rq *RepositoryQuery) FirstX(ctx context.Context) *Repository
FirstX is like First, but panics if an error occurs.
func (*RepositoryQuery) GroupBy ¶
func (rq *RepositoryQuery) GroupBy(field string, fields ...string) *RepositoryGroupBy
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 {
GithubID string `json:"github_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.Repository.Query().
GroupBy(repository.FieldGithubID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*RepositoryQuery) IDsX ¶
func (rq *RepositoryQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*RepositoryQuery) Limit ¶
func (rq *RepositoryQuery) Limit(limit int) *RepositoryQuery
Limit the number of records to be returned by this query.
func (*RepositoryQuery) Offset ¶
func (rq *RepositoryQuery) Offset(offset int) *RepositoryQuery
Offset to start from.
func (*RepositoryQuery) Only ¶
func (rq *RepositoryQuery) Only(ctx context.Context) (*Repository, error)
Only returns a single Repository entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Repository entity is found. Returns a *NotFoundError when no Repository entities are found.
func (*RepositoryQuery) OnlyID ¶
OnlyID is like Only, but returns the only Repository ID in the query. Returns a *NotSingularError when more than one Repository ID is found. Returns a *NotFoundError when no entities are found.
func (*RepositoryQuery) OnlyIDX ¶
func (rq *RepositoryQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*RepositoryQuery) OnlyX ¶
func (rq *RepositoryQuery) OnlyX(ctx context.Context) *Repository
OnlyX is like Only, but panics if an error occurs.
func (*RepositoryQuery) Order ¶
func (rq *RepositoryQuery) Order(o ...OrderFunc) *RepositoryQuery
Order specifies how the records should be ordered.
func (*RepositoryQuery) QueryIssues ¶
func (rq *RepositoryQuery) QueryIssues() *IssueQuery
QueryIssues chains the current query on the "issues" edge.
func (*RepositoryQuery) QueryPullRequests ¶
func (rq *RepositoryQuery) QueryPullRequests() *PullRequestQuery
QueryPullRequests chains the current query on the "pull_requests" edge.
func (*RepositoryQuery) Select ¶
func (rq *RepositoryQuery) Select(fields ...string) *RepositorySelect
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 {
GithubID string `json:"github_id,omitempty"`
}
client.Repository.Query().
Select(repository.FieldGithubID).
Scan(ctx, &v)
func (*RepositoryQuery) Unique ¶
func (rq *RepositoryQuery) Unique(unique bool) *RepositoryQuery
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 (*RepositoryQuery) Where ¶
func (rq *RepositoryQuery) Where(ps ...predicate.Repository) *RepositoryQuery
Where adds a new predicate for the RepositoryQuery builder.
func (*RepositoryQuery) WithIssues ¶
func (rq *RepositoryQuery) WithIssues(opts ...func(*IssueQuery)) *RepositoryQuery
WithIssues tells the query-builder to eager-load the nodes that are connected to the "issues" edge. The optional arguments are used to configure the query builder of the edge.
func (*RepositoryQuery) WithPullRequests ¶
func (rq *RepositoryQuery) WithPullRequests(opts ...func(*PullRequestQuery)) *RepositoryQuery
WithPullRequests tells the query-builder to eager-load the nodes that are connected to the "pull_requests" edge. The optional arguments are used to configure the query builder of the edge.
type RepositorySelect ¶
type RepositorySelect struct {
*RepositoryQuery
// contains filtered or unexported fields
}
RepositorySelect is the builder for selecting fields of Repository entities.
func (*RepositorySelect) Aggregate ¶
func (rs *RepositorySelect) Aggregate(fns ...AggregateFunc) *RepositorySelect
Aggregate adds the given aggregation functions to the selector query.
func (*RepositorySelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*RepositorySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*RepositorySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*RepositorySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*RepositorySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*RepositorySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*RepositorySelect) Scan ¶
func (rs *RepositorySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*RepositorySelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type RepositoryUpdate ¶
type RepositoryUpdate struct {
// contains filtered or unexported fields
}
RepositoryUpdate is the builder for updating Repository entities.
func (*RepositoryUpdate) AddIssueIDs ¶
func (ru *RepositoryUpdate) AddIssueIDs(ids ...uuid.UUID) *RepositoryUpdate
AddIssueIDs adds the "issues" edge to the Issue entity by IDs.
func (*RepositoryUpdate) AddIssues ¶
func (ru *RepositoryUpdate) AddIssues(i ...*Issue) *RepositoryUpdate
AddIssues adds the "issues" edges to the Issue entity.
func (*RepositoryUpdate) AddPullRequestIDs ¶
func (ru *RepositoryUpdate) AddPullRequestIDs(ids ...uuid.UUID) *RepositoryUpdate
AddPullRequestIDs adds the "pull_requests" edge to the PullRequest entity by IDs.
func (*RepositoryUpdate) AddPullRequests ¶
func (ru *RepositoryUpdate) AddPullRequests(p ...*PullRequest) *RepositoryUpdate
AddPullRequests adds the "pull_requests" edges to the PullRequest entity.
func (*RepositoryUpdate) AddTotalIssue ¶
func (ru *RepositoryUpdate) AddTotalIssue(i int64) *RepositoryUpdate
AddTotalIssue adds i to the "total_issue" field.
func (*RepositoryUpdate) AddTotalPr ¶
func (ru *RepositoryUpdate) AddTotalPr(i int64) *RepositoryUpdate
AddTotalPr adds i to the "total_pr" field.
func (*RepositoryUpdate) ClearDescription ¶
func (ru *RepositoryUpdate) ClearDescription() *RepositoryUpdate
ClearDescription clears the value of the "description" field.
func (*RepositoryUpdate) ClearIssues ¶
func (ru *RepositoryUpdate) ClearIssues() *RepositoryUpdate
ClearIssues clears all "issues" edges to the Issue entity.
func (*RepositoryUpdate) ClearPullRequests ¶
func (ru *RepositoryUpdate) ClearPullRequests() *RepositoryUpdate
ClearPullRequests clears all "pull_requests" edges to the PullRequest entity.
func (*RepositoryUpdate) Exec ¶
func (ru *RepositoryUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*RepositoryUpdate) ExecX ¶
func (ru *RepositoryUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RepositoryUpdate) Mutation ¶
func (ru *RepositoryUpdate) Mutation() *RepositoryMutation
Mutation returns the RepositoryMutation object of the builder.
func (*RepositoryUpdate) RemoveIssueIDs ¶
func (ru *RepositoryUpdate) RemoveIssueIDs(ids ...uuid.UUID) *RepositoryUpdate
RemoveIssueIDs removes the "issues" edge to Issue entities by IDs.
func (*RepositoryUpdate) RemoveIssues ¶
func (ru *RepositoryUpdate) RemoveIssues(i ...*Issue) *RepositoryUpdate
RemoveIssues removes "issues" edges to Issue entities.
func (*RepositoryUpdate) RemovePullRequestIDs ¶
func (ru *RepositoryUpdate) RemovePullRequestIDs(ids ...uuid.UUID) *RepositoryUpdate
RemovePullRequestIDs removes the "pull_requests" edge to PullRequest entities by IDs.
func (*RepositoryUpdate) RemovePullRequests ¶
func (ru *RepositoryUpdate) RemovePullRequests(p ...*PullRequest) *RepositoryUpdate
RemovePullRequests removes "pull_requests" edges to PullRequest entities.
func (*RepositoryUpdate) Save ¶
func (ru *RepositoryUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*RepositoryUpdate) SaveX ¶
func (ru *RepositoryUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*RepositoryUpdate) SetCreatedAt ¶
func (ru *RepositoryUpdate) SetCreatedAt(t time.Time) *RepositoryUpdate
SetCreatedAt sets the "created_at" field.
func (*RepositoryUpdate) SetDescription ¶
func (ru *RepositoryUpdate) SetDescription(s string) *RepositoryUpdate
SetDescription sets the "description" field.
func (*RepositoryUpdate) SetGetIssue ¶
func (ru *RepositoryUpdate) SetGetIssue(b bool) *RepositoryUpdate
SetGetIssue sets the "get_issue" field.
func (*RepositoryUpdate) SetGetPullRequest ¶
func (ru *RepositoryUpdate) SetGetPullRequest(b bool) *RepositoryUpdate
SetGetPullRequest sets the "get_pull_request" field.
func (*RepositoryUpdate) SetGithubID ¶
func (ru *RepositoryUpdate) SetGithubID(s string) *RepositoryUpdate
SetGithubID sets the "github_id" field.
func (*RepositoryUpdate) SetName ¶
func (ru *RepositoryUpdate) SetName(s string) *RepositoryUpdate
SetName sets the "name" field.
func (*RepositoryUpdate) SetNillableCreatedAt ¶
func (ru *RepositoryUpdate) SetNillableCreatedAt(t *time.Time) *RepositoryUpdate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*RepositoryUpdate) SetNillableDescription ¶
func (ru *RepositoryUpdate) SetNillableDescription(s *string) *RepositoryUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*RepositoryUpdate) SetNillableGetIssue ¶
func (ru *RepositoryUpdate) SetNillableGetIssue(b *bool) *RepositoryUpdate
SetNillableGetIssue sets the "get_issue" field if the given value is not nil.
func (*RepositoryUpdate) SetNillableGetPullRequest ¶
func (ru *RepositoryUpdate) SetNillableGetPullRequest(b *bool) *RepositoryUpdate
SetNillableGetPullRequest sets the "get_pull_request" field if the given value is not nil.
func (*RepositoryUpdate) SetNillablePushedAt ¶
func (ru *RepositoryUpdate) SetNillablePushedAt(t *time.Time) *RepositoryUpdate
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*RepositoryUpdate) SetNillableTotalIssue ¶
func (ru *RepositoryUpdate) SetNillableTotalIssue(i *int64) *RepositoryUpdate
SetNillableTotalIssue sets the "total_issue" field if the given value is not nil.
func (*RepositoryUpdate) SetNillableTotalPr ¶
func (ru *RepositoryUpdate) SetNillableTotalPr(i *int64) *RepositoryUpdate
SetNillableTotalPr sets the "total_pr" field if the given value is not nil.
func (*RepositoryUpdate) SetNillableUpdatedAt ¶
func (ru *RepositoryUpdate) SetNillableUpdatedAt(t *time.Time) *RepositoryUpdate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*RepositoryUpdate) SetOwner ¶
func (ru *RepositoryUpdate) SetOwner(s string) *RepositoryUpdate
SetOwner sets the "owner" field.
func (*RepositoryUpdate) SetPushedAt ¶
func (ru *RepositoryUpdate) SetPushedAt(t time.Time) *RepositoryUpdate
SetPushedAt sets the "pushed_at" field.
func (*RepositoryUpdate) SetTotalIssue ¶
func (ru *RepositoryUpdate) SetTotalIssue(i int64) *RepositoryUpdate
SetTotalIssue sets the "total_issue" field.
func (*RepositoryUpdate) SetTotalPr ¶
func (ru *RepositoryUpdate) SetTotalPr(i int64) *RepositoryUpdate
SetTotalPr sets the "total_pr" field.
func (*RepositoryUpdate) SetUpdatedAt ¶
func (ru *RepositoryUpdate) SetUpdatedAt(t time.Time) *RepositoryUpdate
SetUpdatedAt sets the "updated_at" field.
func (*RepositoryUpdate) Where ¶
func (ru *RepositoryUpdate) Where(ps ...predicate.Repository) *RepositoryUpdate
Where appends a list predicates to the RepositoryUpdate builder.
type RepositoryUpdateOne ¶
type RepositoryUpdateOne struct {
// contains filtered or unexported fields
}
RepositoryUpdateOne is the builder for updating a single Repository entity.
func (*RepositoryUpdateOne) AddIssueIDs ¶
func (ruo *RepositoryUpdateOne) AddIssueIDs(ids ...uuid.UUID) *RepositoryUpdateOne
AddIssueIDs adds the "issues" edge to the Issue entity by IDs.
func (*RepositoryUpdateOne) AddIssues ¶
func (ruo *RepositoryUpdateOne) AddIssues(i ...*Issue) *RepositoryUpdateOne
AddIssues adds the "issues" edges to the Issue entity.
func (*RepositoryUpdateOne) AddPullRequestIDs ¶
func (ruo *RepositoryUpdateOne) AddPullRequestIDs(ids ...uuid.UUID) *RepositoryUpdateOne
AddPullRequestIDs adds the "pull_requests" edge to the PullRequest entity by IDs.
func (*RepositoryUpdateOne) AddPullRequests ¶
func (ruo *RepositoryUpdateOne) AddPullRequests(p ...*PullRequest) *RepositoryUpdateOne
AddPullRequests adds the "pull_requests" edges to the PullRequest entity.
func (*RepositoryUpdateOne) AddTotalIssue ¶
func (ruo *RepositoryUpdateOne) AddTotalIssue(i int64) *RepositoryUpdateOne
AddTotalIssue adds i to the "total_issue" field.
func (*RepositoryUpdateOne) AddTotalPr ¶
func (ruo *RepositoryUpdateOne) AddTotalPr(i int64) *RepositoryUpdateOne
AddTotalPr adds i to the "total_pr" field.
func (*RepositoryUpdateOne) ClearDescription ¶
func (ruo *RepositoryUpdateOne) ClearDescription() *RepositoryUpdateOne
ClearDescription clears the value of the "description" field.
func (*RepositoryUpdateOne) ClearIssues ¶
func (ruo *RepositoryUpdateOne) ClearIssues() *RepositoryUpdateOne
ClearIssues clears all "issues" edges to the Issue entity.
func (*RepositoryUpdateOne) ClearPullRequests ¶
func (ruo *RepositoryUpdateOne) ClearPullRequests() *RepositoryUpdateOne
ClearPullRequests clears all "pull_requests" edges to the PullRequest entity.
func (*RepositoryUpdateOne) Exec ¶
func (ruo *RepositoryUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*RepositoryUpdateOne) ExecX ¶
func (ruo *RepositoryUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*RepositoryUpdateOne) Mutation ¶
func (ruo *RepositoryUpdateOne) Mutation() *RepositoryMutation
Mutation returns the RepositoryMutation object of the builder.
func (*RepositoryUpdateOne) RemoveIssueIDs ¶
func (ruo *RepositoryUpdateOne) RemoveIssueIDs(ids ...uuid.UUID) *RepositoryUpdateOne
RemoveIssueIDs removes the "issues" edge to Issue entities by IDs.
func (*RepositoryUpdateOne) RemoveIssues ¶
func (ruo *RepositoryUpdateOne) RemoveIssues(i ...*Issue) *RepositoryUpdateOne
RemoveIssues removes "issues" edges to Issue entities.
func (*RepositoryUpdateOne) RemovePullRequestIDs ¶
func (ruo *RepositoryUpdateOne) RemovePullRequestIDs(ids ...uuid.UUID) *RepositoryUpdateOne
RemovePullRequestIDs removes the "pull_requests" edge to PullRequest entities by IDs.
func (*RepositoryUpdateOne) RemovePullRequests ¶
func (ruo *RepositoryUpdateOne) RemovePullRequests(p ...*PullRequest) *RepositoryUpdateOne
RemovePullRequests removes "pull_requests" edges to PullRequest entities.
func (*RepositoryUpdateOne) Save ¶
func (ruo *RepositoryUpdateOne) Save(ctx context.Context) (*Repository, error)
Save executes the query and returns the updated Repository entity.
func (*RepositoryUpdateOne) SaveX ¶
func (ruo *RepositoryUpdateOne) SaveX(ctx context.Context) *Repository
SaveX is like Save, but panics if an error occurs.
func (*RepositoryUpdateOne) Select ¶
func (ruo *RepositoryUpdateOne) Select(field string, fields ...string) *RepositoryUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*RepositoryUpdateOne) SetCreatedAt ¶
func (ruo *RepositoryUpdateOne) SetCreatedAt(t time.Time) *RepositoryUpdateOne
SetCreatedAt sets the "created_at" field.
func (*RepositoryUpdateOne) SetDescription ¶
func (ruo *RepositoryUpdateOne) SetDescription(s string) *RepositoryUpdateOne
SetDescription sets the "description" field.
func (*RepositoryUpdateOne) SetGetIssue ¶
func (ruo *RepositoryUpdateOne) SetGetIssue(b bool) *RepositoryUpdateOne
SetGetIssue sets the "get_issue" field.
func (*RepositoryUpdateOne) SetGetPullRequest ¶
func (ruo *RepositoryUpdateOne) SetGetPullRequest(b bool) *RepositoryUpdateOne
SetGetPullRequest sets the "get_pull_request" field.
func (*RepositoryUpdateOne) SetGithubID ¶
func (ruo *RepositoryUpdateOne) SetGithubID(s string) *RepositoryUpdateOne
SetGithubID sets the "github_id" field.
func (*RepositoryUpdateOne) SetName ¶
func (ruo *RepositoryUpdateOne) SetName(s string) *RepositoryUpdateOne
SetName sets the "name" field.
func (*RepositoryUpdateOne) SetNillableCreatedAt ¶
func (ruo *RepositoryUpdateOne) SetNillableCreatedAt(t *time.Time) *RepositoryUpdateOne
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*RepositoryUpdateOne) SetNillableDescription ¶
func (ruo *RepositoryUpdateOne) SetNillableDescription(s *string) *RepositoryUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*RepositoryUpdateOne) SetNillableGetIssue ¶
func (ruo *RepositoryUpdateOne) SetNillableGetIssue(b *bool) *RepositoryUpdateOne
SetNillableGetIssue sets the "get_issue" field if the given value is not nil.
func (*RepositoryUpdateOne) SetNillableGetPullRequest ¶
func (ruo *RepositoryUpdateOne) SetNillableGetPullRequest(b *bool) *RepositoryUpdateOne
SetNillableGetPullRequest sets the "get_pull_request" field if the given value is not nil.
func (*RepositoryUpdateOne) SetNillablePushedAt ¶
func (ruo *RepositoryUpdateOne) SetNillablePushedAt(t *time.Time) *RepositoryUpdateOne
SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.
func (*RepositoryUpdateOne) SetNillableTotalIssue ¶
func (ruo *RepositoryUpdateOne) SetNillableTotalIssue(i *int64) *RepositoryUpdateOne
SetNillableTotalIssue sets the "total_issue" field if the given value is not nil.
func (*RepositoryUpdateOne) SetNillableTotalPr ¶
func (ruo *RepositoryUpdateOne) SetNillableTotalPr(i *int64) *RepositoryUpdateOne
SetNillableTotalPr sets the "total_pr" field if the given value is not nil.
func (*RepositoryUpdateOne) SetNillableUpdatedAt ¶
func (ruo *RepositoryUpdateOne) SetNillableUpdatedAt(t *time.Time) *RepositoryUpdateOne
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*RepositoryUpdateOne) SetOwner ¶
func (ruo *RepositoryUpdateOne) SetOwner(s string) *RepositoryUpdateOne
SetOwner sets the "owner" field.
func (*RepositoryUpdateOne) SetPushedAt ¶
func (ruo *RepositoryUpdateOne) SetPushedAt(t time.Time) *RepositoryUpdateOne
SetPushedAt sets the "pushed_at" field.
func (*RepositoryUpdateOne) SetTotalIssue ¶
func (ruo *RepositoryUpdateOne) SetTotalIssue(i int64) *RepositoryUpdateOne
SetTotalIssue sets the "total_issue" field.
func (*RepositoryUpdateOne) SetTotalPr ¶
func (ruo *RepositoryUpdateOne) SetTotalPr(i int64) *RepositoryUpdateOne
SetTotalPr sets the "total_pr" field.
func (*RepositoryUpdateOne) SetUpdatedAt ¶
func (ruo *RepositoryUpdateOne) SetUpdatedAt(t time.Time) *RepositoryUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*RepositoryUpdateOne) Where ¶
func (ruo *RepositoryUpdateOne) Where(ps ...predicate.Repository) *RepositoryUpdateOne
Where appends a list predicates to the RepositoryUpdate builder.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker {
return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
// Do some stuff before.
if err := next.Rollback(ctx, tx); err != nil {
return err
}
// Do some stuff after.
return nil
})
}
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct {
// Commits is the client for interacting with the Commits builders.
Commits *CommitsClient
// Issue is the client for interacting with the Issue builders.
Issue *IssueClient
// PullRequest is the client for interacting with the PullRequest builders.
PullRequest *PullRequestClient
// Repository is the client for interacting with the Repository builders.
Repository *RepositoryClient
// 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.
Source Files
¶
- client.go
- commits.go
- commits_create.go
- commits_delete.go
- commits_query.go
- commits_update.go
- ent.go
- generate.go
- issue.go
- issue_create.go
- issue_delete.go
- issue_query.go
- issue_update.go
- mutation.go
- pullrequest.go
- pullrequest_create.go
- pullrequest_delete.go
- pullrequest_query.go
- pullrequest_update.go
- repository.go
- repository_create.go
- repository_delete.go
- repository_query.go
- repository_update.go
- runtime.go
- tx.go