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
- type Cluster
- type ClusterClient
- func (c *ClusterClient) Create() *ClusterCreate
- func (c *ClusterClient) CreateBulk(builders ...*ClusterCreate) *ClusterCreateBulk
- func (c *ClusterClient) Delete() *ClusterDelete
- func (c *ClusterClient) DeleteOne(cl *Cluster) *ClusterDeleteOne
- func (c *ClusterClient) DeleteOneID(id int) *ClusterDeleteOne
- func (c *ClusterClient) Get(ctx context.Context, id int) (*Cluster, error)
- func (c *ClusterClient) GetX(ctx context.Context, id int) *Cluster
- func (c *ClusterClient) Hooks() []Hook
- func (c *ClusterClient) Query() *ClusterQuery
- func (c *ClusterClient) Update() *ClusterUpdate
- func (c *ClusterClient) UpdateOne(cl *Cluster) *ClusterUpdateOne
- func (c *ClusterClient) UpdateOneID(id int) *ClusterUpdateOne
- func (c *ClusterClient) Use(hooks ...Hook)
- type ClusterCreate
- type ClusterCreateBulk
- type ClusterDelete
- type ClusterDeleteOne
- type ClusterGroupBy
- func (cgb *ClusterGroupBy) Aggregate(fns ...AggregateFunc) *ClusterGroupBy
- func (cgb *ClusterGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (cgb *ClusterGroupBy) BoolX(ctx context.Context) bool
- func (cgb *ClusterGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (cgb *ClusterGroupBy) BoolsX(ctx context.Context) []bool
- func (cgb *ClusterGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (cgb *ClusterGroupBy) Float64X(ctx context.Context) float64
- func (cgb *ClusterGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (cgb *ClusterGroupBy) Float64sX(ctx context.Context) []float64
- func (cgb *ClusterGroupBy) Int(ctx context.Context) (_ int, err error)
- func (cgb *ClusterGroupBy) IntX(ctx context.Context) int
- func (cgb *ClusterGroupBy) Ints(ctx context.Context) ([]int, error)
- func (cgb *ClusterGroupBy) IntsX(ctx context.Context) []int
- func (cgb *ClusterGroupBy) Scan(ctx context.Context, v interface{}) error
- func (cgb *ClusterGroupBy) ScanX(ctx context.Context, v interface{})
- func (cgb *ClusterGroupBy) String(ctx context.Context) (_ string, err error)
- func (cgb *ClusterGroupBy) StringX(ctx context.Context) string
- func (cgb *ClusterGroupBy) Strings(ctx context.Context) ([]string, error)
- func (cgb *ClusterGroupBy) StringsX(ctx context.Context) []string
- type ClusterMutation
- func (m *ClusterMutation) AddField(name string, value ent.Value) error
- func (m *ClusterMutation) AddedEdges() []string
- func (m *ClusterMutation) AddedField(name string) (ent.Value, bool)
- func (m *ClusterMutation) AddedFields() []string
- func (m *ClusterMutation) AddedIDs(name string) []ent.Value
- func (m *ClusterMutation) ClearEdge(name string) error
- func (m *ClusterMutation) ClearField(name string) error
- func (m *ClusterMutation) ClearedEdges() []string
- func (m *ClusterMutation) ClearedFields() []string
- func (m ClusterMutation) Client() *Client
- func (m *ClusterMutation) EdgeCleared(name string) bool
- func (m *ClusterMutation) Field(name string) (ent.Value, bool)
- func (m *ClusterMutation) FieldCleared(name string) bool
- func (m *ClusterMutation) Fields() []string
- func (m *ClusterMutation) ID() (id int, exists bool)
- func (m *ClusterMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ClusterMutation) Op() Op
- func (m *ClusterMutation) RemovedEdges() []string
- func (m *ClusterMutation) RemovedIDs(name string) []ent.Value
- func (m *ClusterMutation) ResetEdge(name string) error
- func (m *ClusterMutation) ResetField(name string) error
- func (m *ClusterMutation) SetField(name string, value ent.Value) error
- func (m ClusterMutation) Tx() (*Tx, error)
- func (m *ClusterMutation) Type() string
- func (m *ClusterMutation) Where(ps ...predicate.Cluster)
- type ClusterQuery
- func (cq *ClusterQuery) All(ctx context.Context) ([]*Cluster, error)
- func (cq *ClusterQuery) AllX(ctx context.Context) []*Cluster
- func (cq *ClusterQuery) Clone() *ClusterQuery
- func (cq *ClusterQuery) Count(ctx context.Context) (int, error)
- func (cq *ClusterQuery) CountX(ctx context.Context) int
- func (cq *ClusterQuery) Exist(ctx context.Context) (bool, error)
- func (cq *ClusterQuery) ExistX(ctx context.Context) bool
- func (cq *ClusterQuery) First(ctx context.Context) (*Cluster, error)
- func (cq *ClusterQuery) FirstID(ctx context.Context) (id int, err error)
- func (cq *ClusterQuery) FirstIDX(ctx context.Context) int
- func (cq *ClusterQuery) FirstX(ctx context.Context) *Cluster
- func (cq *ClusterQuery) GroupBy(field string, fields ...string) *ClusterGroupBy
- func (cq *ClusterQuery) IDs(ctx context.Context) ([]int, error)
- func (cq *ClusterQuery) IDsX(ctx context.Context) []int
- func (cq *ClusterQuery) Limit(limit int) *ClusterQuery
- func (cq *ClusterQuery) Offset(offset int) *ClusterQuery
- func (cq *ClusterQuery) Only(ctx context.Context) (*Cluster, error)
- func (cq *ClusterQuery) OnlyID(ctx context.Context) (id int, err error)
- func (cq *ClusterQuery) OnlyIDX(ctx context.Context) int
- func (cq *ClusterQuery) OnlyX(ctx context.Context) *Cluster
- func (cq *ClusterQuery) Order(o ...OrderFunc) *ClusterQuery
- func (cq *ClusterQuery) Select(fields ...string) *ClusterSelect
- func (cq *ClusterQuery) Unique(unique bool) *ClusterQuery
- func (cq *ClusterQuery) Where(ps ...predicate.Cluster) *ClusterQuery
- type ClusterSelect
- func (cs *ClusterSelect) Bool(ctx context.Context) (_ bool, err error)
- func (cs *ClusterSelect) BoolX(ctx context.Context) bool
- func (cs *ClusterSelect) Bools(ctx context.Context) ([]bool, error)
- func (cs *ClusterSelect) BoolsX(ctx context.Context) []bool
- func (cs *ClusterSelect) Float64(ctx context.Context) (_ float64, err error)
- func (cs *ClusterSelect) Float64X(ctx context.Context) float64
- func (cs *ClusterSelect) Float64s(ctx context.Context) ([]float64, error)
- func (cs *ClusterSelect) Float64sX(ctx context.Context) []float64
- func (cs *ClusterSelect) Int(ctx context.Context) (_ int, err error)
- func (cs *ClusterSelect) IntX(ctx context.Context) int
- func (cs *ClusterSelect) Ints(ctx context.Context) ([]int, error)
- func (cs *ClusterSelect) IntsX(ctx context.Context) []int
- func (cs *ClusterSelect) Scan(ctx context.Context, v interface{}) error
- func (cs *ClusterSelect) ScanX(ctx context.Context, v interface{})
- func (cs *ClusterSelect) String(ctx context.Context) (_ string, err error)
- func (cs *ClusterSelect) StringX(ctx context.Context) string
- func (cs *ClusterSelect) Strings(ctx context.Context) ([]string, error)
- func (cs *ClusterSelect) StringsX(ctx context.Context) []string
- type ClusterUpdate
- func (cu *ClusterUpdate) Exec(ctx context.Context) error
- func (cu *ClusterUpdate) ExecX(ctx context.Context)
- func (cu *ClusterUpdate) Mutation() *ClusterMutation
- func (cu *ClusterUpdate) Save(ctx context.Context) (int, error)
- func (cu *ClusterUpdate) SaveX(ctx context.Context) int
- func (cu *ClusterUpdate) Where(ps ...predicate.Cluster) *ClusterUpdate
- type ClusterUpdateOne
- func (cuo *ClusterUpdateOne) Exec(ctx context.Context) error
- func (cuo *ClusterUpdateOne) ExecX(ctx context.Context)
- func (cuo *ClusterUpdateOne) Mutation() *ClusterMutation
- func (cuo *ClusterUpdateOne) Save(ctx context.Context) (*Cluster, error)
- func (cuo *ClusterUpdateOne) SaveX(ctx context.Context) *Cluster
- func (cuo *ClusterUpdateOne) Select(field string, fields ...string) *ClusterUpdateOne
- type Clusters
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type GitHubIssue
- func (ghi *GitHubIssue) FromResponse(res *gremlin.Response) error
- func (ghi *GitHubIssue) QueryAssignees() *GitHubUserQuery
- func (ghi *GitHubIssue) QueryAuthor() *GitHubUserQuery
- func (ghi *GitHubIssue) QueryClosedBy() *GitHubUserQuery
- func (ghi *GitHubIssue) String() string
- func (ghi *GitHubIssue) Unwrap() *GitHubIssue
- func (ghi *GitHubIssue) Update() *GitHubIssueUpdateOne
- type GitHubIssueClient
- func (c *GitHubIssueClient) Create() *GitHubIssueCreate
- func (c *GitHubIssueClient) CreateBulk(builders ...*GitHubIssueCreate) *GitHubIssueCreateBulk
- func (c *GitHubIssueClient) Delete() *GitHubIssueDelete
- func (c *GitHubIssueClient) DeleteOne(ghi *GitHubIssue) *GitHubIssueDeleteOne
- func (c *GitHubIssueClient) DeleteOneID(id string) *GitHubIssueDeleteOne
- func (c *GitHubIssueClient) Get(ctx context.Context, id string) (*GitHubIssue, error)
- func (c *GitHubIssueClient) GetX(ctx context.Context, id string) *GitHubIssue
- func (c *GitHubIssueClient) Hooks() []Hook
- func (c *GitHubIssueClient) Query() *GitHubIssueQuery
- func (c *GitHubIssueClient) QueryAssignees(ghi *GitHubIssue) *GitHubUserQuery
- func (c *GitHubIssueClient) QueryAuthor(ghi *GitHubIssue) *GitHubUserQuery
- func (c *GitHubIssueClient) QueryClosedBy(ghi *GitHubIssue) *GitHubUserQuery
- func (c *GitHubIssueClient) Update() *GitHubIssueUpdate
- func (c *GitHubIssueClient) UpdateOne(ghi *GitHubIssue) *GitHubIssueUpdateOne
- func (c *GitHubIssueClient) UpdateOneID(id string) *GitHubIssueUpdateOne
- func (c *GitHubIssueClient) Use(hooks ...Hook)
- type GitHubIssueCreate
- func (ghic *GitHubIssueCreate) AddAssigneeIDs(ids ...string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) AddAssignees(g ...*GitHubUser) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) Exec(ctx context.Context) error
- func (ghic *GitHubIssueCreate) ExecX(ctx context.Context)
- func (ghic *GitHubIssueCreate) Mutation() *GitHubIssueMutation
- func (ghic *GitHubIssueCreate) Save(ctx context.Context) (*GitHubIssue, error)
- func (ghic *GitHubIssueCreate) SaveX(ctx context.Context) *GitHubIssue
- func (ghic *GitHubIssueCreate) SetActiveLockReason(s string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetAuthor(g *GitHubUser) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetAuthorAssociation(s string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetAuthorID(id string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetBody(s string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetClosedAt(s string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetClosedBy(g *GitHubUser) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetClosedByID(id string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetCommentsCount(i int) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetCreatedAt(s string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetGithubID(i int) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetHTMLURL(s string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetID(s string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetLocked(b bool) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetNillableClosedByID(id *string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetNillableLocked(b *bool) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetNumber(i int) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetState(gi githubissue.State) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetTitle(s string) *GitHubIssueCreate
- func (ghic *GitHubIssueCreate) SetUpdatedAt(s string) *GitHubIssueCreate
- type GitHubIssueCreateBulk
- type GitHubIssueDelete
- type GitHubIssueDeleteOne
- type GitHubIssueEdges
- type GitHubIssueGroupBy
- func (ghigb *GitHubIssueGroupBy) Aggregate(fns ...AggregateFunc) *GitHubIssueGroupBy
- func (ghigb *GitHubIssueGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (ghigb *GitHubIssueGroupBy) BoolX(ctx context.Context) bool
- func (ghigb *GitHubIssueGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (ghigb *GitHubIssueGroupBy) BoolsX(ctx context.Context) []bool
- func (ghigb *GitHubIssueGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (ghigb *GitHubIssueGroupBy) Float64X(ctx context.Context) float64
- func (ghigb *GitHubIssueGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (ghigb *GitHubIssueGroupBy) Float64sX(ctx context.Context) []float64
- func (ghigb *GitHubIssueGroupBy) Int(ctx context.Context) (_ int, err error)
- func (ghigb *GitHubIssueGroupBy) IntX(ctx context.Context) int
- func (ghigb *GitHubIssueGroupBy) Ints(ctx context.Context) ([]int, error)
- func (ghigb *GitHubIssueGroupBy) IntsX(ctx context.Context) []int
- func (ghigb *GitHubIssueGroupBy) Scan(ctx context.Context, v interface{}) error
- func (ghigb *GitHubIssueGroupBy) ScanX(ctx context.Context, v interface{})
- func (ghigb *GitHubIssueGroupBy) String(ctx context.Context) (_ string, err error)
- func (ghigb *GitHubIssueGroupBy) StringX(ctx context.Context) string
- func (ghigb *GitHubIssueGroupBy) Strings(ctx context.Context) ([]string, error)
- func (ghigb *GitHubIssueGroupBy) StringsX(ctx context.Context) []string
- type GitHubIssueMutation
- func (m *GitHubIssueMutation) ActiveLockReason() (r string, exists bool)
- func (m *GitHubIssueMutation) AddAssigneeIDs(ids ...string)
- func (m *GitHubIssueMutation) AddCommentsCount(i int)
- func (m *GitHubIssueMutation) AddField(name string, value ent.Value) error
- func (m *GitHubIssueMutation) AddGithubID(i int)
- func (m *GitHubIssueMutation) AddNumber(i int)
- func (m *GitHubIssueMutation) AddedCommentsCount() (r int, exists bool)
- func (m *GitHubIssueMutation) AddedEdges() []string
- func (m *GitHubIssueMutation) AddedField(name string) (ent.Value, bool)
- func (m *GitHubIssueMutation) AddedFields() []string
- func (m *GitHubIssueMutation) AddedGithubID() (r int, exists bool)
- func (m *GitHubIssueMutation) AddedIDs(name string) []ent.Value
- func (m *GitHubIssueMutation) AddedNumber() (r int, exists bool)
- func (m *GitHubIssueMutation) AssigneesCleared() bool
- func (m *GitHubIssueMutation) AssigneesIDs() (ids []string)
- func (m *GitHubIssueMutation) AuthorAssociation() (r string, exists bool)
- func (m *GitHubIssueMutation) AuthorCleared() bool
- func (m *GitHubIssueMutation) AuthorID() (id string, exists bool)
- func (m *GitHubIssueMutation) AuthorIDs() (ids []string)
- func (m *GitHubIssueMutation) Body() (r string, exists bool)
- func (m *GitHubIssueMutation) ClearAssignees()
- func (m *GitHubIssueMutation) ClearAuthor()
- func (m *GitHubIssueMutation) ClearClosedBy()
- func (m *GitHubIssueMutation) ClearEdge(name string) error
- func (m *GitHubIssueMutation) ClearField(name string) error
- func (m *GitHubIssueMutation) ClearedEdges() []string
- func (m *GitHubIssueMutation) ClearedFields() []string
- func (m GitHubIssueMutation) Client() *Client
- func (m *GitHubIssueMutation) ClosedAt() (r string, exists bool)
- func (m *GitHubIssueMutation) ClosedByCleared() bool
- func (m *GitHubIssueMutation) ClosedByID() (id string, exists bool)
- func (m *GitHubIssueMutation) ClosedByIDs() (ids []string)
- func (m *GitHubIssueMutation) CommentsCount() (r int, exists bool)
- func (m *GitHubIssueMutation) CreatedAt() (r string, exists bool)
- func (m *GitHubIssueMutation) EdgeCleared(name string) bool
- func (m *GitHubIssueMutation) Field(name string) (ent.Value, bool)
- func (m *GitHubIssueMutation) FieldCleared(name string) bool
- func (m *GitHubIssueMutation) Fields() []string
- func (m *GitHubIssueMutation) GithubID() (r int, exists bool)
- func (m *GitHubIssueMutation) HTMLURL() (r string, exists bool)
- func (m *GitHubIssueMutation) ID() (id string, exists bool)
- func (m *GitHubIssueMutation) Locked() (r bool, exists bool)
- func (m *GitHubIssueMutation) Number() (r int, exists bool)
- func (m *GitHubIssueMutation) OldActiveLockReason(ctx context.Context) (v string, err error)
- func (m *GitHubIssueMutation) OldAuthorAssociation(ctx context.Context) (v string, err error)
- func (m *GitHubIssueMutation) OldBody(ctx context.Context) (v string, err error)
- func (m *GitHubIssueMutation) OldClosedAt(ctx context.Context) (v string, err error)
- func (m *GitHubIssueMutation) OldCommentsCount(ctx context.Context) (v int, err error)
- func (m *GitHubIssueMutation) OldCreatedAt(ctx context.Context) (v string, err error)
- func (m *GitHubIssueMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *GitHubIssueMutation) OldGithubID(ctx context.Context) (v int, err error)
- func (m *GitHubIssueMutation) OldHTMLURL(ctx context.Context) (v string, err error)
- func (m *GitHubIssueMutation) OldLocked(ctx context.Context) (v bool, err error)
- func (m *GitHubIssueMutation) OldNumber(ctx context.Context) (v int, err error)
- func (m *GitHubIssueMutation) OldState(ctx context.Context) (v githubissue.State, err error)
- func (m *GitHubIssueMutation) OldTitle(ctx context.Context) (v string, err error)
- func (m *GitHubIssueMutation) OldUpdatedAt(ctx context.Context) (v string, err error)
- func (m *GitHubIssueMutation) Op() Op
- func (m *GitHubIssueMutation) RemoveAssigneeIDs(ids ...string)
- func (m *GitHubIssueMutation) RemovedAssigneesIDs() (ids []string)
- func (m *GitHubIssueMutation) RemovedEdges() []string
- func (m *GitHubIssueMutation) RemovedIDs(name string) []ent.Value
- func (m *GitHubIssueMutation) ResetActiveLockReason()
- func (m *GitHubIssueMutation) ResetAssignees()
- func (m *GitHubIssueMutation) ResetAuthor()
- func (m *GitHubIssueMutation) ResetAuthorAssociation()
- func (m *GitHubIssueMutation) ResetBody()
- func (m *GitHubIssueMutation) ResetClosedAt()
- func (m *GitHubIssueMutation) ResetClosedBy()
- func (m *GitHubIssueMutation) ResetCommentsCount()
- func (m *GitHubIssueMutation) ResetCreatedAt()
- func (m *GitHubIssueMutation) ResetEdge(name string) error
- func (m *GitHubIssueMutation) ResetField(name string) error
- func (m *GitHubIssueMutation) ResetGithubID()
- func (m *GitHubIssueMutation) ResetHTMLURL()
- func (m *GitHubIssueMutation) ResetLocked()
- func (m *GitHubIssueMutation) ResetNumber()
- func (m *GitHubIssueMutation) ResetState()
- func (m *GitHubIssueMutation) ResetTitle()
- func (m *GitHubIssueMutation) ResetUpdatedAt()
- func (m *GitHubIssueMutation) SetActiveLockReason(s string)
- func (m *GitHubIssueMutation) SetAuthorAssociation(s string)
- func (m *GitHubIssueMutation) SetAuthorID(id string)
- func (m *GitHubIssueMutation) SetBody(s string)
- func (m *GitHubIssueMutation) SetClosedAt(s string)
- func (m *GitHubIssueMutation) SetClosedByID(id string)
- func (m *GitHubIssueMutation) SetCommentsCount(i int)
- func (m *GitHubIssueMutation) SetCreatedAt(s string)
- func (m *GitHubIssueMutation) SetField(name string, value ent.Value) error
- func (m *GitHubIssueMutation) SetGithubID(i int)
- func (m *GitHubIssueMutation) SetHTMLURL(s string)
- func (m *GitHubIssueMutation) SetID(id string)
- func (m *GitHubIssueMutation) SetLocked(b bool)
- func (m *GitHubIssueMutation) SetNumber(i int)
- func (m *GitHubIssueMutation) SetState(gi githubissue.State)
- func (m *GitHubIssueMutation) SetTitle(s string)
- func (m *GitHubIssueMutation) SetUpdatedAt(s string)
- func (m *GitHubIssueMutation) State() (r githubissue.State, exists bool)
- func (m *GitHubIssueMutation) Title() (r string, exists bool)
- func (m GitHubIssueMutation) Tx() (*Tx, error)
- func (m *GitHubIssueMutation) Type() string
- func (m *GitHubIssueMutation) UpdatedAt() (r string, exists bool)
- func (m *GitHubIssueMutation) Where(ps ...predicate.GitHubIssue)
- type GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) All(ctx context.Context) ([]*GitHubIssue, error)
- func (ghiq *GitHubIssueQuery) AllX(ctx context.Context) []*GitHubIssue
- func (ghiq *GitHubIssueQuery) Clone() *GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) Count(ctx context.Context) (int, error)
- func (ghiq *GitHubIssueQuery) CountX(ctx context.Context) int
- func (ghiq *GitHubIssueQuery) Exist(ctx context.Context) (bool, error)
- func (ghiq *GitHubIssueQuery) ExistX(ctx context.Context) bool
- func (ghiq *GitHubIssueQuery) First(ctx context.Context) (*GitHubIssue, error)
- func (ghiq *GitHubIssueQuery) FirstID(ctx context.Context) (id string, err error)
- func (ghiq *GitHubIssueQuery) FirstIDX(ctx context.Context) string
- func (ghiq *GitHubIssueQuery) FirstX(ctx context.Context) *GitHubIssue
- func (ghiq *GitHubIssueQuery) GroupBy(field string, fields ...string) *GitHubIssueGroupBy
- func (ghiq *GitHubIssueQuery) IDs(ctx context.Context) ([]string, error)
- func (ghiq *GitHubIssueQuery) IDsX(ctx context.Context) []string
- func (ghiq *GitHubIssueQuery) Limit(limit int) *GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) Offset(offset int) *GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) Only(ctx context.Context) (*GitHubIssue, error)
- func (ghiq *GitHubIssueQuery) OnlyID(ctx context.Context) (id string, err error)
- func (ghiq *GitHubIssueQuery) OnlyIDX(ctx context.Context) string
- func (ghiq *GitHubIssueQuery) OnlyX(ctx context.Context) *GitHubIssue
- func (ghiq *GitHubIssueQuery) Order(o ...OrderFunc) *GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) QueryAssignees() *GitHubUserQuery
- func (ghiq *GitHubIssueQuery) QueryAuthor() *GitHubUserQuery
- func (ghiq *GitHubIssueQuery) QueryClosedBy() *GitHubUserQuery
- func (ghiq *GitHubIssueQuery) Select(fields ...string) *GitHubIssueSelect
- func (ghiq *GitHubIssueQuery) Unique(unique bool) *GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) Where(ps ...predicate.GitHubIssue) *GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) WithAssignees(opts ...func(*GitHubUserQuery)) *GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) WithAuthor(opts ...func(*GitHubUserQuery)) *GitHubIssueQuery
- func (ghiq *GitHubIssueQuery) WithClosedBy(opts ...func(*GitHubUserQuery)) *GitHubIssueQuery
- type GitHubIssueSelect
- func (ghis *GitHubIssueSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ghis *GitHubIssueSelect) BoolX(ctx context.Context) bool
- func (ghis *GitHubIssueSelect) Bools(ctx context.Context) ([]bool, error)
- func (ghis *GitHubIssueSelect) BoolsX(ctx context.Context) []bool
- func (ghis *GitHubIssueSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ghis *GitHubIssueSelect) Float64X(ctx context.Context) float64
- func (ghis *GitHubIssueSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ghis *GitHubIssueSelect) Float64sX(ctx context.Context) []float64
- func (ghis *GitHubIssueSelect) Int(ctx context.Context) (_ int, err error)
- func (ghis *GitHubIssueSelect) IntX(ctx context.Context) int
- func (ghis *GitHubIssueSelect) Ints(ctx context.Context) ([]int, error)
- func (ghis *GitHubIssueSelect) IntsX(ctx context.Context) []int
- func (ghis *GitHubIssueSelect) Scan(ctx context.Context, v interface{}) error
- func (ghis *GitHubIssueSelect) ScanX(ctx context.Context, v interface{})
- func (ghis *GitHubIssueSelect) String(ctx context.Context) (_ string, err error)
- func (ghis *GitHubIssueSelect) StringX(ctx context.Context) string
- func (ghis *GitHubIssueSelect) Strings(ctx context.Context) ([]string, error)
- func (ghis *GitHubIssueSelect) StringsX(ctx context.Context) []string
- type GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) AddAssigneeIDs(ids ...string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) AddAssignees(g ...*GitHubUser) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) AddCommentsCount(i int) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) AddGithubID(i int) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) AddNumber(i int) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) ClearAssignees() *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) ClearAuthor() *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) ClearClosedBy() *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) Exec(ctx context.Context) error
- func (ghiu *GitHubIssueUpdate) ExecX(ctx context.Context)
- func (ghiu *GitHubIssueUpdate) Mutation() *GitHubIssueMutation
- func (ghiu *GitHubIssueUpdate) RemoveAssigneeIDs(ids ...string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) RemoveAssignees(g ...*GitHubUser) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) Save(ctx context.Context) (int, error)
- func (ghiu *GitHubIssueUpdate) SaveX(ctx context.Context) int
- func (ghiu *GitHubIssueUpdate) SetActiveLockReason(s string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetAuthor(g *GitHubUser) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetAuthorAssociation(s string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetAuthorID(id string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetBody(s string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetClosedAt(s string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetClosedBy(g *GitHubUser) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetClosedByID(id string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetCommentsCount(i int) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetCreatedAt(s string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetGithubID(i int) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetHTMLURL(s string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetLocked(b bool) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetNillableClosedByID(id *string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetNillableLocked(b *bool) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetNumber(i int) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetState(gi githubissue.State) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetTitle(s string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) SetUpdatedAt(s string) *GitHubIssueUpdate
- func (ghiu *GitHubIssueUpdate) Where(ps ...predicate.GitHubIssue) *GitHubIssueUpdate
- type GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) AddAssigneeIDs(ids ...string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) AddAssignees(g ...*GitHubUser) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) AddCommentsCount(i int) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) AddGithubID(i int) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) AddNumber(i int) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) ClearAssignees() *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) ClearAuthor() *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) ClearClosedBy() *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) Exec(ctx context.Context) error
- func (ghiuo *GitHubIssueUpdateOne) ExecX(ctx context.Context)
- func (ghiuo *GitHubIssueUpdateOne) Mutation() *GitHubIssueMutation
- func (ghiuo *GitHubIssueUpdateOne) RemoveAssigneeIDs(ids ...string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) RemoveAssignees(g ...*GitHubUser) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) Save(ctx context.Context) (*GitHubIssue, error)
- func (ghiuo *GitHubIssueUpdateOne) SaveX(ctx context.Context) *GitHubIssue
- func (ghiuo *GitHubIssueUpdateOne) Select(field string, fields ...string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetActiveLockReason(s string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetAuthor(g *GitHubUser) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetAuthorAssociation(s string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetAuthorID(id string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetBody(s string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetClosedAt(s string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetClosedBy(g *GitHubUser) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetClosedByID(id string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetCommentsCount(i int) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetCreatedAt(s string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetGithubID(i int) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetHTMLURL(s string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetLocked(b bool) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetNillableClosedByID(id *string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetNillableLocked(b *bool) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetNumber(i int) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetState(gi githubissue.State) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetTitle(s string) *GitHubIssueUpdateOne
- func (ghiuo *GitHubIssueUpdateOne) SetUpdatedAt(s string) *GitHubIssueUpdateOne
- type GitHubIssues
- type GitHubUser
- func (ghu *GitHubUser) FromResponse(res *gremlin.Response) error
- func (ghu *GitHubUser) QueryAssignedIssues() *GitHubIssueQuery
- func (ghu *GitHubUser) QueryClosedIssues() *GitHubIssueQuery
- func (ghu *GitHubUser) QueryCreatedIssues() *GitHubIssueQuery
- func (ghu *GitHubUser) QueryPerson() *PersonQuery
- func (ghu *GitHubUser) String() string
- func (ghu *GitHubUser) Unwrap() *GitHubUser
- func (ghu *GitHubUser) Update() *GitHubUserUpdateOne
- type GitHubUserClient
- func (c *GitHubUserClient) Create() *GitHubUserCreate
- func (c *GitHubUserClient) CreateBulk(builders ...*GitHubUserCreate) *GitHubUserCreateBulk
- func (c *GitHubUserClient) Delete() *GitHubUserDelete
- func (c *GitHubUserClient) DeleteOne(ghu *GitHubUser) *GitHubUserDeleteOne
- func (c *GitHubUserClient) DeleteOneID(id string) *GitHubUserDeleteOne
- func (c *GitHubUserClient) Get(ctx context.Context, id string) (*GitHubUser, error)
- func (c *GitHubUserClient) GetX(ctx context.Context, id string) *GitHubUser
- func (c *GitHubUserClient) Hooks() []Hook
- func (c *GitHubUserClient) Query() *GitHubUserQuery
- func (c *GitHubUserClient) QueryAssignedIssues(ghu *GitHubUser) *GitHubIssueQuery
- func (c *GitHubUserClient) QueryClosedIssues(ghu *GitHubUser) *GitHubIssueQuery
- func (c *GitHubUserClient) QueryCreatedIssues(ghu *GitHubUser) *GitHubIssueQuery
- func (c *GitHubUserClient) QueryPerson(ghu *GitHubUser) *PersonQuery
- func (c *GitHubUserClient) Update() *GitHubUserUpdate
- func (c *GitHubUserClient) UpdateOne(ghu *GitHubUser) *GitHubUserUpdateOne
- func (c *GitHubUserClient) UpdateOneID(id string) *GitHubUserUpdateOne
- func (c *GitHubUserClient) Use(hooks ...Hook)
- type GitHubUserCreate
- func (ghuc *GitHubUserCreate) AddAssignedIssueIDs(ids ...string) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) AddAssignedIssues(g ...*GitHubIssue) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) AddClosedIssueIDs(ids ...string) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) AddClosedIssues(g ...*GitHubIssue) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) AddCreatedIssueIDs(ids ...string) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) AddCreatedIssues(g ...*GitHubIssue) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) Exec(ctx context.Context) error
- func (ghuc *GitHubUserCreate) ExecX(ctx context.Context)
- func (ghuc *GitHubUserCreate) Mutation() *GitHubUserMutation
- func (ghuc *GitHubUserCreate) Save(ctx context.Context) (*GitHubUser, error)
- func (ghuc *GitHubUserCreate) SaveX(ctx context.Context) *GitHubUser
- func (ghuc *GitHubUserCreate) SetEmail(s string) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) SetGithubID(i int) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) SetID(s string) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) SetLogin(s string) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) SetName(s string) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) SetNillablePersonID(id *string) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) SetPerson(p *Person) *GitHubUserCreate
- func (ghuc *GitHubUserCreate) SetPersonID(id string) *GitHubUserCreate
- type GitHubUserCreateBulk
- type GitHubUserDelete
- type GitHubUserDeleteOne
- type GitHubUserEdges
- type GitHubUserGroupBy
- func (ghugb *GitHubUserGroupBy) Aggregate(fns ...AggregateFunc) *GitHubUserGroupBy
- func (ghugb *GitHubUserGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (ghugb *GitHubUserGroupBy) BoolX(ctx context.Context) bool
- func (ghugb *GitHubUserGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (ghugb *GitHubUserGroupBy) BoolsX(ctx context.Context) []bool
- func (ghugb *GitHubUserGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (ghugb *GitHubUserGroupBy) Float64X(ctx context.Context) float64
- func (ghugb *GitHubUserGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (ghugb *GitHubUserGroupBy) Float64sX(ctx context.Context) []float64
- func (ghugb *GitHubUserGroupBy) Int(ctx context.Context) (_ int, err error)
- func (ghugb *GitHubUserGroupBy) IntX(ctx context.Context) int
- func (ghugb *GitHubUserGroupBy) Ints(ctx context.Context) ([]int, error)
- func (ghugb *GitHubUserGroupBy) IntsX(ctx context.Context) []int
- func (ghugb *GitHubUserGroupBy) Scan(ctx context.Context, v interface{}) error
- func (ghugb *GitHubUserGroupBy) ScanX(ctx context.Context, v interface{})
- func (ghugb *GitHubUserGroupBy) String(ctx context.Context) (_ string, err error)
- func (ghugb *GitHubUserGroupBy) StringX(ctx context.Context) string
- func (ghugb *GitHubUserGroupBy) Strings(ctx context.Context) ([]string, error)
- func (ghugb *GitHubUserGroupBy) StringsX(ctx context.Context) []string
- type GitHubUserMutation
- func (m *GitHubUserMutation) AddAssignedIssueIDs(ids ...string)
- func (m *GitHubUserMutation) AddClosedIssueIDs(ids ...string)
- func (m *GitHubUserMutation) AddCreatedIssueIDs(ids ...string)
- func (m *GitHubUserMutation) AddField(name string, value ent.Value) error
- func (m *GitHubUserMutation) AddGithubID(i int)
- func (m *GitHubUserMutation) AddedEdges() []string
- func (m *GitHubUserMutation) AddedField(name string) (ent.Value, bool)
- func (m *GitHubUserMutation) AddedFields() []string
- func (m *GitHubUserMutation) AddedGithubID() (r int, exists bool)
- func (m *GitHubUserMutation) AddedIDs(name string) []ent.Value
- func (m *GitHubUserMutation) AssignedIssuesCleared() bool
- func (m *GitHubUserMutation) AssignedIssuesIDs() (ids []string)
- func (m *GitHubUserMutation) ClearAssignedIssues()
- func (m *GitHubUserMutation) ClearClosedIssues()
- func (m *GitHubUserMutation) ClearCreatedIssues()
- func (m *GitHubUserMutation) ClearEdge(name string) error
- func (m *GitHubUserMutation) ClearField(name string) error
- func (m *GitHubUserMutation) ClearPerson()
- func (m *GitHubUserMutation) ClearedEdges() []string
- func (m *GitHubUserMutation) ClearedFields() []string
- func (m GitHubUserMutation) Client() *Client
- func (m *GitHubUserMutation) ClosedIssuesCleared() bool
- func (m *GitHubUserMutation) ClosedIssuesIDs() (ids []string)
- func (m *GitHubUserMutation) CreatedIssuesCleared() bool
- func (m *GitHubUserMutation) CreatedIssuesIDs() (ids []string)
- func (m *GitHubUserMutation) EdgeCleared(name string) bool
- func (m *GitHubUserMutation) Email() (r string, exists bool)
- func (m *GitHubUserMutation) Field(name string) (ent.Value, bool)
- func (m *GitHubUserMutation) FieldCleared(name string) bool
- func (m *GitHubUserMutation) Fields() []string
- func (m *GitHubUserMutation) GithubID() (r int, exists bool)
- func (m *GitHubUserMutation) ID() (id string, exists bool)
- func (m *GitHubUserMutation) Login() (r string, exists bool)
- func (m *GitHubUserMutation) Name() (r string, exists bool)
- func (m *GitHubUserMutation) OldEmail(ctx context.Context) (v string, err error)
- func (m *GitHubUserMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *GitHubUserMutation) OldGithubID(ctx context.Context) (v int, err error)
- func (m *GitHubUserMutation) OldLogin(ctx context.Context) (v string, err error)
- func (m *GitHubUserMutation) OldName(ctx context.Context) (v string, err error)
- func (m *GitHubUserMutation) Op() Op
- func (m *GitHubUserMutation) PersonCleared() bool
- func (m *GitHubUserMutation) PersonID() (id string, exists bool)
- func (m *GitHubUserMutation) PersonIDs() (ids []string)
- func (m *GitHubUserMutation) RemoveAssignedIssueIDs(ids ...string)
- func (m *GitHubUserMutation) RemoveClosedIssueIDs(ids ...string)
- func (m *GitHubUserMutation) RemoveCreatedIssueIDs(ids ...string)
- func (m *GitHubUserMutation) RemovedAssignedIssuesIDs() (ids []string)
- func (m *GitHubUserMutation) RemovedClosedIssuesIDs() (ids []string)
- func (m *GitHubUserMutation) RemovedCreatedIssuesIDs() (ids []string)
- func (m *GitHubUserMutation) RemovedEdges() []string
- func (m *GitHubUserMutation) RemovedIDs(name string) []ent.Value
- func (m *GitHubUserMutation) ResetAssignedIssues()
- func (m *GitHubUserMutation) ResetClosedIssues()
- func (m *GitHubUserMutation) ResetCreatedIssues()
- func (m *GitHubUserMutation) ResetEdge(name string) error
- func (m *GitHubUserMutation) ResetEmail()
- func (m *GitHubUserMutation) ResetField(name string) error
- func (m *GitHubUserMutation) ResetGithubID()
- func (m *GitHubUserMutation) ResetLogin()
- func (m *GitHubUserMutation) ResetName()
- func (m *GitHubUserMutation) ResetPerson()
- func (m *GitHubUserMutation) SetEmail(s string)
- func (m *GitHubUserMutation) SetField(name string, value ent.Value) error
- func (m *GitHubUserMutation) SetGithubID(i int)
- func (m *GitHubUserMutation) SetID(id string)
- func (m *GitHubUserMutation) SetLogin(s string)
- func (m *GitHubUserMutation) SetName(s string)
- func (m *GitHubUserMutation) SetPersonID(id string)
- func (m GitHubUserMutation) Tx() (*Tx, error)
- func (m *GitHubUserMutation) Type() string
- func (m *GitHubUserMutation) Where(ps ...predicate.GitHubUser)
- type GitHubUserQuery
- func (ghuq *GitHubUserQuery) All(ctx context.Context) ([]*GitHubUser, error)
- func (ghuq *GitHubUserQuery) AllX(ctx context.Context) []*GitHubUser
- func (ghuq *GitHubUserQuery) Clone() *GitHubUserQuery
- func (ghuq *GitHubUserQuery) Count(ctx context.Context) (int, error)
- func (ghuq *GitHubUserQuery) CountX(ctx context.Context) int
- func (ghuq *GitHubUserQuery) Exist(ctx context.Context) (bool, error)
- func (ghuq *GitHubUserQuery) ExistX(ctx context.Context) bool
- func (ghuq *GitHubUserQuery) First(ctx context.Context) (*GitHubUser, error)
- func (ghuq *GitHubUserQuery) FirstID(ctx context.Context) (id string, err error)
- func (ghuq *GitHubUserQuery) FirstIDX(ctx context.Context) string
- func (ghuq *GitHubUserQuery) FirstX(ctx context.Context) *GitHubUser
- func (ghuq *GitHubUserQuery) GroupBy(field string, fields ...string) *GitHubUserGroupBy
- func (ghuq *GitHubUserQuery) IDs(ctx context.Context) ([]string, error)
- func (ghuq *GitHubUserQuery) IDsX(ctx context.Context) []string
- func (ghuq *GitHubUserQuery) Limit(limit int) *GitHubUserQuery
- func (ghuq *GitHubUserQuery) Offset(offset int) *GitHubUserQuery
- func (ghuq *GitHubUserQuery) Only(ctx context.Context) (*GitHubUser, error)
- func (ghuq *GitHubUserQuery) OnlyID(ctx context.Context) (id string, err error)
- func (ghuq *GitHubUserQuery) OnlyIDX(ctx context.Context) string
- func (ghuq *GitHubUserQuery) OnlyX(ctx context.Context) *GitHubUser
- func (ghuq *GitHubUserQuery) Order(o ...OrderFunc) *GitHubUserQuery
- func (ghuq *GitHubUserQuery) QueryAssignedIssues() *GitHubIssueQuery
- func (ghuq *GitHubUserQuery) QueryClosedIssues() *GitHubIssueQuery
- func (ghuq *GitHubUserQuery) QueryCreatedIssues() *GitHubIssueQuery
- func (ghuq *GitHubUserQuery) QueryPerson() *PersonQuery
- func (ghuq *GitHubUserQuery) Select(fields ...string) *GitHubUserSelect
- func (ghuq *GitHubUserQuery) Unique(unique bool) *GitHubUserQuery
- func (ghuq *GitHubUserQuery) Where(ps ...predicate.GitHubUser) *GitHubUserQuery
- func (ghuq *GitHubUserQuery) WithAssignedIssues(opts ...func(*GitHubIssueQuery)) *GitHubUserQuery
- func (ghuq *GitHubUserQuery) WithClosedIssues(opts ...func(*GitHubIssueQuery)) *GitHubUserQuery
- func (ghuq *GitHubUserQuery) WithCreatedIssues(opts ...func(*GitHubIssueQuery)) *GitHubUserQuery
- func (ghuq *GitHubUserQuery) WithPerson(opts ...func(*PersonQuery)) *GitHubUserQuery
- type GitHubUserSelect
- func (ghus *GitHubUserSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ghus *GitHubUserSelect) BoolX(ctx context.Context) bool
- func (ghus *GitHubUserSelect) Bools(ctx context.Context) ([]bool, error)
- func (ghus *GitHubUserSelect) BoolsX(ctx context.Context) []bool
- func (ghus *GitHubUserSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ghus *GitHubUserSelect) Float64X(ctx context.Context) float64
- func (ghus *GitHubUserSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ghus *GitHubUserSelect) Float64sX(ctx context.Context) []float64
- func (ghus *GitHubUserSelect) Int(ctx context.Context) (_ int, err error)
- func (ghus *GitHubUserSelect) IntX(ctx context.Context) int
- func (ghus *GitHubUserSelect) Ints(ctx context.Context) ([]int, error)
- func (ghus *GitHubUserSelect) IntsX(ctx context.Context) []int
- func (ghus *GitHubUserSelect) Scan(ctx context.Context, v interface{}) error
- func (ghus *GitHubUserSelect) ScanX(ctx context.Context, v interface{})
- func (ghus *GitHubUserSelect) String(ctx context.Context) (_ string, err error)
- func (ghus *GitHubUserSelect) StringX(ctx context.Context) string
- func (ghus *GitHubUserSelect) Strings(ctx context.Context) ([]string, error)
- func (ghus *GitHubUserSelect) StringsX(ctx context.Context) []string
- type GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) AddAssignedIssueIDs(ids ...string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) AddAssignedIssues(g ...*GitHubIssue) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) AddClosedIssueIDs(ids ...string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) AddClosedIssues(g ...*GitHubIssue) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) AddCreatedIssueIDs(ids ...string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) AddCreatedIssues(g ...*GitHubIssue) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) AddGithubID(i int) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) ClearAssignedIssues() *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) ClearClosedIssues() *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) ClearCreatedIssues() *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) ClearPerson() *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) Exec(ctx context.Context) error
- func (ghuu *GitHubUserUpdate) ExecX(ctx context.Context)
- func (ghuu *GitHubUserUpdate) Mutation() *GitHubUserMutation
- func (ghuu *GitHubUserUpdate) RemoveAssignedIssueIDs(ids ...string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) RemoveAssignedIssues(g ...*GitHubIssue) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) RemoveClosedIssueIDs(ids ...string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) RemoveClosedIssues(g ...*GitHubIssue) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) RemoveCreatedIssueIDs(ids ...string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) RemoveCreatedIssues(g ...*GitHubIssue) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) Save(ctx context.Context) (int, error)
- func (ghuu *GitHubUserUpdate) SaveX(ctx context.Context) int
- func (ghuu *GitHubUserUpdate) SetEmail(s string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) SetGithubID(i int) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) SetLogin(s string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) SetName(s string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) SetNillablePersonID(id *string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) SetPerson(p *Person) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) SetPersonID(id string) *GitHubUserUpdate
- func (ghuu *GitHubUserUpdate) Where(ps ...predicate.GitHubUser) *GitHubUserUpdate
- type GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) AddAssignedIssueIDs(ids ...string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) AddAssignedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) AddClosedIssueIDs(ids ...string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) AddClosedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) AddCreatedIssueIDs(ids ...string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) AddCreatedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) AddGithubID(i int) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) ClearAssignedIssues() *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) ClearClosedIssues() *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) ClearCreatedIssues() *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) ClearPerson() *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) Exec(ctx context.Context) error
- func (ghuuo *GitHubUserUpdateOne) ExecX(ctx context.Context)
- func (ghuuo *GitHubUserUpdateOne) Mutation() *GitHubUserMutation
- func (ghuuo *GitHubUserUpdateOne) RemoveAssignedIssueIDs(ids ...string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) RemoveAssignedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) RemoveClosedIssueIDs(ids ...string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) RemoveClosedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) RemoveCreatedIssueIDs(ids ...string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) RemoveCreatedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) Save(ctx context.Context) (*GitHubUser, error)
- func (ghuuo *GitHubUserUpdateOne) SaveX(ctx context.Context) *GitHubUser
- func (ghuuo *GitHubUserUpdateOne) Select(field string, fields ...string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) SetEmail(s string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) SetGithubID(i int) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) SetLogin(s string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) SetName(s string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) SetNillablePersonID(id *string) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) SetPerson(p *Person) *GitHubUserUpdateOne
- func (ghuuo *GitHubUserUpdateOne) SetPersonID(id string) *GitHubUserUpdateOne
- type GitHubUsers
- type Hook
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Person
- type PersonClient
- func (c *PersonClient) Create() *PersonCreate
- func (c *PersonClient) CreateBulk(builders ...*PersonCreate) *PersonCreateBulk
- func (c *PersonClient) Delete() *PersonDelete
- func (c *PersonClient) DeleteOne(pe *Person) *PersonDeleteOne
- func (c *PersonClient) DeleteOneID(id string) *PersonDeleteOne
- func (c *PersonClient) Get(ctx context.Context, id string) (*Person, error)
- func (c *PersonClient) GetX(ctx context.Context, id string) *Person
- func (c *PersonClient) Hooks() []Hook
- func (c *PersonClient) Query() *PersonQuery
- func (c *PersonClient) QueryGithubAccount(pe *Person) *GitHubUserQuery
- func (c *PersonClient) Update() *PersonUpdate
- func (c *PersonClient) UpdateOne(pe *Person) *PersonUpdateOne
- func (c *PersonClient) UpdateOneID(id string) *PersonUpdateOne
- func (c *PersonClient) Use(hooks ...Hook)
- type PersonCreate
- func (pc *PersonCreate) Exec(ctx context.Context) error
- func (pc *PersonCreate) ExecX(ctx context.Context)
- func (pc *PersonCreate) Mutation() *PersonMutation
- func (pc *PersonCreate) Save(ctx context.Context) (*Person, error)
- func (pc *PersonCreate) SaveX(ctx context.Context) *Person
- func (pc *PersonCreate) SetEmail(s string) *PersonCreate
- func (pc *PersonCreate) SetGithubAccount(g *GitHubUser) *PersonCreate
- func (pc *PersonCreate) SetGithubAccountID(id string) *PersonCreate
- func (pc *PersonCreate) SetID(s string) *PersonCreate
- func (pc *PersonCreate) SetIsGiantSwarmEmployee(b bool) *PersonCreate
- func (pc *PersonCreate) SetName(s string) *PersonCreate
- func (pc *PersonCreate) SetNillableGithubAccountID(id *string) *PersonCreate
- type PersonCreateBulk
- type PersonDelete
- type PersonDeleteOne
- type PersonEdges
- type PersonGroupBy
- func (pgb *PersonGroupBy) Aggregate(fns ...AggregateFunc) *PersonGroupBy
- func (pgb *PersonGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (pgb *PersonGroupBy) BoolX(ctx context.Context) bool
- func (pgb *PersonGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (pgb *PersonGroupBy) BoolsX(ctx context.Context) []bool
- func (pgb *PersonGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (pgb *PersonGroupBy) Float64X(ctx context.Context) float64
- func (pgb *PersonGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (pgb *PersonGroupBy) Float64sX(ctx context.Context) []float64
- func (pgb *PersonGroupBy) Int(ctx context.Context) (_ int, err error)
- func (pgb *PersonGroupBy) IntX(ctx context.Context) int
- func (pgb *PersonGroupBy) Ints(ctx context.Context) ([]int, error)
- func (pgb *PersonGroupBy) IntsX(ctx context.Context) []int
- func (pgb *PersonGroupBy) Scan(ctx context.Context, v interface{}) error
- func (pgb *PersonGroupBy) ScanX(ctx context.Context, v interface{})
- func (pgb *PersonGroupBy) String(ctx context.Context) (_ string, err error)
- func (pgb *PersonGroupBy) StringX(ctx context.Context) string
- func (pgb *PersonGroupBy) Strings(ctx context.Context) ([]string, error)
- func (pgb *PersonGroupBy) StringsX(ctx context.Context) []string
- type PersonMutation
- func (m *PersonMutation) AddField(name string, value ent.Value) error
- func (m *PersonMutation) AddedEdges() []string
- func (m *PersonMutation) AddedField(name string) (ent.Value, bool)
- func (m *PersonMutation) AddedFields() []string
- func (m *PersonMutation) AddedIDs(name string) []ent.Value
- func (m *PersonMutation) ClearEdge(name string) error
- func (m *PersonMutation) ClearField(name string) error
- func (m *PersonMutation) ClearGithubAccount()
- func (m *PersonMutation) ClearedEdges() []string
- func (m *PersonMutation) ClearedFields() []string
- func (m PersonMutation) Client() *Client
- func (m *PersonMutation) EdgeCleared(name string) bool
- func (m *PersonMutation) Email() (r string, exists bool)
- func (m *PersonMutation) Field(name string) (ent.Value, bool)
- func (m *PersonMutation) FieldCleared(name string) bool
- func (m *PersonMutation) Fields() []string
- func (m *PersonMutation) GithubAccountCleared() bool
- func (m *PersonMutation) GithubAccountID() (id string, exists bool)
- func (m *PersonMutation) GithubAccountIDs() (ids []string)
- func (m *PersonMutation) ID() (id string, exists bool)
- func (m *PersonMutation) IsGiantSwarmEmployee() (r bool, exists bool)
- func (m *PersonMutation) Name() (r string, exists bool)
- func (m *PersonMutation) OldEmail(ctx context.Context) (v string, err error)
- func (m *PersonMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *PersonMutation) OldIsGiantSwarmEmployee(ctx context.Context) (v bool, err error)
- func (m *PersonMutation) OldName(ctx context.Context) (v string, err error)
- func (m *PersonMutation) Op() Op
- func (m *PersonMutation) RemovedEdges() []string
- func (m *PersonMutation) RemovedIDs(name string) []ent.Value
- func (m *PersonMutation) ResetEdge(name string) error
- func (m *PersonMutation) ResetEmail()
- func (m *PersonMutation) ResetField(name string) error
- func (m *PersonMutation) ResetGithubAccount()
- func (m *PersonMutation) ResetIsGiantSwarmEmployee()
- func (m *PersonMutation) ResetName()
- func (m *PersonMutation) SetEmail(s string)
- func (m *PersonMutation) SetField(name string, value ent.Value) error
- func (m *PersonMutation) SetGithubAccountID(id string)
- func (m *PersonMutation) SetID(id string)
- func (m *PersonMutation) SetIsGiantSwarmEmployee(b bool)
- func (m *PersonMutation) SetName(s string)
- func (m PersonMutation) Tx() (*Tx, error)
- func (m *PersonMutation) Type() string
- func (m *PersonMutation) Where(ps ...predicate.Person)
- type PersonQuery
- func (pq *PersonQuery) All(ctx context.Context) ([]*Person, error)
- func (pq *PersonQuery) AllX(ctx context.Context) []*Person
- func (pq *PersonQuery) Clone() *PersonQuery
- func (pq *PersonQuery) Count(ctx context.Context) (int, error)
- func (pq *PersonQuery) CountX(ctx context.Context) int
- func (pq *PersonQuery) Exist(ctx context.Context) (bool, error)
- func (pq *PersonQuery) ExistX(ctx context.Context) bool
- func (pq *PersonQuery) First(ctx context.Context) (*Person, error)
- func (pq *PersonQuery) FirstID(ctx context.Context) (id string, err error)
- func (pq *PersonQuery) FirstIDX(ctx context.Context) string
- func (pq *PersonQuery) FirstX(ctx context.Context) *Person
- func (pq *PersonQuery) GroupBy(field string, fields ...string) *PersonGroupBy
- func (pq *PersonQuery) IDs(ctx context.Context) ([]string, error)
- func (pq *PersonQuery) IDsX(ctx context.Context) []string
- func (pq *PersonQuery) Limit(limit int) *PersonQuery
- func (pq *PersonQuery) Offset(offset int) *PersonQuery
- func (pq *PersonQuery) Only(ctx context.Context) (*Person, error)
- func (pq *PersonQuery) OnlyID(ctx context.Context) (id string, err error)
- func (pq *PersonQuery) OnlyIDX(ctx context.Context) string
- func (pq *PersonQuery) OnlyX(ctx context.Context) *Person
- func (pq *PersonQuery) Order(o ...OrderFunc) *PersonQuery
- func (pq *PersonQuery) QueryGithubAccount() *GitHubUserQuery
- func (pq *PersonQuery) Select(fields ...string) *PersonSelect
- func (pq *PersonQuery) Unique(unique bool) *PersonQuery
- func (pq *PersonQuery) Where(ps ...predicate.Person) *PersonQuery
- func (pq *PersonQuery) WithGithubAccount(opts ...func(*GitHubUserQuery)) *PersonQuery
- type PersonSelect
- func (ps *PersonSelect) Bool(ctx context.Context) (_ bool, err error)
- func (ps *PersonSelect) BoolX(ctx context.Context) bool
- func (ps *PersonSelect) Bools(ctx context.Context) ([]bool, error)
- func (ps *PersonSelect) BoolsX(ctx context.Context) []bool
- func (ps *PersonSelect) Float64(ctx context.Context) (_ float64, err error)
- func (ps *PersonSelect) Float64X(ctx context.Context) float64
- func (ps *PersonSelect) Float64s(ctx context.Context) ([]float64, error)
- func (ps *PersonSelect) Float64sX(ctx context.Context) []float64
- func (ps *PersonSelect) Int(ctx context.Context) (_ int, err error)
- func (ps *PersonSelect) IntX(ctx context.Context) int
- func (ps *PersonSelect) Ints(ctx context.Context) ([]int, error)
- func (ps *PersonSelect) IntsX(ctx context.Context) []int
- func (ps *PersonSelect) Scan(ctx context.Context, v interface{}) error
- func (ps *PersonSelect) ScanX(ctx context.Context, v interface{})
- func (ps *PersonSelect) String(ctx context.Context) (_ string, err error)
- func (ps *PersonSelect) StringX(ctx context.Context) string
- func (ps *PersonSelect) Strings(ctx context.Context) ([]string, error)
- func (ps *PersonSelect) StringsX(ctx context.Context) []string
- type PersonUpdate
- func (pu *PersonUpdate) ClearGithubAccount() *PersonUpdate
- func (pu *PersonUpdate) Exec(ctx context.Context) error
- func (pu *PersonUpdate) ExecX(ctx context.Context)
- func (pu *PersonUpdate) Mutation() *PersonMutation
- func (pu *PersonUpdate) Save(ctx context.Context) (int, error)
- func (pu *PersonUpdate) SaveX(ctx context.Context) int
- func (pu *PersonUpdate) SetEmail(s string) *PersonUpdate
- func (pu *PersonUpdate) SetGithubAccount(g *GitHubUser) *PersonUpdate
- func (pu *PersonUpdate) SetGithubAccountID(id string) *PersonUpdate
- func (pu *PersonUpdate) SetIsGiantSwarmEmployee(b bool) *PersonUpdate
- func (pu *PersonUpdate) SetName(s string) *PersonUpdate
- func (pu *PersonUpdate) SetNillableGithubAccountID(id *string) *PersonUpdate
- func (pu *PersonUpdate) Where(ps ...predicate.Person) *PersonUpdate
- type PersonUpdateOne
- func (puo *PersonUpdateOne) ClearGithubAccount() *PersonUpdateOne
- func (puo *PersonUpdateOne) Exec(ctx context.Context) error
- func (puo *PersonUpdateOne) ExecX(ctx context.Context)
- func (puo *PersonUpdateOne) Mutation() *PersonMutation
- func (puo *PersonUpdateOne) Save(ctx context.Context) (*Person, error)
- func (puo *PersonUpdateOne) SaveX(ctx context.Context) *Person
- func (puo *PersonUpdateOne) Select(field string, fields ...string) *PersonUpdateOne
- func (puo *PersonUpdateOne) SetEmail(s string) *PersonUpdateOne
- func (puo *PersonUpdateOne) SetGithubAccount(g *GitHubUser) *PersonUpdateOne
- func (puo *PersonUpdateOne) SetGithubAccountID(id string) *PersonUpdateOne
- func (puo *PersonUpdateOne) SetIsGiantSwarmEmployee(b bool) *PersonUpdateOne
- func (puo *PersonUpdateOne) SetName(s string) *PersonUpdateOne
- func (puo *PersonUpdateOne) SetNillableGithubAccountID(id *string) *PersonUpdateOne
- type Persons
- type Policy
- type Query
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- 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. TypeCluster = "Cluster" TypeGitHubIssue = "GitHubIssue" TypeGitHubUser = "GitHubUser" TypePerson = "Person" )
const DefaultCountLabel = "count"
DefaultCountLabel is the default label name for the Count aggregation function. It should be used as the struct-tag for decoding, or a map key for interaction with the returned response. In order to "count" 2 or more fields and avoid conflicting, use the `ent.As(ent.Count(field), "custom_name")` function with custom name in order to override it.
const DefaultMaxLabel = "max"
DefaultMaxLabel is the default label name for the Max aggregation function. It should be used as the struct-tag for decoding, or a map key for interaction with the returned response. In order to "max" 2 or more fields and avoid conflicting, use the `ent.As(ent.Max(field), "custom_name")` function with custom name in order to override it.
const DefaultMeanLabel = "mean"
DefaultMeanLabel is the default label name for the Mean aggregation function. It should be used as the struct-tag for decoding, or a map key for interaction with the returned response. In order to "mean" 2 or more fields and avoid conflicting, use the `ent.As(ent.Mean(field), "custom_name")` function with custom name in order to override it.
const DefaultMinLabel = "min"
DefaultMinLabel is the default label name for the Min aggregation function. It should be used as the struct-tag for decoding, or a map key for interaction with the returned response. In order to "min" 2 or more fields and avoid conflicting, use the `ent.As(ent.Min(field), "custom_name")` function with custom name in order to override it.
const DefaultSumLabel = "sum"
DefaultSumLabel is the default label name for the Sum aggregation function. It should be used as the struct-tag for decoding, or a map key for interaction with the returned response. In order to "sum" 2 or more fields and avoid conflicting, use the `ent.As(ent.Sum(field), "custom_name")` function with custom name in order to override it.
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. It gets two labels as parameters. The first used in the `As` step for the predicate, and the second is an optional name for the next predicates (or for later usage).
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 { // Cluster is the client for interacting with the Cluster builders. Cluster *ClusterClient // GitHubIssue is the client for interacting with the GitHubIssue builders. GitHubIssue *GitHubIssueClient // GitHubUser is the client for interacting with the GitHubUser builders. GitHubUser *GitHubUserClient // Person is the client for interacting with the Person builders. Person *PersonClient // 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(). Cluster. Query(). Count(ctx)
type Cluster ¶
type Cluster struct { // ID of the ent. ID int `json:"id,omitempty"` // contains filtered or unexported fields }
Cluster is the model entity for the Cluster schema.
func (*Cluster) FromResponse ¶
FromResponse scans the gremlin response data into Cluster.
func (*Cluster) Unwrap ¶
Unwrap unwraps the Cluster 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 (*Cluster) Update ¶
func (c *Cluster) Update() *ClusterUpdateOne
Update returns a builder for updating this Cluster. Note that you need to call Cluster.Unwrap() before calling this method if this Cluster was returned from a transaction, and the transaction was committed or rolled back.
type ClusterClient ¶
type ClusterClient struct {
// contains filtered or unexported fields
}
ClusterClient is a client for the Cluster schema.
func NewClusterClient ¶
func NewClusterClient(c config) *ClusterClient
NewClusterClient returns a client for the Cluster from the given config.
func (*ClusterClient) Create ¶
func (c *ClusterClient) Create() *ClusterCreate
Create returns a create builder for Cluster.
func (*ClusterClient) CreateBulk ¶
func (c *ClusterClient) CreateBulk(builders ...*ClusterCreate) *ClusterCreateBulk
CreateBulk returns a builder for creating a bulk of Cluster entities.
func (*ClusterClient) Delete ¶
func (c *ClusterClient) Delete() *ClusterDelete
Delete returns a delete builder for Cluster.
func (*ClusterClient) DeleteOne ¶
func (c *ClusterClient) DeleteOne(cl *Cluster) *ClusterDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*ClusterClient) DeleteOneID ¶
func (c *ClusterClient) DeleteOneID(id int) *ClusterDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*ClusterClient) GetX ¶
func (c *ClusterClient) GetX(ctx context.Context, id int) *Cluster
GetX is like Get, but panics if an error occurs.
func (*ClusterClient) Hooks ¶
func (c *ClusterClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ClusterClient) Query ¶
func (c *ClusterClient) Query() *ClusterQuery
Query returns a query builder for Cluster.
func (*ClusterClient) Update ¶
func (c *ClusterClient) Update() *ClusterUpdate
Update returns an update builder for Cluster.
func (*ClusterClient) UpdateOne ¶
func (c *ClusterClient) UpdateOne(cl *Cluster) *ClusterUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ClusterClient) UpdateOneID ¶
func (c *ClusterClient) UpdateOneID(id int) *ClusterUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ClusterClient) Use ¶
func (c *ClusterClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `cluster.Hooks(f(g(h())))`.
type ClusterCreate ¶
type ClusterCreate struct {
// contains filtered or unexported fields
}
ClusterCreate is the builder for creating a Cluster entity.
func (*ClusterCreate) Exec ¶
func (cc *ClusterCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClusterCreate) ExecX ¶
func (cc *ClusterCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClusterCreate) Mutation ¶
func (cc *ClusterCreate) Mutation() *ClusterMutation
Mutation returns the ClusterMutation object of the builder.
type ClusterCreateBulk ¶
type ClusterCreateBulk struct {
// contains filtered or unexported fields
}
ClusterCreateBulk is the builder for creating many Cluster entities in bulk.
type ClusterDelete ¶
type ClusterDelete struct {
// contains filtered or unexported fields
}
ClusterDelete is the builder for deleting a Cluster entity.
func (*ClusterDelete) Exec ¶
func (cd *ClusterDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ClusterDelete) ExecX ¶
func (cd *ClusterDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ClusterDelete) Where ¶
func (cd *ClusterDelete) Where(ps ...predicate.Cluster) *ClusterDelete
Where appends a list predicates to the ClusterDelete builder.
type ClusterDeleteOne ¶
type ClusterDeleteOne struct {
// contains filtered or unexported fields
}
ClusterDeleteOne is the builder for deleting a single Cluster entity.
func (*ClusterDeleteOne) Exec ¶
func (cdo *ClusterDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ClusterDeleteOne) ExecX ¶
func (cdo *ClusterDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ClusterGroupBy ¶
type ClusterGroupBy struct {
// contains filtered or unexported fields
}
ClusterGroupBy is the group-by builder for Cluster entities.
func (*ClusterGroupBy) Aggregate ¶
func (cgb *ClusterGroupBy) Aggregate(fns ...AggregateFunc) *ClusterGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ClusterGroupBy) Bool ¶
func (cgb *ClusterGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ClusterGroupBy) BoolX ¶
func (cgb *ClusterGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ClusterGroupBy) Bools ¶
func (cgb *ClusterGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*ClusterGroupBy) BoolsX ¶
func (cgb *ClusterGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ClusterGroupBy) Float64 ¶
func (cgb *ClusterGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ClusterGroupBy) Float64X ¶
func (cgb *ClusterGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ClusterGroupBy) Float64s ¶
func (cgb *ClusterGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*ClusterGroupBy) Float64sX ¶
func (cgb *ClusterGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ClusterGroupBy) Int ¶
func (cgb *ClusterGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ClusterGroupBy) IntX ¶
func (cgb *ClusterGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ClusterGroupBy) Ints ¶
func (cgb *ClusterGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*ClusterGroupBy) IntsX ¶
func (cgb *ClusterGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ClusterGroupBy) Scan ¶
func (cgb *ClusterGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*ClusterGroupBy) ScanX ¶
func (cgb *ClusterGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ClusterGroupBy) String ¶
func (cgb *ClusterGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*ClusterGroupBy) StringX ¶
func (cgb *ClusterGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ClusterMutation ¶
type ClusterMutation struct {
// contains filtered or unexported fields
}
ClusterMutation represents an operation that mutates the Cluster nodes in the graph.
func (*ClusterMutation) AddField ¶
func (m *ClusterMutation) 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 (*ClusterMutation) AddedEdges ¶
func (m *ClusterMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ClusterMutation) AddedField ¶
func (m *ClusterMutation) 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 (*ClusterMutation) AddedFields ¶
func (m *ClusterMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ClusterMutation) AddedIDs ¶
func (m *ClusterMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ClusterMutation) ClearEdge ¶
func (m *ClusterMutation) 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 (*ClusterMutation) ClearField ¶
func (m *ClusterMutation) 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 (*ClusterMutation) ClearedEdges ¶
func (m *ClusterMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ClusterMutation) ClearedFields ¶
func (m *ClusterMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ClusterMutation) Client ¶
func (m ClusterMutation) 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 (*ClusterMutation) EdgeCleared ¶
func (m *ClusterMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ClusterMutation) Field ¶
func (m *ClusterMutation) 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 (*ClusterMutation) FieldCleared ¶
func (m *ClusterMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ClusterMutation) Fields ¶
func (m *ClusterMutation) 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 (*ClusterMutation) ID ¶
func (m *ClusterMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*ClusterMutation) 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 (*ClusterMutation) RemovedEdges ¶
func (m *ClusterMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ClusterMutation) RemovedIDs ¶
func (m *ClusterMutation) 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 (*ClusterMutation) ResetEdge ¶
func (m *ClusterMutation) 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 (*ClusterMutation) ResetField ¶
func (m *ClusterMutation) 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 (*ClusterMutation) SetField ¶
func (m *ClusterMutation) 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 (ClusterMutation) Tx ¶
func (m ClusterMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ClusterMutation) Type ¶
func (m *ClusterMutation) Type() string
Type returns the node type of this mutation (Cluster).
func (*ClusterMutation) Where ¶
func (m *ClusterMutation) Where(ps ...predicate.Cluster)
Where appends a list predicates to the ClusterMutation builder.
type ClusterQuery ¶
type ClusterQuery struct {
// contains filtered or unexported fields
}
ClusterQuery is the builder for querying Cluster entities.
func (*ClusterQuery) All ¶
func (cq *ClusterQuery) All(ctx context.Context) ([]*Cluster, error)
All executes the query and returns a list of Clusters.
func (*ClusterQuery) AllX ¶
func (cq *ClusterQuery) AllX(ctx context.Context) []*Cluster
AllX is like All, but panics if an error occurs.
func (*ClusterQuery) Clone ¶
func (cq *ClusterQuery) Clone() *ClusterQuery
Clone returns a duplicate of the ClusterQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ClusterQuery) Count ¶
func (cq *ClusterQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ClusterQuery) CountX ¶
func (cq *ClusterQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ClusterQuery) Exist ¶
func (cq *ClusterQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ClusterQuery) ExistX ¶
func (cq *ClusterQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ClusterQuery) First ¶
func (cq *ClusterQuery) First(ctx context.Context) (*Cluster, error)
First returns the first Cluster entity from the query. Returns a *NotFoundError when no Cluster was found.
func (*ClusterQuery) FirstID ¶
func (cq *ClusterQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first Cluster ID from the query. Returns a *NotFoundError when no Cluster ID was found.
func (*ClusterQuery) FirstIDX ¶
func (cq *ClusterQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*ClusterQuery) FirstX ¶
func (cq *ClusterQuery) FirstX(ctx context.Context) *Cluster
FirstX is like First, but panics if an error occurs.
func (*ClusterQuery) GroupBy ¶
func (cq *ClusterQuery) GroupBy(field string, fields ...string) *ClusterGroupBy
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.
func (*ClusterQuery) IDs ¶
func (cq *ClusterQuery) IDs(ctx context.Context) ([]int, error)
IDs executes the query and returns a list of Cluster IDs.
func (*ClusterQuery) IDsX ¶
func (cq *ClusterQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*ClusterQuery) Limit ¶
func (cq *ClusterQuery) Limit(limit int) *ClusterQuery
Limit adds a limit step to the query.
func (*ClusterQuery) Offset ¶
func (cq *ClusterQuery) Offset(offset int) *ClusterQuery
Offset adds an offset step to the query.
func (*ClusterQuery) Only ¶
func (cq *ClusterQuery) Only(ctx context.Context) (*Cluster, error)
Only returns a single Cluster entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Cluster entity is not found. Returns a *NotFoundError when no Cluster entities are found.
func (*ClusterQuery) OnlyID ¶
func (cq *ClusterQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only Cluster ID in the query. Returns a *NotSingularError when exactly one Cluster ID is not found. Returns a *NotFoundError when no entities are found.
func (*ClusterQuery) OnlyIDX ¶
func (cq *ClusterQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ClusterQuery) OnlyX ¶
func (cq *ClusterQuery) OnlyX(ctx context.Context) *Cluster
OnlyX is like Only, but panics if an error occurs.
func (*ClusterQuery) Order ¶
func (cq *ClusterQuery) Order(o ...OrderFunc) *ClusterQuery
Order adds an order step to the query.
func (*ClusterQuery) Select ¶
func (cq *ClusterQuery) Select(fields ...string) *ClusterSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
func (*ClusterQuery) Unique ¶
func (cq *ClusterQuery) Unique(unique bool) *ClusterQuery
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 (*ClusterQuery) Where ¶
func (cq *ClusterQuery) Where(ps ...predicate.Cluster) *ClusterQuery
Where adds a new predicate for the ClusterQuery builder.
type ClusterSelect ¶
type ClusterSelect struct { *ClusterQuery // contains filtered or unexported fields }
ClusterSelect is the builder for selecting fields of Cluster entities.
func (*ClusterSelect) Bool ¶
func (cs *ClusterSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ClusterSelect) BoolX ¶
func (cs *ClusterSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*ClusterSelect) Bools ¶
func (cs *ClusterSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ClusterSelect) BoolsX ¶
func (cs *ClusterSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*ClusterSelect) Float64 ¶
func (cs *ClusterSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ClusterSelect) Float64X ¶
func (cs *ClusterSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*ClusterSelect) Float64s ¶
func (cs *ClusterSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ClusterSelect) Float64sX ¶
func (cs *ClusterSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*ClusterSelect) Int ¶
func (cs *ClusterSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ClusterSelect) IntX ¶
func (cs *ClusterSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*ClusterSelect) Ints ¶
func (cs *ClusterSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ClusterSelect) IntsX ¶
func (cs *ClusterSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*ClusterSelect) Scan ¶
func (cs *ClusterSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*ClusterSelect) ScanX ¶
func (cs *ClusterSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*ClusterSelect) String ¶
func (cs *ClusterSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*ClusterSelect) StringX ¶
func (cs *ClusterSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type ClusterUpdate ¶
type ClusterUpdate struct {
// contains filtered or unexported fields
}
ClusterUpdate is the builder for updating Cluster entities.
func (*ClusterUpdate) Exec ¶
func (cu *ClusterUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ClusterUpdate) ExecX ¶
func (cu *ClusterUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClusterUpdate) Mutation ¶
func (cu *ClusterUpdate) Mutation() *ClusterMutation
Mutation returns the ClusterMutation object of the builder.
func (*ClusterUpdate) Save ¶
func (cu *ClusterUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ClusterUpdate) SaveX ¶
func (cu *ClusterUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ClusterUpdate) Where ¶
func (cu *ClusterUpdate) Where(ps ...predicate.Cluster) *ClusterUpdate
Where appends a list predicates to the ClusterUpdate builder.
type ClusterUpdateOne ¶
type ClusterUpdateOne struct {
// contains filtered or unexported fields
}
ClusterUpdateOne is the builder for updating a single Cluster entity.
func (*ClusterUpdateOne) Exec ¶
func (cuo *ClusterUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ClusterUpdateOne) ExecX ¶
func (cuo *ClusterUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ClusterUpdateOne) Mutation ¶
func (cuo *ClusterUpdateOne) Mutation() *ClusterMutation
Mutation returns the ClusterMutation object of the builder.
func (*ClusterUpdateOne) Save ¶
func (cuo *ClusterUpdateOne) Save(ctx context.Context) (*Cluster, error)
Save executes the query and returns the updated Cluster entity.
func (*ClusterUpdateOne) SaveX ¶
func (cuo *ClusterUpdateOne) SaveX(ctx context.Context) *Cluster
SaveX is like Save, but panics if an error occurs.
func (*ClusterUpdateOne) Select ¶
func (cuo *ClusterUpdateOne) Select(field string, fields ...string) *ClusterUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
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(context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func NewErrUniqueEdge ¶
func NewErrUniqueEdge(label, edge, id string) *ConstraintError
NewErrUniqueEdge creates a constraint error for unique edges.
func NewErrUniqueField ¶
func NewErrUniqueField(label, field string, v interface{}) *ConstraintError
NewErrUniqueField creates a constraint error for unique fields.
func (ConstraintError) Code ¶
func (e ConstraintError) Code() (string, []interface{})
Code implements the dsl.Node interface.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) UnmarshalGraphson ¶
func (e *ConstraintError) UnmarshalGraphson(b []byte) error
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type GitHubIssue ¶
type GitHubIssue struct { // ID of the ent. ID string `json:"id,omitempty"` // GithubID holds the value of the "github_id" field. GithubID int `json:"github_id,omitempty"` // Number holds the value of the "number" field. Number int `json:"number,omitempty"` // Title holds the value of the "title" field. Title string `json:"title,omitempty"` // Body holds the value of the "body" field. Body string `json:"body,omitempty"` // HTMLURL holds the value of the "html_url" field. HTMLURL string `json:"html_url,omitempty"` // State holds the value of the "state" field. State githubissue.State `json:"state,omitempty"` // Locked holds the value of the "locked" field. Locked bool `json:"locked,omitempty"` // ActiveLockReason holds the value of the "active_lock_reason" field. ActiveLockReason string `json:"active_lock_reason,omitempty"` // CommentsCount holds the value of the "comments_count" field. CommentsCount int `json:"comments_count,omitempty"` // CreatedAt holds the value of the "created_at" field. CreatedAt string `json:"created_at,omitempty"` // UpdatedAt holds the value of the "updated_at" field. UpdatedAt string `json:"updated_at,omitempty"` // ClosedAt holds the value of the "closed_at" field. ClosedAt string `json:"closed_at,omitempty"` // AuthorAssociation holds the value of the "author_association" field. AuthorAssociation string `json:"author_association,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the GitHubIssueQuery when eager-loading is set. Edges GitHubIssueEdges `json:"edges"` // contains filtered or unexported fields }
GitHubIssue is the model entity for the GitHubIssue schema.
func (*GitHubIssue) FromResponse ¶
func (ghi *GitHubIssue) FromResponse(res *gremlin.Response) error
FromResponse scans the gremlin response data into GitHubIssue.
func (*GitHubIssue) QueryAssignees ¶
func (ghi *GitHubIssue) QueryAssignees() *GitHubUserQuery
QueryAssignees queries the "assignees" edge of the GitHubIssue entity.
func (*GitHubIssue) QueryAuthor ¶
func (ghi *GitHubIssue) QueryAuthor() *GitHubUserQuery
QueryAuthor queries the "author" edge of the GitHubIssue entity.
func (*GitHubIssue) QueryClosedBy ¶
func (ghi *GitHubIssue) QueryClosedBy() *GitHubUserQuery
QueryClosedBy queries the "closed_by" edge of the GitHubIssue entity.
func (*GitHubIssue) String ¶
func (ghi *GitHubIssue) String() string
String implements the fmt.Stringer.
func (*GitHubIssue) Unwrap ¶
func (ghi *GitHubIssue) Unwrap() *GitHubIssue
Unwrap unwraps the GitHubIssue 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 (*GitHubIssue) Update ¶
func (ghi *GitHubIssue) Update() *GitHubIssueUpdateOne
Update returns a builder for updating this GitHubIssue. Note that you need to call GitHubIssue.Unwrap() before calling this method if this GitHubIssue was returned from a transaction, and the transaction was committed or rolled back.
type GitHubIssueClient ¶
type GitHubIssueClient struct {
// contains filtered or unexported fields
}
GitHubIssueClient is a client for the GitHubIssue schema.
func NewGitHubIssueClient ¶
func NewGitHubIssueClient(c config) *GitHubIssueClient
NewGitHubIssueClient returns a client for the GitHubIssue from the given config.
func (*GitHubIssueClient) Create ¶
func (c *GitHubIssueClient) Create() *GitHubIssueCreate
Create returns a create builder for GitHubIssue.
func (*GitHubIssueClient) CreateBulk ¶
func (c *GitHubIssueClient) CreateBulk(builders ...*GitHubIssueCreate) *GitHubIssueCreateBulk
CreateBulk returns a builder for creating a bulk of GitHubIssue entities.
func (*GitHubIssueClient) Delete ¶
func (c *GitHubIssueClient) Delete() *GitHubIssueDelete
Delete returns a delete builder for GitHubIssue.
func (*GitHubIssueClient) DeleteOne ¶
func (c *GitHubIssueClient) DeleteOne(ghi *GitHubIssue) *GitHubIssueDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*GitHubIssueClient) DeleteOneID ¶
func (c *GitHubIssueClient) DeleteOneID(id string) *GitHubIssueDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*GitHubIssueClient) Get ¶
func (c *GitHubIssueClient) Get(ctx context.Context, id string) (*GitHubIssue, error)
Get returns a GitHubIssue entity by its id.
func (*GitHubIssueClient) GetX ¶
func (c *GitHubIssueClient) GetX(ctx context.Context, id string) *GitHubIssue
GetX is like Get, but panics if an error occurs.
func (*GitHubIssueClient) Hooks ¶
func (c *GitHubIssueClient) Hooks() []Hook
Hooks returns the client hooks.
func (*GitHubIssueClient) Query ¶
func (c *GitHubIssueClient) Query() *GitHubIssueQuery
Query returns a query builder for GitHubIssue.
func (*GitHubIssueClient) QueryAssignees ¶
func (c *GitHubIssueClient) QueryAssignees(ghi *GitHubIssue) *GitHubUserQuery
QueryAssignees queries the assignees edge of a GitHubIssue.
func (*GitHubIssueClient) QueryAuthor ¶
func (c *GitHubIssueClient) QueryAuthor(ghi *GitHubIssue) *GitHubUserQuery
QueryAuthor queries the author edge of a GitHubIssue.
func (*GitHubIssueClient) QueryClosedBy ¶
func (c *GitHubIssueClient) QueryClosedBy(ghi *GitHubIssue) *GitHubUserQuery
QueryClosedBy queries the closed_by edge of a GitHubIssue.
func (*GitHubIssueClient) Update ¶
func (c *GitHubIssueClient) Update() *GitHubIssueUpdate
Update returns an update builder for GitHubIssue.
func (*GitHubIssueClient) UpdateOne ¶
func (c *GitHubIssueClient) UpdateOne(ghi *GitHubIssue) *GitHubIssueUpdateOne
UpdateOne returns an update builder for the given entity.
func (*GitHubIssueClient) UpdateOneID ¶
func (c *GitHubIssueClient) UpdateOneID(id string) *GitHubIssueUpdateOne
UpdateOneID returns an update builder for the given id.
func (*GitHubIssueClient) Use ¶
func (c *GitHubIssueClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `githubissue.Hooks(f(g(h())))`.
type GitHubIssueCreate ¶
type GitHubIssueCreate struct {
// contains filtered or unexported fields
}
GitHubIssueCreate is the builder for creating a GitHubIssue entity.
func (*GitHubIssueCreate) AddAssigneeIDs ¶
func (ghic *GitHubIssueCreate) AddAssigneeIDs(ids ...string) *GitHubIssueCreate
AddAssigneeIDs adds the "assignees" edge to the GitHubUser entity by IDs.
func (*GitHubIssueCreate) AddAssignees ¶
func (ghic *GitHubIssueCreate) AddAssignees(g ...*GitHubUser) *GitHubIssueCreate
AddAssignees adds the "assignees" edges to the GitHubUser entity.
func (*GitHubIssueCreate) Exec ¶
func (ghic *GitHubIssueCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*GitHubIssueCreate) ExecX ¶
func (ghic *GitHubIssueCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GitHubIssueCreate) Mutation ¶
func (ghic *GitHubIssueCreate) Mutation() *GitHubIssueMutation
Mutation returns the GitHubIssueMutation object of the builder.
func (*GitHubIssueCreate) Save ¶
func (ghic *GitHubIssueCreate) Save(ctx context.Context) (*GitHubIssue, error)
Save creates the GitHubIssue in the database.
func (*GitHubIssueCreate) SaveX ¶
func (ghic *GitHubIssueCreate) SaveX(ctx context.Context) *GitHubIssue
SaveX calls Save and panics if Save returns an error.
func (*GitHubIssueCreate) SetActiveLockReason ¶
func (ghic *GitHubIssueCreate) SetActiveLockReason(s string) *GitHubIssueCreate
SetActiveLockReason sets the "active_lock_reason" field.
func (*GitHubIssueCreate) SetAuthor ¶
func (ghic *GitHubIssueCreate) SetAuthor(g *GitHubUser) *GitHubIssueCreate
SetAuthor sets the "author" edge to the GitHubUser entity.
func (*GitHubIssueCreate) SetAuthorAssociation ¶
func (ghic *GitHubIssueCreate) SetAuthorAssociation(s string) *GitHubIssueCreate
SetAuthorAssociation sets the "author_association" field.
func (*GitHubIssueCreate) SetAuthorID ¶
func (ghic *GitHubIssueCreate) SetAuthorID(id string) *GitHubIssueCreate
SetAuthorID sets the "author" edge to the GitHubUser entity by ID.
func (*GitHubIssueCreate) SetBody ¶
func (ghic *GitHubIssueCreate) SetBody(s string) *GitHubIssueCreate
SetBody sets the "body" field.
func (*GitHubIssueCreate) SetClosedAt ¶
func (ghic *GitHubIssueCreate) SetClosedAt(s string) *GitHubIssueCreate
SetClosedAt sets the "closed_at" field.
func (*GitHubIssueCreate) SetClosedBy ¶
func (ghic *GitHubIssueCreate) SetClosedBy(g *GitHubUser) *GitHubIssueCreate
SetClosedBy sets the "closed_by" edge to the GitHubUser entity.
func (*GitHubIssueCreate) SetClosedByID ¶
func (ghic *GitHubIssueCreate) SetClosedByID(id string) *GitHubIssueCreate
SetClosedByID sets the "closed_by" edge to the GitHubUser entity by ID.
func (*GitHubIssueCreate) SetCommentsCount ¶
func (ghic *GitHubIssueCreate) SetCommentsCount(i int) *GitHubIssueCreate
SetCommentsCount sets the "comments_count" field.
func (*GitHubIssueCreate) SetCreatedAt ¶
func (ghic *GitHubIssueCreate) SetCreatedAt(s string) *GitHubIssueCreate
SetCreatedAt sets the "created_at" field.
func (*GitHubIssueCreate) SetGithubID ¶
func (ghic *GitHubIssueCreate) SetGithubID(i int) *GitHubIssueCreate
SetGithubID sets the "github_id" field.
func (*GitHubIssueCreate) SetHTMLURL ¶
func (ghic *GitHubIssueCreate) SetHTMLURL(s string) *GitHubIssueCreate
SetHTMLURL sets the "html_url" field.
func (*GitHubIssueCreate) SetID ¶
func (ghic *GitHubIssueCreate) SetID(s string) *GitHubIssueCreate
SetID sets the "id" field.
func (*GitHubIssueCreate) SetLocked ¶
func (ghic *GitHubIssueCreate) SetLocked(b bool) *GitHubIssueCreate
SetLocked sets the "locked" field.
func (*GitHubIssueCreate) SetNillableClosedByID ¶
func (ghic *GitHubIssueCreate) SetNillableClosedByID(id *string) *GitHubIssueCreate
SetNillableClosedByID sets the "closed_by" edge to the GitHubUser entity by ID if the given value is not nil.
func (*GitHubIssueCreate) SetNillableLocked ¶
func (ghic *GitHubIssueCreate) SetNillableLocked(b *bool) *GitHubIssueCreate
SetNillableLocked sets the "locked" field if the given value is not nil.
func (*GitHubIssueCreate) SetNumber ¶
func (ghic *GitHubIssueCreate) SetNumber(i int) *GitHubIssueCreate
SetNumber sets the "number" field.
func (*GitHubIssueCreate) SetState ¶
func (ghic *GitHubIssueCreate) SetState(gi githubissue.State) *GitHubIssueCreate
SetState sets the "state" field.
func (*GitHubIssueCreate) SetTitle ¶
func (ghic *GitHubIssueCreate) SetTitle(s string) *GitHubIssueCreate
SetTitle sets the "title" field.
func (*GitHubIssueCreate) SetUpdatedAt ¶
func (ghic *GitHubIssueCreate) SetUpdatedAt(s string) *GitHubIssueCreate
SetUpdatedAt sets the "updated_at" field.
type GitHubIssueCreateBulk ¶
type GitHubIssueCreateBulk struct {
// contains filtered or unexported fields
}
GitHubIssueCreateBulk is the builder for creating many GitHubIssue entities in bulk.
type GitHubIssueDelete ¶
type GitHubIssueDelete struct {
// contains filtered or unexported fields
}
GitHubIssueDelete is the builder for deleting a GitHubIssue entity.
func (*GitHubIssueDelete) Exec ¶
func (ghid *GitHubIssueDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*GitHubIssueDelete) ExecX ¶
func (ghid *GitHubIssueDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*GitHubIssueDelete) Where ¶
func (ghid *GitHubIssueDelete) Where(ps ...predicate.GitHubIssue) *GitHubIssueDelete
Where appends a list predicates to the GitHubIssueDelete builder.
type GitHubIssueDeleteOne ¶
type GitHubIssueDeleteOne struct {
// contains filtered or unexported fields
}
GitHubIssueDeleteOne is the builder for deleting a single GitHubIssue entity.
func (*GitHubIssueDeleteOne) Exec ¶
func (ghido *GitHubIssueDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*GitHubIssueDeleteOne) ExecX ¶
func (ghido *GitHubIssueDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type GitHubIssueEdges ¶
type GitHubIssueEdges struct { // Assignees holds the value of the assignees edge. Assignees []*GitHubUser `json:"assignees,omitempty"` // Author holds the value of the author edge. Author *GitHubUser `json:"author,omitempty"` // ClosedBy holds the value of the closed_by edge. ClosedBy *GitHubUser `json:"closed_by,omitempty"` // contains filtered or unexported fields }
GitHubIssueEdges holds the relations/edges for other nodes in the graph.
func (GitHubIssueEdges) AssigneesOrErr ¶
func (e GitHubIssueEdges) AssigneesOrErr() ([]*GitHubUser, error)
AssigneesOrErr returns the Assignees value or an error if the edge was not loaded in eager-loading.
func (GitHubIssueEdges) AuthorOrErr ¶
func (e GitHubIssueEdges) AuthorOrErr() (*GitHubUser, error)
AuthorOrErr returns the Author value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (GitHubIssueEdges) ClosedByOrErr ¶
func (e GitHubIssueEdges) ClosedByOrErr() (*GitHubUser, error)
ClosedByOrErr returns the ClosedBy value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type GitHubIssueGroupBy ¶
type GitHubIssueGroupBy struct {
// contains filtered or unexported fields
}
GitHubIssueGroupBy is the group-by builder for GitHubIssue entities.
func (*GitHubIssueGroupBy) Aggregate ¶
func (ghigb *GitHubIssueGroupBy) Aggregate(fns ...AggregateFunc) *GitHubIssueGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*GitHubIssueGroupBy) Bool ¶
func (ghigb *GitHubIssueGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*GitHubIssueGroupBy) BoolX ¶
func (ghigb *GitHubIssueGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*GitHubIssueGroupBy) Bools ¶
func (ghigb *GitHubIssueGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*GitHubIssueGroupBy) BoolsX ¶
func (ghigb *GitHubIssueGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*GitHubIssueGroupBy) Float64 ¶
func (ghigb *GitHubIssueGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*GitHubIssueGroupBy) Float64X ¶
func (ghigb *GitHubIssueGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*GitHubIssueGroupBy) Float64s ¶
func (ghigb *GitHubIssueGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*GitHubIssueGroupBy) Float64sX ¶
func (ghigb *GitHubIssueGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*GitHubIssueGroupBy) Int ¶
func (ghigb *GitHubIssueGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*GitHubIssueGroupBy) IntX ¶
func (ghigb *GitHubIssueGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*GitHubIssueGroupBy) Ints ¶
func (ghigb *GitHubIssueGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*GitHubIssueGroupBy) IntsX ¶
func (ghigb *GitHubIssueGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*GitHubIssueGroupBy) Scan ¶
func (ghigb *GitHubIssueGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*GitHubIssueGroupBy) ScanX ¶
func (ghigb *GitHubIssueGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*GitHubIssueGroupBy) String ¶
func (ghigb *GitHubIssueGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*GitHubIssueGroupBy) StringX ¶
func (ghigb *GitHubIssueGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type GitHubIssueMutation ¶
type GitHubIssueMutation struct {
// contains filtered or unexported fields
}
GitHubIssueMutation represents an operation that mutates the GitHubIssue nodes in the graph.
func (*GitHubIssueMutation) ActiveLockReason ¶
func (m *GitHubIssueMutation) ActiveLockReason() (r string, exists bool)
ActiveLockReason returns the value of the "active_lock_reason" field in the mutation.
func (*GitHubIssueMutation) AddAssigneeIDs ¶
func (m *GitHubIssueMutation) AddAssigneeIDs(ids ...string)
AddAssigneeIDs adds the "assignees" edge to the GitHubUser entity by ids.
func (*GitHubIssueMutation) AddCommentsCount ¶
func (m *GitHubIssueMutation) AddCommentsCount(i int)
AddCommentsCount adds i to the "comments_count" field.
func (*GitHubIssueMutation) AddField ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) AddGithubID ¶
func (m *GitHubIssueMutation) AddGithubID(i int)
AddGithubID adds i to the "github_id" field.
func (*GitHubIssueMutation) AddNumber ¶
func (m *GitHubIssueMutation) AddNumber(i int)
AddNumber adds i to the "number" field.
func (*GitHubIssueMutation) AddedCommentsCount ¶
func (m *GitHubIssueMutation) AddedCommentsCount() (r int, exists bool)
AddedCommentsCount returns the value that was added to the "comments_count" field in this mutation.
func (*GitHubIssueMutation) AddedEdges ¶
func (m *GitHubIssueMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*GitHubIssueMutation) AddedField ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) AddedFields ¶
func (m *GitHubIssueMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*GitHubIssueMutation) AddedGithubID ¶
func (m *GitHubIssueMutation) AddedGithubID() (r int, exists bool)
AddedGithubID returns the value that was added to the "github_id" field in this mutation.
func (*GitHubIssueMutation) AddedIDs ¶
func (m *GitHubIssueMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*GitHubIssueMutation) AddedNumber ¶
func (m *GitHubIssueMutation) AddedNumber() (r int, exists bool)
AddedNumber returns the value that was added to the "number" field in this mutation.
func (*GitHubIssueMutation) AssigneesCleared ¶
func (m *GitHubIssueMutation) AssigneesCleared() bool
AssigneesCleared reports if the "assignees" edge to the GitHubUser entity was cleared.
func (*GitHubIssueMutation) AssigneesIDs ¶
func (m *GitHubIssueMutation) AssigneesIDs() (ids []string)
AssigneesIDs returns the "assignees" edge IDs in the mutation.
func (*GitHubIssueMutation) AuthorAssociation ¶
func (m *GitHubIssueMutation) AuthorAssociation() (r string, exists bool)
AuthorAssociation returns the value of the "author_association" field in the mutation.
func (*GitHubIssueMutation) AuthorCleared ¶
func (m *GitHubIssueMutation) AuthorCleared() bool
AuthorCleared reports if the "author" edge to the GitHubUser entity was cleared.
func (*GitHubIssueMutation) AuthorID ¶
func (m *GitHubIssueMutation) AuthorID() (id string, exists bool)
AuthorID returns the "author" edge ID in the mutation.
func (*GitHubIssueMutation) AuthorIDs ¶
func (m *GitHubIssueMutation) AuthorIDs() (ids []string)
AuthorIDs returns the "author" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use AuthorID instead. It exists only for internal usage by the builders.
func (*GitHubIssueMutation) Body ¶
func (m *GitHubIssueMutation) Body() (r string, exists bool)
Body returns the value of the "body" field in the mutation.
func (*GitHubIssueMutation) ClearAssignees ¶
func (m *GitHubIssueMutation) ClearAssignees()
ClearAssignees clears the "assignees" edge to the GitHubUser entity.
func (*GitHubIssueMutation) ClearAuthor ¶
func (m *GitHubIssueMutation) ClearAuthor()
ClearAuthor clears the "author" edge to the GitHubUser entity.
func (*GitHubIssueMutation) ClearClosedBy ¶
func (m *GitHubIssueMutation) ClearClosedBy()
ClearClosedBy clears the "closed_by" edge to the GitHubUser entity.
func (*GitHubIssueMutation) ClearEdge ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) ClearField ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) ClearedEdges ¶
func (m *GitHubIssueMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*GitHubIssueMutation) ClearedFields ¶
func (m *GitHubIssueMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (GitHubIssueMutation) Client ¶
func (m GitHubIssueMutation) 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 (*GitHubIssueMutation) ClosedAt ¶
func (m *GitHubIssueMutation) ClosedAt() (r string, exists bool)
ClosedAt returns the value of the "closed_at" field in the mutation.
func (*GitHubIssueMutation) ClosedByCleared ¶
func (m *GitHubIssueMutation) ClosedByCleared() bool
ClosedByCleared reports if the "closed_by" edge to the GitHubUser entity was cleared.
func (*GitHubIssueMutation) ClosedByID ¶
func (m *GitHubIssueMutation) ClosedByID() (id string, exists bool)
ClosedByID returns the "closed_by" edge ID in the mutation.
func (*GitHubIssueMutation) ClosedByIDs ¶
func (m *GitHubIssueMutation) ClosedByIDs() (ids []string)
ClosedByIDs returns the "closed_by" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ClosedByID instead. It exists only for internal usage by the builders.
func (*GitHubIssueMutation) CommentsCount ¶
func (m *GitHubIssueMutation) CommentsCount() (r int, exists bool)
CommentsCount returns the value of the "comments_count" field in the mutation.
func (*GitHubIssueMutation) CreatedAt ¶
func (m *GitHubIssueMutation) CreatedAt() (r string, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*GitHubIssueMutation) EdgeCleared ¶
func (m *GitHubIssueMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*GitHubIssueMutation) Field ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) FieldCleared ¶
func (m *GitHubIssueMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*GitHubIssueMutation) Fields ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) GithubID ¶
func (m *GitHubIssueMutation) GithubID() (r int, exists bool)
GithubID returns the value of the "github_id" field in the mutation.
func (*GitHubIssueMutation) HTMLURL ¶
func (m *GitHubIssueMutation) HTMLURL() (r string, exists bool)
HTMLURL returns the value of the "html_url" field in the mutation.
func (*GitHubIssueMutation) ID ¶
func (m *GitHubIssueMutation) ID() (id string, 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 (*GitHubIssueMutation) Locked ¶
func (m *GitHubIssueMutation) Locked() (r bool, exists bool)
Locked returns the value of the "locked" field in the mutation.
func (*GitHubIssueMutation) Number ¶
func (m *GitHubIssueMutation) Number() (r int, exists bool)
Number returns the value of the "number" field in the mutation.
func (*GitHubIssueMutation) OldActiveLockReason ¶
func (m *GitHubIssueMutation) OldActiveLockReason(ctx context.Context) (v string, err error)
OldActiveLockReason returns the old "active_lock_reason" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldAuthorAssociation ¶
func (m *GitHubIssueMutation) OldAuthorAssociation(ctx context.Context) (v string, err error)
OldAuthorAssociation returns the old "author_association" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldBody ¶
func (m *GitHubIssueMutation) OldBody(ctx context.Context) (v string, err error)
OldBody returns the old "body" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldClosedAt ¶
func (m *GitHubIssueMutation) OldClosedAt(ctx context.Context) (v string, err error)
OldClosedAt returns the old "closed_at" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldCommentsCount ¶
func (m *GitHubIssueMutation) OldCommentsCount(ctx context.Context) (v int, err error)
OldCommentsCount returns the old "comments_count" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldCreatedAt ¶
func (m *GitHubIssueMutation) OldCreatedAt(ctx context.Context) (v string, err error)
OldCreatedAt returns the old "created_at" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) 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 (*GitHubIssueMutation) OldGithubID ¶
func (m *GitHubIssueMutation) OldGithubID(ctx context.Context) (v int, err error)
OldGithubID returns the old "github_id" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldHTMLURL ¶
func (m *GitHubIssueMutation) OldHTMLURL(ctx context.Context) (v string, err error)
OldHTMLURL returns the old "html_url" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldLocked ¶
func (m *GitHubIssueMutation) OldLocked(ctx context.Context) (v bool, err error)
OldLocked returns the old "locked" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldNumber ¶
func (m *GitHubIssueMutation) OldNumber(ctx context.Context) (v int, err error)
OldNumber returns the old "number" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldState ¶
func (m *GitHubIssueMutation) OldState(ctx context.Context) (v githubissue.State, err error)
OldState returns the old "state" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldTitle ¶
func (m *GitHubIssueMutation) OldTitle(ctx context.Context) (v string, err error)
OldTitle returns the old "title" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) OldUpdatedAt ¶
func (m *GitHubIssueMutation) OldUpdatedAt(ctx context.Context) (v string, err error)
OldUpdatedAt returns the old "updated_at" field's value of the GitHubIssue entity. If the GitHubIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubIssueMutation) Op ¶
func (m *GitHubIssueMutation) Op() Op
Op returns the operation name.
func (*GitHubIssueMutation) RemoveAssigneeIDs ¶
func (m *GitHubIssueMutation) RemoveAssigneeIDs(ids ...string)
RemoveAssigneeIDs removes the "assignees" edge to the GitHubUser entity by IDs.
func (*GitHubIssueMutation) RemovedAssigneesIDs ¶
func (m *GitHubIssueMutation) RemovedAssigneesIDs() (ids []string)
RemovedAssignees returns the removed IDs of the "assignees" edge to the GitHubUser entity.
func (*GitHubIssueMutation) RemovedEdges ¶
func (m *GitHubIssueMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*GitHubIssueMutation) RemovedIDs ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) ResetActiveLockReason ¶
func (m *GitHubIssueMutation) ResetActiveLockReason()
ResetActiveLockReason resets all changes to the "active_lock_reason" field.
func (*GitHubIssueMutation) ResetAssignees ¶
func (m *GitHubIssueMutation) ResetAssignees()
ResetAssignees resets all changes to the "assignees" edge.
func (*GitHubIssueMutation) ResetAuthor ¶
func (m *GitHubIssueMutation) ResetAuthor()
ResetAuthor resets all changes to the "author" edge.
func (*GitHubIssueMutation) ResetAuthorAssociation ¶
func (m *GitHubIssueMutation) ResetAuthorAssociation()
ResetAuthorAssociation resets all changes to the "author_association" field.
func (*GitHubIssueMutation) ResetBody ¶
func (m *GitHubIssueMutation) ResetBody()
ResetBody resets all changes to the "body" field.
func (*GitHubIssueMutation) ResetClosedAt ¶
func (m *GitHubIssueMutation) ResetClosedAt()
ResetClosedAt resets all changes to the "closed_at" field.
func (*GitHubIssueMutation) ResetClosedBy ¶
func (m *GitHubIssueMutation) ResetClosedBy()
ResetClosedBy resets all changes to the "closed_by" edge.
func (*GitHubIssueMutation) ResetCommentsCount ¶
func (m *GitHubIssueMutation) ResetCommentsCount()
ResetCommentsCount resets all changes to the "comments_count" field.
func (*GitHubIssueMutation) ResetCreatedAt ¶
func (m *GitHubIssueMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*GitHubIssueMutation) ResetEdge ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) ResetField ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) ResetGithubID ¶
func (m *GitHubIssueMutation) ResetGithubID()
ResetGithubID resets all changes to the "github_id" field.
func (*GitHubIssueMutation) ResetHTMLURL ¶
func (m *GitHubIssueMutation) ResetHTMLURL()
ResetHTMLURL resets all changes to the "html_url" field.
func (*GitHubIssueMutation) ResetLocked ¶
func (m *GitHubIssueMutation) ResetLocked()
ResetLocked resets all changes to the "locked" field.
func (*GitHubIssueMutation) ResetNumber ¶
func (m *GitHubIssueMutation) ResetNumber()
ResetNumber resets all changes to the "number" field.
func (*GitHubIssueMutation) ResetState ¶
func (m *GitHubIssueMutation) ResetState()
ResetState resets all changes to the "state" field.
func (*GitHubIssueMutation) ResetTitle ¶
func (m *GitHubIssueMutation) ResetTitle()
ResetTitle resets all changes to the "title" field.
func (*GitHubIssueMutation) ResetUpdatedAt ¶
func (m *GitHubIssueMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*GitHubIssueMutation) SetActiveLockReason ¶
func (m *GitHubIssueMutation) SetActiveLockReason(s string)
SetActiveLockReason sets the "active_lock_reason" field.
func (*GitHubIssueMutation) SetAuthorAssociation ¶
func (m *GitHubIssueMutation) SetAuthorAssociation(s string)
SetAuthorAssociation sets the "author_association" field.
func (*GitHubIssueMutation) SetAuthorID ¶
func (m *GitHubIssueMutation) SetAuthorID(id string)
SetAuthorID sets the "author" edge to the GitHubUser entity by id.
func (*GitHubIssueMutation) SetBody ¶
func (m *GitHubIssueMutation) SetBody(s string)
SetBody sets the "body" field.
func (*GitHubIssueMutation) SetClosedAt ¶
func (m *GitHubIssueMutation) SetClosedAt(s string)
SetClosedAt sets the "closed_at" field.
func (*GitHubIssueMutation) SetClosedByID ¶
func (m *GitHubIssueMutation) SetClosedByID(id string)
SetClosedByID sets the "closed_by" edge to the GitHubUser entity by id.
func (*GitHubIssueMutation) SetCommentsCount ¶
func (m *GitHubIssueMutation) SetCommentsCount(i int)
SetCommentsCount sets the "comments_count" field.
func (*GitHubIssueMutation) SetCreatedAt ¶
func (m *GitHubIssueMutation) SetCreatedAt(s string)
SetCreatedAt sets the "created_at" field.
func (*GitHubIssueMutation) SetField ¶
func (m *GitHubIssueMutation) 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 (*GitHubIssueMutation) SetGithubID ¶
func (m *GitHubIssueMutation) SetGithubID(i int)
SetGithubID sets the "github_id" field.
func (*GitHubIssueMutation) SetHTMLURL ¶
func (m *GitHubIssueMutation) SetHTMLURL(s string)
SetHTMLURL sets the "html_url" field.
func (*GitHubIssueMutation) SetID ¶
func (m *GitHubIssueMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of GitHubIssue entities.
func (*GitHubIssueMutation) SetLocked ¶
func (m *GitHubIssueMutation) SetLocked(b bool)
SetLocked sets the "locked" field.
func (*GitHubIssueMutation) SetNumber ¶
func (m *GitHubIssueMutation) SetNumber(i int)
SetNumber sets the "number" field.
func (*GitHubIssueMutation) SetState ¶
func (m *GitHubIssueMutation) SetState(gi githubissue.State)
SetState sets the "state" field.
func (*GitHubIssueMutation) SetTitle ¶
func (m *GitHubIssueMutation) SetTitle(s string)
SetTitle sets the "title" field.
func (*GitHubIssueMutation) SetUpdatedAt ¶
func (m *GitHubIssueMutation) SetUpdatedAt(s string)
SetUpdatedAt sets the "updated_at" field.
func (*GitHubIssueMutation) State ¶
func (m *GitHubIssueMutation) State() (r githubissue.State, exists bool)
State returns the value of the "state" field in the mutation.
func (*GitHubIssueMutation) Title ¶
func (m *GitHubIssueMutation) Title() (r string, exists bool)
Title returns the value of the "title" field in the mutation.
func (GitHubIssueMutation) Tx ¶
func (m GitHubIssueMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*GitHubIssueMutation) Type ¶
func (m *GitHubIssueMutation) Type() string
Type returns the node type of this mutation (GitHubIssue).
func (*GitHubIssueMutation) UpdatedAt ¶
func (m *GitHubIssueMutation) UpdatedAt() (r string, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*GitHubIssueMutation) Where ¶
func (m *GitHubIssueMutation) Where(ps ...predicate.GitHubIssue)
Where appends a list predicates to the GitHubIssueMutation builder.
type GitHubIssueQuery ¶
type GitHubIssueQuery struct {
// contains filtered or unexported fields
}
GitHubIssueQuery is the builder for querying GitHubIssue entities.
func (*GitHubIssueQuery) All ¶
func (ghiq *GitHubIssueQuery) All(ctx context.Context) ([]*GitHubIssue, error)
All executes the query and returns a list of GitHubIssues.
func (*GitHubIssueQuery) AllX ¶
func (ghiq *GitHubIssueQuery) AllX(ctx context.Context) []*GitHubIssue
AllX is like All, but panics if an error occurs.
func (*GitHubIssueQuery) Clone ¶
func (ghiq *GitHubIssueQuery) Clone() *GitHubIssueQuery
Clone returns a duplicate of the GitHubIssueQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*GitHubIssueQuery) Count ¶
func (ghiq *GitHubIssueQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*GitHubIssueQuery) CountX ¶
func (ghiq *GitHubIssueQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*GitHubIssueQuery) Exist ¶
func (ghiq *GitHubIssueQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*GitHubIssueQuery) ExistX ¶
func (ghiq *GitHubIssueQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*GitHubIssueQuery) First ¶
func (ghiq *GitHubIssueQuery) First(ctx context.Context) (*GitHubIssue, error)
First returns the first GitHubIssue entity from the query. Returns a *NotFoundError when no GitHubIssue was found.
func (*GitHubIssueQuery) FirstID ¶
func (ghiq *GitHubIssueQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first GitHubIssue ID from the query. Returns a *NotFoundError when no GitHubIssue ID was found.
func (*GitHubIssueQuery) FirstIDX ¶
func (ghiq *GitHubIssueQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*GitHubIssueQuery) FirstX ¶
func (ghiq *GitHubIssueQuery) FirstX(ctx context.Context) *GitHubIssue
FirstX is like First, but panics if an error occurs.
func (*GitHubIssueQuery) GroupBy ¶
func (ghiq *GitHubIssueQuery) GroupBy(field string, fields ...string) *GitHubIssueGroupBy
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 int `json:"github_id,omitempty"` Count int `json:"count,omitempty"` } client.GitHubIssue.Query(). GroupBy(githubissue.FieldGithubID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*GitHubIssueQuery) IDs ¶
func (ghiq *GitHubIssueQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of GitHubIssue IDs.
func (*GitHubIssueQuery) IDsX ¶
func (ghiq *GitHubIssueQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*GitHubIssueQuery) Limit ¶
func (ghiq *GitHubIssueQuery) Limit(limit int) *GitHubIssueQuery
Limit adds a limit step to the query.
func (*GitHubIssueQuery) Offset ¶
func (ghiq *GitHubIssueQuery) Offset(offset int) *GitHubIssueQuery
Offset adds an offset step to the query.
func (*GitHubIssueQuery) Only ¶
func (ghiq *GitHubIssueQuery) Only(ctx context.Context) (*GitHubIssue, error)
Only returns a single GitHubIssue entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one GitHubIssue entity is not found. Returns a *NotFoundError when no GitHubIssue entities are found.
func (*GitHubIssueQuery) OnlyID ¶
func (ghiq *GitHubIssueQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only GitHubIssue ID in the query. Returns a *NotSingularError when exactly one GitHubIssue ID is not found. Returns a *NotFoundError when no entities are found.
func (*GitHubIssueQuery) OnlyIDX ¶
func (ghiq *GitHubIssueQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*GitHubIssueQuery) OnlyX ¶
func (ghiq *GitHubIssueQuery) OnlyX(ctx context.Context) *GitHubIssue
OnlyX is like Only, but panics if an error occurs.
func (*GitHubIssueQuery) Order ¶
func (ghiq *GitHubIssueQuery) Order(o ...OrderFunc) *GitHubIssueQuery
Order adds an order step to the query.
func (*GitHubIssueQuery) QueryAssignees ¶
func (ghiq *GitHubIssueQuery) QueryAssignees() *GitHubUserQuery
QueryAssignees chains the current query on the "assignees" edge.
func (*GitHubIssueQuery) QueryAuthor ¶
func (ghiq *GitHubIssueQuery) QueryAuthor() *GitHubUserQuery
QueryAuthor chains the current query on the "author" edge.
func (*GitHubIssueQuery) QueryClosedBy ¶
func (ghiq *GitHubIssueQuery) QueryClosedBy() *GitHubUserQuery
QueryClosedBy chains the current query on the "closed_by" edge.
func (*GitHubIssueQuery) Select ¶
func (ghiq *GitHubIssueQuery) Select(fields ...string) *GitHubIssueSelect
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 int `json:"github_id,omitempty"` } client.GitHubIssue.Query(). Select(githubissue.FieldGithubID). Scan(ctx, &v)
func (*GitHubIssueQuery) Unique ¶
func (ghiq *GitHubIssueQuery) Unique(unique bool) *GitHubIssueQuery
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 (*GitHubIssueQuery) Where ¶
func (ghiq *GitHubIssueQuery) Where(ps ...predicate.GitHubIssue) *GitHubIssueQuery
Where adds a new predicate for the GitHubIssueQuery builder.
func (*GitHubIssueQuery) WithAssignees ¶
func (ghiq *GitHubIssueQuery) WithAssignees(opts ...func(*GitHubUserQuery)) *GitHubIssueQuery
WithAssignees tells the query-builder to eager-load the nodes that are connected to the "assignees" edge. The optional arguments are used to configure the query builder of the edge.
func (*GitHubIssueQuery) WithAuthor ¶
func (ghiq *GitHubIssueQuery) WithAuthor(opts ...func(*GitHubUserQuery)) *GitHubIssueQuery
WithAuthor tells the query-builder to eager-load the nodes that are connected to the "author" edge. The optional arguments are used to configure the query builder of the edge.
func (*GitHubIssueQuery) WithClosedBy ¶
func (ghiq *GitHubIssueQuery) WithClosedBy(opts ...func(*GitHubUserQuery)) *GitHubIssueQuery
WithClosedBy tells the query-builder to eager-load the nodes that are connected to the "closed_by" edge. The optional arguments are used to configure the query builder of the edge.
type GitHubIssueSelect ¶
type GitHubIssueSelect struct { *GitHubIssueQuery // contains filtered or unexported fields }
GitHubIssueSelect is the builder for selecting fields of GitHubIssue entities.
func (*GitHubIssueSelect) Bool ¶
func (ghis *GitHubIssueSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GitHubIssueSelect) BoolX ¶
func (ghis *GitHubIssueSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*GitHubIssueSelect) Bools ¶
func (ghis *GitHubIssueSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GitHubIssueSelect) BoolsX ¶
func (ghis *GitHubIssueSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*GitHubIssueSelect) Float64 ¶
func (ghis *GitHubIssueSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GitHubIssueSelect) Float64X ¶
func (ghis *GitHubIssueSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*GitHubIssueSelect) Float64s ¶
func (ghis *GitHubIssueSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GitHubIssueSelect) Float64sX ¶
func (ghis *GitHubIssueSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*GitHubIssueSelect) Int ¶
func (ghis *GitHubIssueSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GitHubIssueSelect) IntX ¶
func (ghis *GitHubIssueSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*GitHubIssueSelect) Ints ¶
func (ghis *GitHubIssueSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GitHubIssueSelect) IntsX ¶
func (ghis *GitHubIssueSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*GitHubIssueSelect) Scan ¶
func (ghis *GitHubIssueSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*GitHubIssueSelect) ScanX ¶
func (ghis *GitHubIssueSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*GitHubIssueSelect) String ¶
func (ghis *GitHubIssueSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*GitHubIssueSelect) StringX ¶
func (ghis *GitHubIssueSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type GitHubIssueUpdate ¶
type GitHubIssueUpdate struct {
// contains filtered or unexported fields
}
GitHubIssueUpdate is the builder for updating GitHubIssue entities.
func (*GitHubIssueUpdate) AddAssigneeIDs ¶
func (ghiu *GitHubIssueUpdate) AddAssigneeIDs(ids ...string) *GitHubIssueUpdate
AddAssigneeIDs adds the "assignees" edge to the GitHubUser entity by IDs.
func (*GitHubIssueUpdate) AddAssignees ¶
func (ghiu *GitHubIssueUpdate) AddAssignees(g ...*GitHubUser) *GitHubIssueUpdate
AddAssignees adds the "assignees" edges to the GitHubUser entity.
func (*GitHubIssueUpdate) AddCommentsCount ¶
func (ghiu *GitHubIssueUpdate) AddCommentsCount(i int) *GitHubIssueUpdate
AddCommentsCount adds i to the "comments_count" field.
func (*GitHubIssueUpdate) AddGithubID ¶
func (ghiu *GitHubIssueUpdate) AddGithubID(i int) *GitHubIssueUpdate
AddGithubID adds i to the "github_id" field.
func (*GitHubIssueUpdate) AddNumber ¶
func (ghiu *GitHubIssueUpdate) AddNumber(i int) *GitHubIssueUpdate
AddNumber adds i to the "number" field.
func (*GitHubIssueUpdate) ClearAssignees ¶
func (ghiu *GitHubIssueUpdate) ClearAssignees() *GitHubIssueUpdate
ClearAssignees clears all "assignees" edges to the GitHubUser entity.
func (*GitHubIssueUpdate) ClearAuthor ¶
func (ghiu *GitHubIssueUpdate) ClearAuthor() *GitHubIssueUpdate
ClearAuthor clears the "author" edge to the GitHubUser entity.
func (*GitHubIssueUpdate) ClearClosedBy ¶
func (ghiu *GitHubIssueUpdate) ClearClosedBy() *GitHubIssueUpdate
ClearClosedBy clears the "closed_by" edge to the GitHubUser entity.
func (*GitHubIssueUpdate) Exec ¶
func (ghiu *GitHubIssueUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*GitHubIssueUpdate) ExecX ¶
func (ghiu *GitHubIssueUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GitHubIssueUpdate) Mutation ¶
func (ghiu *GitHubIssueUpdate) Mutation() *GitHubIssueMutation
Mutation returns the GitHubIssueMutation object of the builder.
func (*GitHubIssueUpdate) RemoveAssigneeIDs ¶
func (ghiu *GitHubIssueUpdate) RemoveAssigneeIDs(ids ...string) *GitHubIssueUpdate
RemoveAssigneeIDs removes the "assignees" edge to GitHubUser entities by IDs.
func (*GitHubIssueUpdate) RemoveAssignees ¶
func (ghiu *GitHubIssueUpdate) RemoveAssignees(g ...*GitHubUser) *GitHubIssueUpdate
RemoveAssignees removes "assignees" edges to GitHubUser entities.
func (*GitHubIssueUpdate) Save ¶
func (ghiu *GitHubIssueUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*GitHubIssueUpdate) SaveX ¶
func (ghiu *GitHubIssueUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*GitHubIssueUpdate) SetActiveLockReason ¶
func (ghiu *GitHubIssueUpdate) SetActiveLockReason(s string) *GitHubIssueUpdate
SetActiveLockReason sets the "active_lock_reason" field.
func (*GitHubIssueUpdate) SetAuthor ¶
func (ghiu *GitHubIssueUpdate) SetAuthor(g *GitHubUser) *GitHubIssueUpdate
SetAuthor sets the "author" edge to the GitHubUser entity.
func (*GitHubIssueUpdate) SetAuthorAssociation ¶
func (ghiu *GitHubIssueUpdate) SetAuthorAssociation(s string) *GitHubIssueUpdate
SetAuthorAssociation sets the "author_association" field.
func (*GitHubIssueUpdate) SetAuthorID ¶
func (ghiu *GitHubIssueUpdate) SetAuthorID(id string) *GitHubIssueUpdate
SetAuthorID sets the "author" edge to the GitHubUser entity by ID.
func (*GitHubIssueUpdate) SetBody ¶
func (ghiu *GitHubIssueUpdate) SetBody(s string) *GitHubIssueUpdate
SetBody sets the "body" field.
func (*GitHubIssueUpdate) SetClosedAt ¶
func (ghiu *GitHubIssueUpdate) SetClosedAt(s string) *GitHubIssueUpdate
SetClosedAt sets the "closed_at" field.
func (*GitHubIssueUpdate) SetClosedBy ¶
func (ghiu *GitHubIssueUpdate) SetClosedBy(g *GitHubUser) *GitHubIssueUpdate
SetClosedBy sets the "closed_by" edge to the GitHubUser entity.
func (*GitHubIssueUpdate) SetClosedByID ¶
func (ghiu *GitHubIssueUpdate) SetClosedByID(id string) *GitHubIssueUpdate
SetClosedByID sets the "closed_by" edge to the GitHubUser entity by ID.
func (*GitHubIssueUpdate) SetCommentsCount ¶
func (ghiu *GitHubIssueUpdate) SetCommentsCount(i int) *GitHubIssueUpdate
SetCommentsCount sets the "comments_count" field.
func (*GitHubIssueUpdate) SetCreatedAt ¶
func (ghiu *GitHubIssueUpdate) SetCreatedAt(s string) *GitHubIssueUpdate
SetCreatedAt sets the "created_at" field.
func (*GitHubIssueUpdate) SetGithubID ¶
func (ghiu *GitHubIssueUpdate) SetGithubID(i int) *GitHubIssueUpdate
SetGithubID sets the "github_id" field.
func (*GitHubIssueUpdate) SetHTMLURL ¶
func (ghiu *GitHubIssueUpdate) SetHTMLURL(s string) *GitHubIssueUpdate
SetHTMLURL sets the "html_url" field.
func (*GitHubIssueUpdate) SetLocked ¶
func (ghiu *GitHubIssueUpdate) SetLocked(b bool) *GitHubIssueUpdate
SetLocked sets the "locked" field.
func (*GitHubIssueUpdate) SetNillableClosedByID ¶
func (ghiu *GitHubIssueUpdate) SetNillableClosedByID(id *string) *GitHubIssueUpdate
SetNillableClosedByID sets the "closed_by" edge to the GitHubUser entity by ID if the given value is not nil.
func (*GitHubIssueUpdate) SetNillableLocked ¶
func (ghiu *GitHubIssueUpdate) SetNillableLocked(b *bool) *GitHubIssueUpdate
SetNillableLocked sets the "locked" field if the given value is not nil.
func (*GitHubIssueUpdate) SetNumber ¶
func (ghiu *GitHubIssueUpdate) SetNumber(i int) *GitHubIssueUpdate
SetNumber sets the "number" field.
func (*GitHubIssueUpdate) SetState ¶
func (ghiu *GitHubIssueUpdate) SetState(gi githubissue.State) *GitHubIssueUpdate
SetState sets the "state" field.
func (*GitHubIssueUpdate) SetTitle ¶
func (ghiu *GitHubIssueUpdate) SetTitle(s string) *GitHubIssueUpdate
SetTitle sets the "title" field.
func (*GitHubIssueUpdate) SetUpdatedAt ¶
func (ghiu *GitHubIssueUpdate) SetUpdatedAt(s string) *GitHubIssueUpdate
SetUpdatedAt sets the "updated_at" field.
func (*GitHubIssueUpdate) Where ¶
func (ghiu *GitHubIssueUpdate) Where(ps ...predicate.GitHubIssue) *GitHubIssueUpdate
Where appends a list predicates to the GitHubIssueUpdate builder.
type GitHubIssueUpdateOne ¶
type GitHubIssueUpdateOne struct {
// contains filtered or unexported fields
}
GitHubIssueUpdateOne is the builder for updating a single GitHubIssue entity.
func (*GitHubIssueUpdateOne) AddAssigneeIDs ¶
func (ghiuo *GitHubIssueUpdateOne) AddAssigneeIDs(ids ...string) *GitHubIssueUpdateOne
AddAssigneeIDs adds the "assignees" edge to the GitHubUser entity by IDs.
func (*GitHubIssueUpdateOne) AddAssignees ¶
func (ghiuo *GitHubIssueUpdateOne) AddAssignees(g ...*GitHubUser) *GitHubIssueUpdateOne
AddAssignees adds the "assignees" edges to the GitHubUser entity.
func (*GitHubIssueUpdateOne) AddCommentsCount ¶
func (ghiuo *GitHubIssueUpdateOne) AddCommentsCount(i int) *GitHubIssueUpdateOne
AddCommentsCount adds i to the "comments_count" field.
func (*GitHubIssueUpdateOne) AddGithubID ¶
func (ghiuo *GitHubIssueUpdateOne) AddGithubID(i int) *GitHubIssueUpdateOne
AddGithubID adds i to the "github_id" field.
func (*GitHubIssueUpdateOne) AddNumber ¶
func (ghiuo *GitHubIssueUpdateOne) AddNumber(i int) *GitHubIssueUpdateOne
AddNumber adds i to the "number" field.
func (*GitHubIssueUpdateOne) ClearAssignees ¶
func (ghiuo *GitHubIssueUpdateOne) ClearAssignees() *GitHubIssueUpdateOne
ClearAssignees clears all "assignees" edges to the GitHubUser entity.
func (*GitHubIssueUpdateOne) ClearAuthor ¶
func (ghiuo *GitHubIssueUpdateOne) ClearAuthor() *GitHubIssueUpdateOne
ClearAuthor clears the "author" edge to the GitHubUser entity.
func (*GitHubIssueUpdateOne) ClearClosedBy ¶
func (ghiuo *GitHubIssueUpdateOne) ClearClosedBy() *GitHubIssueUpdateOne
ClearClosedBy clears the "closed_by" edge to the GitHubUser entity.
func (*GitHubIssueUpdateOne) Exec ¶
func (ghiuo *GitHubIssueUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*GitHubIssueUpdateOne) ExecX ¶
func (ghiuo *GitHubIssueUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GitHubIssueUpdateOne) Mutation ¶
func (ghiuo *GitHubIssueUpdateOne) Mutation() *GitHubIssueMutation
Mutation returns the GitHubIssueMutation object of the builder.
func (*GitHubIssueUpdateOne) RemoveAssigneeIDs ¶
func (ghiuo *GitHubIssueUpdateOne) RemoveAssigneeIDs(ids ...string) *GitHubIssueUpdateOne
RemoveAssigneeIDs removes the "assignees" edge to GitHubUser entities by IDs.
func (*GitHubIssueUpdateOne) RemoveAssignees ¶
func (ghiuo *GitHubIssueUpdateOne) RemoveAssignees(g ...*GitHubUser) *GitHubIssueUpdateOne
RemoveAssignees removes "assignees" edges to GitHubUser entities.
func (*GitHubIssueUpdateOne) Save ¶
func (ghiuo *GitHubIssueUpdateOne) Save(ctx context.Context) (*GitHubIssue, error)
Save executes the query and returns the updated GitHubIssue entity.
func (*GitHubIssueUpdateOne) SaveX ¶
func (ghiuo *GitHubIssueUpdateOne) SaveX(ctx context.Context) *GitHubIssue
SaveX is like Save, but panics if an error occurs.
func (*GitHubIssueUpdateOne) Select ¶
func (ghiuo *GitHubIssueUpdateOne) Select(field string, fields ...string) *GitHubIssueUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*GitHubIssueUpdateOne) SetActiveLockReason ¶
func (ghiuo *GitHubIssueUpdateOne) SetActiveLockReason(s string) *GitHubIssueUpdateOne
SetActiveLockReason sets the "active_lock_reason" field.
func (*GitHubIssueUpdateOne) SetAuthor ¶
func (ghiuo *GitHubIssueUpdateOne) SetAuthor(g *GitHubUser) *GitHubIssueUpdateOne
SetAuthor sets the "author" edge to the GitHubUser entity.
func (*GitHubIssueUpdateOne) SetAuthorAssociation ¶
func (ghiuo *GitHubIssueUpdateOne) SetAuthorAssociation(s string) *GitHubIssueUpdateOne
SetAuthorAssociation sets the "author_association" field.
func (*GitHubIssueUpdateOne) SetAuthorID ¶
func (ghiuo *GitHubIssueUpdateOne) SetAuthorID(id string) *GitHubIssueUpdateOne
SetAuthorID sets the "author" edge to the GitHubUser entity by ID.
func (*GitHubIssueUpdateOne) SetBody ¶
func (ghiuo *GitHubIssueUpdateOne) SetBody(s string) *GitHubIssueUpdateOne
SetBody sets the "body" field.
func (*GitHubIssueUpdateOne) SetClosedAt ¶
func (ghiuo *GitHubIssueUpdateOne) SetClosedAt(s string) *GitHubIssueUpdateOne
SetClosedAt sets the "closed_at" field.
func (*GitHubIssueUpdateOne) SetClosedBy ¶
func (ghiuo *GitHubIssueUpdateOne) SetClosedBy(g *GitHubUser) *GitHubIssueUpdateOne
SetClosedBy sets the "closed_by" edge to the GitHubUser entity.
func (*GitHubIssueUpdateOne) SetClosedByID ¶
func (ghiuo *GitHubIssueUpdateOne) SetClosedByID(id string) *GitHubIssueUpdateOne
SetClosedByID sets the "closed_by" edge to the GitHubUser entity by ID.
func (*GitHubIssueUpdateOne) SetCommentsCount ¶
func (ghiuo *GitHubIssueUpdateOne) SetCommentsCount(i int) *GitHubIssueUpdateOne
SetCommentsCount sets the "comments_count" field.
func (*GitHubIssueUpdateOne) SetCreatedAt ¶
func (ghiuo *GitHubIssueUpdateOne) SetCreatedAt(s string) *GitHubIssueUpdateOne
SetCreatedAt sets the "created_at" field.
func (*GitHubIssueUpdateOne) SetGithubID ¶
func (ghiuo *GitHubIssueUpdateOne) SetGithubID(i int) *GitHubIssueUpdateOne
SetGithubID sets the "github_id" field.
func (*GitHubIssueUpdateOne) SetHTMLURL ¶
func (ghiuo *GitHubIssueUpdateOne) SetHTMLURL(s string) *GitHubIssueUpdateOne
SetHTMLURL sets the "html_url" field.
func (*GitHubIssueUpdateOne) SetLocked ¶
func (ghiuo *GitHubIssueUpdateOne) SetLocked(b bool) *GitHubIssueUpdateOne
SetLocked sets the "locked" field.
func (*GitHubIssueUpdateOne) SetNillableClosedByID ¶
func (ghiuo *GitHubIssueUpdateOne) SetNillableClosedByID(id *string) *GitHubIssueUpdateOne
SetNillableClosedByID sets the "closed_by" edge to the GitHubUser entity by ID if the given value is not nil.
func (*GitHubIssueUpdateOne) SetNillableLocked ¶
func (ghiuo *GitHubIssueUpdateOne) SetNillableLocked(b *bool) *GitHubIssueUpdateOne
SetNillableLocked sets the "locked" field if the given value is not nil.
func (*GitHubIssueUpdateOne) SetNumber ¶
func (ghiuo *GitHubIssueUpdateOne) SetNumber(i int) *GitHubIssueUpdateOne
SetNumber sets the "number" field.
func (*GitHubIssueUpdateOne) SetState ¶
func (ghiuo *GitHubIssueUpdateOne) SetState(gi githubissue.State) *GitHubIssueUpdateOne
SetState sets the "state" field.
func (*GitHubIssueUpdateOne) SetTitle ¶
func (ghiuo *GitHubIssueUpdateOne) SetTitle(s string) *GitHubIssueUpdateOne
SetTitle sets the "title" field.
func (*GitHubIssueUpdateOne) SetUpdatedAt ¶
func (ghiuo *GitHubIssueUpdateOne) SetUpdatedAt(s string) *GitHubIssueUpdateOne
SetUpdatedAt sets the "updated_at" field.
type GitHubIssues ¶
type GitHubIssues []*GitHubIssue
GitHubIssues is a parsable slice of GitHubIssue.
func (*GitHubIssues) FromResponse ¶
func (ghi *GitHubIssues) FromResponse(res *gremlin.Response) error
FromResponse scans the gremlin response data into GitHubIssues.
type GitHubUser ¶
type GitHubUser struct { // ID of the ent. ID string `json:"id,omitempty"` // GithubID holds the value of the "github_id" field. GithubID int `json:"github_id,omitempty"` // Login holds the value of the "login" field. Login string `json:"login,omitempty"` // Email holds the value of the "email" field. Email string `json:"email,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the GitHubUserQuery when eager-loading is set. Edges GitHubUserEdges `json:"edges"` // contains filtered or unexported fields }
GitHubUser is the model entity for the GitHubUser schema.
func (*GitHubUser) FromResponse ¶
func (ghu *GitHubUser) FromResponse(res *gremlin.Response) error
FromResponse scans the gremlin response data into GitHubUser.
func (*GitHubUser) QueryAssignedIssues ¶
func (ghu *GitHubUser) QueryAssignedIssues() *GitHubIssueQuery
QueryAssignedIssues queries the "assigned_issues" edge of the GitHubUser entity.
func (*GitHubUser) QueryClosedIssues ¶
func (ghu *GitHubUser) QueryClosedIssues() *GitHubIssueQuery
QueryClosedIssues queries the "closed_issues" edge of the GitHubUser entity.
func (*GitHubUser) QueryCreatedIssues ¶
func (ghu *GitHubUser) QueryCreatedIssues() *GitHubIssueQuery
QueryCreatedIssues queries the "created_issues" edge of the GitHubUser entity.
func (*GitHubUser) QueryPerson ¶
func (ghu *GitHubUser) QueryPerson() *PersonQuery
QueryPerson queries the "person" edge of the GitHubUser entity.
func (*GitHubUser) String ¶
func (ghu *GitHubUser) String() string
String implements the fmt.Stringer.
func (*GitHubUser) Unwrap ¶
func (ghu *GitHubUser) Unwrap() *GitHubUser
Unwrap unwraps the GitHubUser 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 (*GitHubUser) Update ¶
func (ghu *GitHubUser) Update() *GitHubUserUpdateOne
Update returns a builder for updating this GitHubUser. Note that you need to call GitHubUser.Unwrap() before calling this method if this GitHubUser was returned from a transaction, and the transaction was committed or rolled back.
type GitHubUserClient ¶
type GitHubUserClient struct {
// contains filtered or unexported fields
}
GitHubUserClient is a client for the GitHubUser schema.
func NewGitHubUserClient ¶
func NewGitHubUserClient(c config) *GitHubUserClient
NewGitHubUserClient returns a client for the GitHubUser from the given config.
func (*GitHubUserClient) Create ¶
func (c *GitHubUserClient) Create() *GitHubUserCreate
Create returns a create builder for GitHubUser.
func (*GitHubUserClient) CreateBulk ¶
func (c *GitHubUserClient) CreateBulk(builders ...*GitHubUserCreate) *GitHubUserCreateBulk
CreateBulk returns a builder for creating a bulk of GitHubUser entities.
func (*GitHubUserClient) Delete ¶
func (c *GitHubUserClient) Delete() *GitHubUserDelete
Delete returns a delete builder for GitHubUser.
func (*GitHubUserClient) DeleteOne ¶
func (c *GitHubUserClient) DeleteOne(ghu *GitHubUser) *GitHubUserDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*GitHubUserClient) DeleteOneID ¶
func (c *GitHubUserClient) DeleteOneID(id string) *GitHubUserDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*GitHubUserClient) Get ¶
func (c *GitHubUserClient) Get(ctx context.Context, id string) (*GitHubUser, error)
Get returns a GitHubUser entity by its id.
func (*GitHubUserClient) GetX ¶
func (c *GitHubUserClient) GetX(ctx context.Context, id string) *GitHubUser
GetX is like Get, but panics if an error occurs.
func (*GitHubUserClient) Hooks ¶
func (c *GitHubUserClient) Hooks() []Hook
Hooks returns the client hooks.
func (*GitHubUserClient) Query ¶
func (c *GitHubUserClient) Query() *GitHubUserQuery
Query returns a query builder for GitHubUser.
func (*GitHubUserClient) QueryAssignedIssues ¶
func (c *GitHubUserClient) QueryAssignedIssues(ghu *GitHubUser) *GitHubIssueQuery
QueryAssignedIssues queries the assigned_issues edge of a GitHubUser.
func (*GitHubUserClient) QueryClosedIssues ¶
func (c *GitHubUserClient) QueryClosedIssues(ghu *GitHubUser) *GitHubIssueQuery
QueryClosedIssues queries the closed_issues edge of a GitHubUser.
func (*GitHubUserClient) QueryCreatedIssues ¶
func (c *GitHubUserClient) QueryCreatedIssues(ghu *GitHubUser) *GitHubIssueQuery
QueryCreatedIssues queries the created_issues edge of a GitHubUser.
func (*GitHubUserClient) QueryPerson ¶
func (c *GitHubUserClient) QueryPerson(ghu *GitHubUser) *PersonQuery
QueryPerson queries the person edge of a GitHubUser.
func (*GitHubUserClient) Update ¶
func (c *GitHubUserClient) Update() *GitHubUserUpdate
Update returns an update builder for GitHubUser.
func (*GitHubUserClient) UpdateOne ¶
func (c *GitHubUserClient) UpdateOne(ghu *GitHubUser) *GitHubUserUpdateOne
UpdateOne returns an update builder for the given entity.
func (*GitHubUserClient) UpdateOneID ¶
func (c *GitHubUserClient) UpdateOneID(id string) *GitHubUserUpdateOne
UpdateOneID returns an update builder for the given id.
func (*GitHubUserClient) Use ¶
func (c *GitHubUserClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `githubuser.Hooks(f(g(h())))`.
type GitHubUserCreate ¶
type GitHubUserCreate struct {
// contains filtered or unexported fields
}
GitHubUserCreate is the builder for creating a GitHubUser entity.
func (*GitHubUserCreate) AddAssignedIssueIDs ¶
func (ghuc *GitHubUserCreate) AddAssignedIssueIDs(ids ...string) *GitHubUserCreate
AddAssignedIssueIDs adds the "assigned_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserCreate) AddAssignedIssues ¶
func (ghuc *GitHubUserCreate) AddAssignedIssues(g ...*GitHubIssue) *GitHubUserCreate
AddAssignedIssues adds the "assigned_issues" edges to the GitHubIssue entity.
func (*GitHubUserCreate) AddClosedIssueIDs ¶
func (ghuc *GitHubUserCreate) AddClosedIssueIDs(ids ...string) *GitHubUserCreate
AddClosedIssueIDs adds the "closed_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserCreate) AddClosedIssues ¶
func (ghuc *GitHubUserCreate) AddClosedIssues(g ...*GitHubIssue) *GitHubUserCreate
AddClosedIssues adds the "closed_issues" edges to the GitHubIssue entity.
func (*GitHubUserCreate) AddCreatedIssueIDs ¶
func (ghuc *GitHubUserCreate) AddCreatedIssueIDs(ids ...string) *GitHubUserCreate
AddCreatedIssueIDs adds the "created_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserCreate) AddCreatedIssues ¶
func (ghuc *GitHubUserCreate) AddCreatedIssues(g ...*GitHubIssue) *GitHubUserCreate
AddCreatedIssues adds the "created_issues" edges to the GitHubIssue entity.
func (*GitHubUserCreate) Exec ¶
func (ghuc *GitHubUserCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*GitHubUserCreate) ExecX ¶
func (ghuc *GitHubUserCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GitHubUserCreate) Mutation ¶
func (ghuc *GitHubUserCreate) Mutation() *GitHubUserMutation
Mutation returns the GitHubUserMutation object of the builder.
func (*GitHubUserCreate) Save ¶
func (ghuc *GitHubUserCreate) Save(ctx context.Context) (*GitHubUser, error)
Save creates the GitHubUser in the database.
func (*GitHubUserCreate) SaveX ¶
func (ghuc *GitHubUserCreate) SaveX(ctx context.Context) *GitHubUser
SaveX calls Save and panics if Save returns an error.
func (*GitHubUserCreate) SetEmail ¶
func (ghuc *GitHubUserCreate) SetEmail(s string) *GitHubUserCreate
SetEmail sets the "email" field.
func (*GitHubUserCreate) SetGithubID ¶
func (ghuc *GitHubUserCreate) SetGithubID(i int) *GitHubUserCreate
SetGithubID sets the "github_id" field.
func (*GitHubUserCreate) SetID ¶
func (ghuc *GitHubUserCreate) SetID(s string) *GitHubUserCreate
SetID sets the "id" field.
func (*GitHubUserCreate) SetLogin ¶
func (ghuc *GitHubUserCreate) SetLogin(s string) *GitHubUserCreate
SetLogin sets the "login" field.
func (*GitHubUserCreate) SetName ¶
func (ghuc *GitHubUserCreate) SetName(s string) *GitHubUserCreate
SetName sets the "name" field.
func (*GitHubUserCreate) SetNillablePersonID ¶
func (ghuc *GitHubUserCreate) SetNillablePersonID(id *string) *GitHubUserCreate
SetNillablePersonID sets the "person" edge to the Person entity by ID if the given value is not nil.
func (*GitHubUserCreate) SetPerson ¶
func (ghuc *GitHubUserCreate) SetPerson(p *Person) *GitHubUserCreate
SetPerson sets the "person" edge to the Person entity.
func (*GitHubUserCreate) SetPersonID ¶
func (ghuc *GitHubUserCreate) SetPersonID(id string) *GitHubUserCreate
SetPersonID sets the "person" edge to the Person entity by ID.
type GitHubUserCreateBulk ¶
type GitHubUserCreateBulk struct {
// contains filtered or unexported fields
}
GitHubUserCreateBulk is the builder for creating many GitHubUser entities in bulk.
type GitHubUserDelete ¶
type GitHubUserDelete struct {
// contains filtered or unexported fields
}
GitHubUserDelete is the builder for deleting a GitHubUser entity.
func (*GitHubUserDelete) Exec ¶
func (ghud *GitHubUserDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*GitHubUserDelete) ExecX ¶
func (ghud *GitHubUserDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*GitHubUserDelete) Where ¶
func (ghud *GitHubUserDelete) Where(ps ...predicate.GitHubUser) *GitHubUserDelete
Where appends a list predicates to the GitHubUserDelete builder.
type GitHubUserDeleteOne ¶
type GitHubUserDeleteOne struct {
// contains filtered or unexported fields
}
GitHubUserDeleteOne is the builder for deleting a single GitHubUser entity.
func (*GitHubUserDeleteOne) Exec ¶
func (ghudo *GitHubUserDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*GitHubUserDeleteOne) ExecX ¶
func (ghudo *GitHubUserDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type GitHubUserEdges ¶
type GitHubUserEdges struct { // CreatedIssues holds the value of the created_issues edge. CreatedIssues []*GitHubIssue `json:"created_issues,omitempty"` // ClosedIssues holds the value of the closed_issues edge. ClosedIssues []*GitHubIssue `json:"closed_issues,omitempty"` // Person holds the value of the person edge. Person *Person `json:"person,omitempty"` // AssignedIssues holds the value of the assigned_issues edge. AssignedIssues []*GitHubIssue `json:"assigned_issues,omitempty"` // contains filtered or unexported fields }
GitHubUserEdges holds the relations/edges for other nodes in the graph.
func (GitHubUserEdges) AssignedIssuesOrErr ¶
func (e GitHubUserEdges) AssignedIssuesOrErr() ([]*GitHubIssue, error)
AssignedIssuesOrErr returns the AssignedIssues value or an error if the edge was not loaded in eager-loading.
func (GitHubUserEdges) ClosedIssuesOrErr ¶
func (e GitHubUserEdges) ClosedIssuesOrErr() ([]*GitHubIssue, error)
ClosedIssuesOrErr returns the ClosedIssues value or an error if the edge was not loaded in eager-loading.
func (GitHubUserEdges) CreatedIssuesOrErr ¶
func (e GitHubUserEdges) CreatedIssuesOrErr() ([]*GitHubIssue, error)
CreatedIssuesOrErr returns the CreatedIssues value or an error if the edge was not loaded in eager-loading.
func (GitHubUserEdges) PersonOrErr ¶
func (e GitHubUserEdges) PersonOrErr() (*Person, error)
PersonOrErr returns the Person value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type GitHubUserGroupBy ¶
type GitHubUserGroupBy struct {
// contains filtered or unexported fields
}
GitHubUserGroupBy is the group-by builder for GitHubUser entities.
func (*GitHubUserGroupBy) Aggregate ¶
func (ghugb *GitHubUserGroupBy) Aggregate(fns ...AggregateFunc) *GitHubUserGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*GitHubUserGroupBy) Bool ¶
func (ghugb *GitHubUserGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*GitHubUserGroupBy) BoolX ¶
func (ghugb *GitHubUserGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*GitHubUserGroupBy) Bools ¶
func (ghugb *GitHubUserGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*GitHubUserGroupBy) BoolsX ¶
func (ghugb *GitHubUserGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*GitHubUserGroupBy) Float64 ¶
func (ghugb *GitHubUserGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*GitHubUserGroupBy) Float64X ¶
func (ghugb *GitHubUserGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*GitHubUserGroupBy) Float64s ¶
func (ghugb *GitHubUserGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*GitHubUserGroupBy) Float64sX ¶
func (ghugb *GitHubUserGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*GitHubUserGroupBy) Int ¶
func (ghugb *GitHubUserGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*GitHubUserGroupBy) IntX ¶
func (ghugb *GitHubUserGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*GitHubUserGroupBy) Ints ¶
func (ghugb *GitHubUserGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*GitHubUserGroupBy) IntsX ¶
func (ghugb *GitHubUserGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*GitHubUserGroupBy) Scan ¶
func (ghugb *GitHubUserGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*GitHubUserGroupBy) ScanX ¶
func (ghugb *GitHubUserGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*GitHubUserGroupBy) String ¶
func (ghugb *GitHubUserGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*GitHubUserGroupBy) StringX ¶
func (ghugb *GitHubUserGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type GitHubUserMutation ¶
type GitHubUserMutation struct {
// contains filtered or unexported fields
}
GitHubUserMutation represents an operation that mutates the GitHubUser nodes in the graph.
func (*GitHubUserMutation) AddAssignedIssueIDs ¶
func (m *GitHubUserMutation) AddAssignedIssueIDs(ids ...string)
AddAssignedIssueIDs adds the "assigned_issues" edge to the GitHubIssue entity by ids.
func (*GitHubUserMutation) AddClosedIssueIDs ¶
func (m *GitHubUserMutation) AddClosedIssueIDs(ids ...string)
AddClosedIssueIDs adds the "closed_issues" edge to the GitHubIssue entity by ids.
func (*GitHubUserMutation) AddCreatedIssueIDs ¶
func (m *GitHubUserMutation) AddCreatedIssueIDs(ids ...string)
AddCreatedIssueIDs adds the "created_issues" edge to the GitHubIssue entity by ids.
func (*GitHubUserMutation) AddField ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) AddGithubID ¶
func (m *GitHubUserMutation) AddGithubID(i int)
AddGithubID adds i to the "github_id" field.
func (*GitHubUserMutation) AddedEdges ¶
func (m *GitHubUserMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*GitHubUserMutation) AddedField ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) AddedFields ¶
func (m *GitHubUserMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*GitHubUserMutation) AddedGithubID ¶
func (m *GitHubUserMutation) AddedGithubID() (r int, exists bool)
AddedGithubID returns the value that was added to the "github_id" field in this mutation.
func (*GitHubUserMutation) AddedIDs ¶
func (m *GitHubUserMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*GitHubUserMutation) AssignedIssuesCleared ¶
func (m *GitHubUserMutation) AssignedIssuesCleared() bool
AssignedIssuesCleared reports if the "assigned_issues" edge to the GitHubIssue entity was cleared.
func (*GitHubUserMutation) AssignedIssuesIDs ¶
func (m *GitHubUserMutation) AssignedIssuesIDs() (ids []string)
AssignedIssuesIDs returns the "assigned_issues" edge IDs in the mutation.
func (*GitHubUserMutation) ClearAssignedIssues ¶
func (m *GitHubUserMutation) ClearAssignedIssues()
ClearAssignedIssues clears the "assigned_issues" edge to the GitHubIssue entity.
func (*GitHubUserMutation) ClearClosedIssues ¶
func (m *GitHubUserMutation) ClearClosedIssues()
ClearClosedIssues clears the "closed_issues" edge to the GitHubIssue entity.
func (*GitHubUserMutation) ClearCreatedIssues ¶
func (m *GitHubUserMutation) ClearCreatedIssues()
ClearCreatedIssues clears the "created_issues" edge to the GitHubIssue entity.
func (*GitHubUserMutation) ClearEdge ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) ClearField ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) ClearPerson ¶
func (m *GitHubUserMutation) ClearPerson()
ClearPerson clears the "person" edge to the Person entity.
func (*GitHubUserMutation) ClearedEdges ¶
func (m *GitHubUserMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*GitHubUserMutation) ClearedFields ¶
func (m *GitHubUserMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (GitHubUserMutation) Client ¶
func (m GitHubUserMutation) 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 (*GitHubUserMutation) ClosedIssuesCleared ¶
func (m *GitHubUserMutation) ClosedIssuesCleared() bool
ClosedIssuesCleared reports if the "closed_issues" edge to the GitHubIssue entity was cleared.
func (*GitHubUserMutation) ClosedIssuesIDs ¶
func (m *GitHubUserMutation) ClosedIssuesIDs() (ids []string)
ClosedIssuesIDs returns the "closed_issues" edge IDs in the mutation.
func (*GitHubUserMutation) CreatedIssuesCleared ¶
func (m *GitHubUserMutation) CreatedIssuesCleared() bool
CreatedIssuesCleared reports if the "created_issues" edge to the GitHubIssue entity was cleared.
func (*GitHubUserMutation) CreatedIssuesIDs ¶
func (m *GitHubUserMutation) CreatedIssuesIDs() (ids []string)
CreatedIssuesIDs returns the "created_issues" edge IDs in the mutation.
func (*GitHubUserMutation) EdgeCleared ¶
func (m *GitHubUserMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*GitHubUserMutation) Email ¶
func (m *GitHubUserMutation) Email() (r string, exists bool)
Email returns the value of the "email" field in the mutation.
func (*GitHubUserMutation) Field ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) FieldCleared ¶
func (m *GitHubUserMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*GitHubUserMutation) Fields ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) GithubID ¶
func (m *GitHubUserMutation) GithubID() (r int, exists bool)
GithubID returns the value of the "github_id" field in the mutation.
func (*GitHubUserMutation) ID ¶
func (m *GitHubUserMutation) ID() (id string, 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 (*GitHubUserMutation) Login ¶
func (m *GitHubUserMutation) Login() (r string, exists bool)
Login returns the value of the "login" field in the mutation.
func (*GitHubUserMutation) Name ¶
func (m *GitHubUserMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*GitHubUserMutation) OldEmail ¶
func (m *GitHubUserMutation) OldEmail(ctx context.Context) (v string, err error)
OldEmail returns the old "email" field's value of the GitHubUser entity. If the GitHubUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubUserMutation) 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 (*GitHubUserMutation) OldGithubID ¶
func (m *GitHubUserMutation) OldGithubID(ctx context.Context) (v int, err error)
OldGithubID returns the old "github_id" field's value of the GitHubUser entity. If the GitHubUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubUserMutation) OldLogin ¶
func (m *GitHubUserMutation) OldLogin(ctx context.Context) (v string, err error)
OldLogin returns the old "login" field's value of the GitHubUser entity. If the GitHubUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubUserMutation) OldName ¶
func (m *GitHubUserMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the GitHubUser entity. If the GitHubUser object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*GitHubUserMutation) PersonCleared ¶
func (m *GitHubUserMutation) PersonCleared() bool
PersonCleared reports if the "person" edge to the Person entity was cleared.
func (*GitHubUserMutation) PersonID ¶
func (m *GitHubUserMutation) PersonID() (id string, exists bool)
PersonID returns the "person" edge ID in the mutation.
func (*GitHubUserMutation) PersonIDs ¶
func (m *GitHubUserMutation) PersonIDs() (ids []string)
PersonIDs returns the "person" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PersonID instead. It exists only for internal usage by the builders.
func (*GitHubUserMutation) RemoveAssignedIssueIDs ¶
func (m *GitHubUserMutation) RemoveAssignedIssueIDs(ids ...string)
RemoveAssignedIssueIDs removes the "assigned_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserMutation) RemoveClosedIssueIDs ¶
func (m *GitHubUserMutation) RemoveClosedIssueIDs(ids ...string)
RemoveClosedIssueIDs removes the "closed_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserMutation) RemoveCreatedIssueIDs ¶
func (m *GitHubUserMutation) RemoveCreatedIssueIDs(ids ...string)
RemoveCreatedIssueIDs removes the "created_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserMutation) RemovedAssignedIssuesIDs ¶
func (m *GitHubUserMutation) RemovedAssignedIssuesIDs() (ids []string)
RemovedAssignedIssues returns the removed IDs of the "assigned_issues" edge to the GitHubIssue entity.
func (*GitHubUserMutation) RemovedClosedIssuesIDs ¶
func (m *GitHubUserMutation) RemovedClosedIssuesIDs() (ids []string)
RemovedClosedIssues returns the removed IDs of the "closed_issues" edge to the GitHubIssue entity.
func (*GitHubUserMutation) RemovedCreatedIssuesIDs ¶
func (m *GitHubUserMutation) RemovedCreatedIssuesIDs() (ids []string)
RemovedCreatedIssues returns the removed IDs of the "created_issues" edge to the GitHubIssue entity.
func (*GitHubUserMutation) RemovedEdges ¶
func (m *GitHubUserMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*GitHubUserMutation) RemovedIDs ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) ResetAssignedIssues ¶
func (m *GitHubUserMutation) ResetAssignedIssues()
ResetAssignedIssues resets all changes to the "assigned_issues" edge.
func (*GitHubUserMutation) ResetClosedIssues ¶
func (m *GitHubUserMutation) ResetClosedIssues()
ResetClosedIssues resets all changes to the "closed_issues" edge.
func (*GitHubUserMutation) ResetCreatedIssues ¶
func (m *GitHubUserMutation) ResetCreatedIssues()
ResetCreatedIssues resets all changes to the "created_issues" edge.
func (*GitHubUserMutation) ResetEdge ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) ResetEmail ¶
func (m *GitHubUserMutation) ResetEmail()
ResetEmail resets all changes to the "email" field.
func (*GitHubUserMutation) ResetField ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) ResetGithubID ¶
func (m *GitHubUserMutation) ResetGithubID()
ResetGithubID resets all changes to the "github_id" field.
func (*GitHubUserMutation) ResetLogin ¶
func (m *GitHubUserMutation) ResetLogin()
ResetLogin resets all changes to the "login" field.
func (*GitHubUserMutation) ResetName ¶
func (m *GitHubUserMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*GitHubUserMutation) ResetPerson ¶
func (m *GitHubUserMutation) ResetPerson()
ResetPerson resets all changes to the "person" edge.
func (*GitHubUserMutation) SetEmail ¶
func (m *GitHubUserMutation) SetEmail(s string)
SetEmail sets the "email" field.
func (*GitHubUserMutation) SetField ¶
func (m *GitHubUserMutation) 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 (*GitHubUserMutation) SetGithubID ¶
func (m *GitHubUserMutation) SetGithubID(i int)
SetGithubID sets the "github_id" field.
func (*GitHubUserMutation) SetID ¶
func (m *GitHubUserMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of GitHubUser entities.
func (*GitHubUserMutation) SetLogin ¶
func (m *GitHubUserMutation) SetLogin(s string)
SetLogin sets the "login" field.
func (*GitHubUserMutation) SetName ¶
func (m *GitHubUserMutation) SetName(s string)
SetName sets the "name" field.
func (*GitHubUserMutation) SetPersonID ¶
func (m *GitHubUserMutation) SetPersonID(id string)
SetPersonID sets the "person" edge to the Person entity by id.
func (GitHubUserMutation) Tx ¶
func (m GitHubUserMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*GitHubUserMutation) Type ¶
func (m *GitHubUserMutation) Type() string
Type returns the node type of this mutation (GitHubUser).
func (*GitHubUserMutation) Where ¶
func (m *GitHubUserMutation) Where(ps ...predicate.GitHubUser)
Where appends a list predicates to the GitHubUserMutation builder.
type GitHubUserQuery ¶
type GitHubUserQuery struct {
// contains filtered or unexported fields
}
GitHubUserQuery is the builder for querying GitHubUser entities.
func (*GitHubUserQuery) All ¶
func (ghuq *GitHubUserQuery) All(ctx context.Context) ([]*GitHubUser, error)
All executes the query and returns a list of GitHubUsers.
func (*GitHubUserQuery) AllX ¶
func (ghuq *GitHubUserQuery) AllX(ctx context.Context) []*GitHubUser
AllX is like All, but panics if an error occurs.
func (*GitHubUserQuery) Clone ¶
func (ghuq *GitHubUserQuery) Clone() *GitHubUserQuery
Clone returns a duplicate of the GitHubUserQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*GitHubUserQuery) Count ¶
func (ghuq *GitHubUserQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*GitHubUserQuery) CountX ¶
func (ghuq *GitHubUserQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*GitHubUserQuery) Exist ¶
func (ghuq *GitHubUserQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*GitHubUserQuery) ExistX ¶
func (ghuq *GitHubUserQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*GitHubUserQuery) First ¶
func (ghuq *GitHubUserQuery) First(ctx context.Context) (*GitHubUser, error)
First returns the first GitHubUser entity from the query. Returns a *NotFoundError when no GitHubUser was found.
func (*GitHubUserQuery) FirstID ¶
func (ghuq *GitHubUserQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first GitHubUser ID from the query. Returns a *NotFoundError when no GitHubUser ID was found.
func (*GitHubUserQuery) FirstIDX ¶
func (ghuq *GitHubUserQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*GitHubUserQuery) FirstX ¶
func (ghuq *GitHubUserQuery) FirstX(ctx context.Context) *GitHubUser
FirstX is like First, but panics if an error occurs.
func (*GitHubUserQuery) GroupBy ¶
func (ghuq *GitHubUserQuery) GroupBy(field string, fields ...string) *GitHubUserGroupBy
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 int `json:"github_id,omitempty"` Count int `json:"count,omitempty"` } client.GitHubUser.Query(). GroupBy(githubuser.FieldGithubID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*GitHubUserQuery) IDs ¶
func (ghuq *GitHubUserQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of GitHubUser IDs.
func (*GitHubUserQuery) IDsX ¶
func (ghuq *GitHubUserQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*GitHubUserQuery) Limit ¶
func (ghuq *GitHubUserQuery) Limit(limit int) *GitHubUserQuery
Limit adds a limit step to the query.
func (*GitHubUserQuery) Offset ¶
func (ghuq *GitHubUserQuery) Offset(offset int) *GitHubUserQuery
Offset adds an offset step to the query.
func (*GitHubUserQuery) Only ¶
func (ghuq *GitHubUserQuery) Only(ctx context.Context) (*GitHubUser, error)
Only returns a single GitHubUser entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one GitHubUser entity is not found. Returns a *NotFoundError when no GitHubUser entities are found.
func (*GitHubUserQuery) OnlyID ¶
func (ghuq *GitHubUserQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only GitHubUser ID in the query. Returns a *NotSingularError when exactly one GitHubUser ID is not found. Returns a *NotFoundError when no entities are found.
func (*GitHubUserQuery) OnlyIDX ¶
func (ghuq *GitHubUserQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*GitHubUserQuery) OnlyX ¶
func (ghuq *GitHubUserQuery) OnlyX(ctx context.Context) *GitHubUser
OnlyX is like Only, but panics if an error occurs.
func (*GitHubUserQuery) Order ¶
func (ghuq *GitHubUserQuery) Order(o ...OrderFunc) *GitHubUserQuery
Order adds an order step to the query.
func (*GitHubUserQuery) QueryAssignedIssues ¶
func (ghuq *GitHubUserQuery) QueryAssignedIssues() *GitHubIssueQuery
QueryAssignedIssues chains the current query on the "assigned_issues" edge.
func (*GitHubUserQuery) QueryClosedIssues ¶
func (ghuq *GitHubUserQuery) QueryClosedIssues() *GitHubIssueQuery
QueryClosedIssues chains the current query on the "closed_issues" edge.
func (*GitHubUserQuery) QueryCreatedIssues ¶
func (ghuq *GitHubUserQuery) QueryCreatedIssues() *GitHubIssueQuery
QueryCreatedIssues chains the current query on the "created_issues" edge.
func (*GitHubUserQuery) QueryPerson ¶
func (ghuq *GitHubUserQuery) QueryPerson() *PersonQuery
QueryPerson chains the current query on the "person" edge.
func (*GitHubUserQuery) Select ¶
func (ghuq *GitHubUserQuery) Select(fields ...string) *GitHubUserSelect
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 int `json:"github_id,omitempty"` } client.GitHubUser.Query(). Select(githubuser.FieldGithubID). Scan(ctx, &v)
func (*GitHubUserQuery) Unique ¶
func (ghuq *GitHubUserQuery) Unique(unique bool) *GitHubUserQuery
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 (*GitHubUserQuery) Where ¶
func (ghuq *GitHubUserQuery) Where(ps ...predicate.GitHubUser) *GitHubUserQuery
Where adds a new predicate for the GitHubUserQuery builder.
func (*GitHubUserQuery) WithAssignedIssues ¶
func (ghuq *GitHubUserQuery) WithAssignedIssues(opts ...func(*GitHubIssueQuery)) *GitHubUserQuery
WithAssignedIssues tells the query-builder to eager-load the nodes that are connected to the "assigned_issues" edge. The optional arguments are used to configure the query builder of the edge.
func (*GitHubUserQuery) WithClosedIssues ¶
func (ghuq *GitHubUserQuery) WithClosedIssues(opts ...func(*GitHubIssueQuery)) *GitHubUserQuery
WithClosedIssues tells the query-builder to eager-load the nodes that are connected to the "closed_issues" edge. The optional arguments are used to configure the query builder of the edge.
func (*GitHubUserQuery) WithCreatedIssues ¶
func (ghuq *GitHubUserQuery) WithCreatedIssues(opts ...func(*GitHubIssueQuery)) *GitHubUserQuery
WithCreatedIssues tells the query-builder to eager-load the nodes that are connected to the "created_issues" edge. The optional arguments are used to configure the query builder of the edge.
func (*GitHubUserQuery) WithPerson ¶
func (ghuq *GitHubUserQuery) WithPerson(opts ...func(*PersonQuery)) *GitHubUserQuery
WithPerson tells the query-builder to eager-load the nodes that are connected to the "person" edge. The optional arguments are used to configure the query builder of the edge.
type GitHubUserSelect ¶
type GitHubUserSelect struct { *GitHubUserQuery // contains filtered or unexported fields }
GitHubUserSelect is the builder for selecting fields of GitHubUser entities.
func (*GitHubUserSelect) Bool ¶
func (ghus *GitHubUserSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*GitHubUserSelect) BoolX ¶
func (ghus *GitHubUserSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*GitHubUserSelect) Bools ¶
func (ghus *GitHubUserSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*GitHubUserSelect) BoolsX ¶
func (ghus *GitHubUserSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*GitHubUserSelect) Float64 ¶
func (ghus *GitHubUserSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*GitHubUserSelect) Float64X ¶
func (ghus *GitHubUserSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*GitHubUserSelect) Float64s ¶
func (ghus *GitHubUserSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*GitHubUserSelect) Float64sX ¶
func (ghus *GitHubUserSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*GitHubUserSelect) Int ¶
func (ghus *GitHubUserSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*GitHubUserSelect) IntX ¶
func (ghus *GitHubUserSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*GitHubUserSelect) Ints ¶
func (ghus *GitHubUserSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*GitHubUserSelect) IntsX ¶
func (ghus *GitHubUserSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*GitHubUserSelect) Scan ¶
func (ghus *GitHubUserSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*GitHubUserSelect) ScanX ¶
func (ghus *GitHubUserSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*GitHubUserSelect) String ¶
func (ghus *GitHubUserSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*GitHubUserSelect) StringX ¶
func (ghus *GitHubUserSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type GitHubUserUpdate ¶
type GitHubUserUpdate struct {
// contains filtered or unexported fields
}
GitHubUserUpdate is the builder for updating GitHubUser entities.
func (*GitHubUserUpdate) AddAssignedIssueIDs ¶
func (ghuu *GitHubUserUpdate) AddAssignedIssueIDs(ids ...string) *GitHubUserUpdate
AddAssignedIssueIDs adds the "assigned_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserUpdate) AddAssignedIssues ¶
func (ghuu *GitHubUserUpdate) AddAssignedIssues(g ...*GitHubIssue) *GitHubUserUpdate
AddAssignedIssues adds the "assigned_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdate) AddClosedIssueIDs ¶
func (ghuu *GitHubUserUpdate) AddClosedIssueIDs(ids ...string) *GitHubUserUpdate
AddClosedIssueIDs adds the "closed_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserUpdate) AddClosedIssues ¶
func (ghuu *GitHubUserUpdate) AddClosedIssues(g ...*GitHubIssue) *GitHubUserUpdate
AddClosedIssues adds the "closed_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdate) AddCreatedIssueIDs ¶
func (ghuu *GitHubUserUpdate) AddCreatedIssueIDs(ids ...string) *GitHubUserUpdate
AddCreatedIssueIDs adds the "created_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserUpdate) AddCreatedIssues ¶
func (ghuu *GitHubUserUpdate) AddCreatedIssues(g ...*GitHubIssue) *GitHubUserUpdate
AddCreatedIssues adds the "created_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdate) AddGithubID ¶
func (ghuu *GitHubUserUpdate) AddGithubID(i int) *GitHubUserUpdate
AddGithubID adds i to the "github_id" field.
func (*GitHubUserUpdate) ClearAssignedIssues ¶
func (ghuu *GitHubUserUpdate) ClearAssignedIssues() *GitHubUserUpdate
ClearAssignedIssues clears all "assigned_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdate) ClearClosedIssues ¶
func (ghuu *GitHubUserUpdate) ClearClosedIssues() *GitHubUserUpdate
ClearClosedIssues clears all "closed_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdate) ClearCreatedIssues ¶
func (ghuu *GitHubUserUpdate) ClearCreatedIssues() *GitHubUserUpdate
ClearCreatedIssues clears all "created_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdate) ClearPerson ¶
func (ghuu *GitHubUserUpdate) ClearPerson() *GitHubUserUpdate
ClearPerson clears the "person" edge to the Person entity.
func (*GitHubUserUpdate) Exec ¶
func (ghuu *GitHubUserUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*GitHubUserUpdate) ExecX ¶
func (ghuu *GitHubUserUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GitHubUserUpdate) Mutation ¶
func (ghuu *GitHubUserUpdate) Mutation() *GitHubUserMutation
Mutation returns the GitHubUserMutation object of the builder.
func (*GitHubUserUpdate) RemoveAssignedIssueIDs ¶
func (ghuu *GitHubUserUpdate) RemoveAssignedIssueIDs(ids ...string) *GitHubUserUpdate
RemoveAssignedIssueIDs removes the "assigned_issues" edge to GitHubIssue entities by IDs.
func (*GitHubUserUpdate) RemoveAssignedIssues ¶
func (ghuu *GitHubUserUpdate) RemoveAssignedIssues(g ...*GitHubIssue) *GitHubUserUpdate
RemoveAssignedIssues removes "assigned_issues" edges to GitHubIssue entities.
func (*GitHubUserUpdate) RemoveClosedIssueIDs ¶
func (ghuu *GitHubUserUpdate) RemoveClosedIssueIDs(ids ...string) *GitHubUserUpdate
RemoveClosedIssueIDs removes the "closed_issues" edge to GitHubIssue entities by IDs.
func (*GitHubUserUpdate) RemoveClosedIssues ¶
func (ghuu *GitHubUserUpdate) RemoveClosedIssues(g ...*GitHubIssue) *GitHubUserUpdate
RemoveClosedIssues removes "closed_issues" edges to GitHubIssue entities.
func (*GitHubUserUpdate) RemoveCreatedIssueIDs ¶
func (ghuu *GitHubUserUpdate) RemoveCreatedIssueIDs(ids ...string) *GitHubUserUpdate
RemoveCreatedIssueIDs removes the "created_issues" edge to GitHubIssue entities by IDs.
func (*GitHubUserUpdate) RemoveCreatedIssues ¶
func (ghuu *GitHubUserUpdate) RemoveCreatedIssues(g ...*GitHubIssue) *GitHubUserUpdate
RemoveCreatedIssues removes "created_issues" edges to GitHubIssue entities.
func (*GitHubUserUpdate) Save ¶
func (ghuu *GitHubUserUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*GitHubUserUpdate) SaveX ¶
func (ghuu *GitHubUserUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*GitHubUserUpdate) SetEmail ¶
func (ghuu *GitHubUserUpdate) SetEmail(s string) *GitHubUserUpdate
SetEmail sets the "email" field.
func (*GitHubUserUpdate) SetGithubID ¶
func (ghuu *GitHubUserUpdate) SetGithubID(i int) *GitHubUserUpdate
SetGithubID sets the "github_id" field.
func (*GitHubUserUpdate) SetLogin ¶
func (ghuu *GitHubUserUpdate) SetLogin(s string) *GitHubUserUpdate
SetLogin sets the "login" field.
func (*GitHubUserUpdate) SetName ¶
func (ghuu *GitHubUserUpdate) SetName(s string) *GitHubUserUpdate
SetName sets the "name" field.
func (*GitHubUserUpdate) SetNillablePersonID ¶
func (ghuu *GitHubUserUpdate) SetNillablePersonID(id *string) *GitHubUserUpdate
SetNillablePersonID sets the "person" edge to the Person entity by ID if the given value is not nil.
func (*GitHubUserUpdate) SetPerson ¶
func (ghuu *GitHubUserUpdate) SetPerson(p *Person) *GitHubUserUpdate
SetPerson sets the "person" edge to the Person entity.
func (*GitHubUserUpdate) SetPersonID ¶
func (ghuu *GitHubUserUpdate) SetPersonID(id string) *GitHubUserUpdate
SetPersonID sets the "person" edge to the Person entity by ID.
func (*GitHubUserUpdate) Where ¶
func (ghuu *GitHubUserUpdate) Where(ps ...predicate.GitHubUser) *GitHubUserUpdate
Where appends a list predicates to the GitHubUserUpdate builder.
type GitHubUserUpdateOne ¶
type GitHubUserUpdateOne struct {
// contains filtered or unexported fields
}
GitHubUserUpdateOne is the builder for updating a single GitHubUser entity.
func (*GitHubUserUpdateOne) AddAssignedIssueIDs ¶
func (ghuuo *GitHubUserUpdateOne) AddAssignedIssueIDs(ids ...string) *GitHubUserUpdateOne
AddAssignedIssueIDs adds the "assigned_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserUpdateOne) AddAssignedIssues ¶
func (ghuuo *GitHubUserUpdateOne) AddAssignedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
AddAssignedIssues adds the "assigned_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdateOne) AddClosedIssueIDs ¶
func (ghuuo *GitHubUserUpdateOne) AddClosedIssueIDs(ids ...string) *GitHubUserUpdateOne
AddClosedIssueIDs adds the "closed_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserUpdateOne) AddClosedIssues ¶
func (ghuuo *GitHubUserUpdateOne) AddClosedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
AddClosedIssues adds the "closed_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdateOne) AddCreatedIssueIDs ¶
func (ghuuo *GitHubUserUpdateOne) AddCreatedIssueIDs(ids ...string) *GitHubUserUpdateOne
AddCreatedIssueIDs adds the "created_issues" edge to the GitHubIssue entity by IDs.
func (*GitHubUserUpdateOne) AddCreatedIssues ¶
func (ghuuo *GitHubUserUpdateOne) AddCreatedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
AddCreatedIssues adds the "created_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdateOne) AddGithubID ¶
func (ghuuo *GitHubUserUpdateOne) AddGithubID(i int) *GitHubUserUpdateOne
AddGithubID adds i to the "github_id" field.
func (*GitHubUserUpdateOne) ClearAssignedIssues ¶
func (ghuuo *GitHubUserUpdateOne) ClearAssignedIssues() *GitHubUserUpdateOne
ClearAssignedIssues clears all "assigned_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdateOne) ClearClosedIssues ¶
func (ghuuo *GitHubUserUpdateOne) ClearClosedIssues() *GitHubUserUpdateOne
ClearClosedIssues clears all "closed_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdateOne) ClearCreatedIssues ¶
func (ghuuo *GitHubUserUpdateOne) ClearCreatedIssues() *GitHubUserUpdateOne
ClearCreatedIssues clears all "created_issues" edges to the GitHubIssue entity.
func (*GitHubUserUpdateOne) ClearPerson ¶
func (ghuuo *GitHubUserUpdateOne) ClearPerson() *GitHubUserUpdateOne
ClearPerson clears the "person" edge to the Person entity.
func (*GitHubUserUpdateOne) Exec ¶
func (ghuuo *GitHubUserUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*GitHubUserUpdateOne) ExecX ¶
func (ghuuo *GitHubUserUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*GitHubUserUpdateOne) Mutation ¶
func (ghuuo *GitHubUserUpdateOne) Mutation() *GitHubUserMutation
Mutation returns the GitHubUserMutation object of the builder.
func (*GitHubUserUpdateOne) RemoveAssignedIssueIDs ¶
func (ghuuo *GitHubUserUpdateOne) RemoveAssignedIssueIDs(ids ...string) *GitHubUserUpdateOne
RemoveAssignedIssueIDs removes the "assigned_issues" edge to GitHubIssue entities by IDs.
func (*GitHubUserUpdateOne) RemoveAssignedIssues ¶
func (ghuuo *GitHubUserUpdateOne) RemoveAssignedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
RemoveAssignedIssues removes "assigned_issues" edges to GitHubIssue entities.
func (*GitHubUserUpdateOne) RemoveClosedIssueIDs ¶
func (ghuuo *GitHubUserUpdateOne) RemoveClosedIssueIDs(ids ...string) *GitHubUserUpdateOne
RemoveClosedIssueIDs removes the "closed_issues" edge to GitHubIssue entities by IDs.
func (*GitHubUserUpdateOne) RemoveClosedIssues ¶
func (ghuuo *GitHubUserUpdateOne) RemoveClosedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
RemoveClosedIssues removes "closed_issues" edges to GitHubIssue entities.
func (*GitHubUserUpdateOne) RemoveCreatedIssueIDs ¶
func (ghuuo *GitHubUserUpdateOne) RemoveCreatedIssueIDs(ids ...string) *GitHubUserUpdateOne
RemoveCreatedIssueIDs removes the "created_issues" edge to GitHubIssue entities by IDs.
func (*GitHubUserUpdateOne) RemoveCreatedIssues ¶
func (ghuuo *GitHubUserUpdateOne) RemoveCreatedIssues(g ...*GitHubIssue) *GitHubUserUpdateOne
RemoveCreatedIssues removes "created_issues" edges to GitHubIssue entities.
func (*GitHubUserUpdateOne) Save ¶
func (ghuuo *GitHubUserUpdateOne) Save(ctx context.Context) (*GitHubUser, error)
Save executes the query and returns the updated GitHubUser entity.
func (*GitHubUserUpdateOne) SaveX ¶
func (ghuuo *GitHubUserUpdateOne) SaveX(ctx context.Context) *GitHubUser
SaveX is like Save, but panics if an error occurs.
func (*GitHubUserUpdateOne) Select ¶
func (ghuuo *GitHubUserUpdateOne) Select(field string, fields ...string) *GitHubUserUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*GitHubUserUpdateOne) SetEmail ¶
func (ghuuo *GitHubUserUpdateOne) SetEmail(s string) *GitHubUserUpdateOne
SetEmail sets the "email" field.
func (*GitHubUserUpdateOne) SetGithubID ¶
func (ghuuo *GitHubUserUpdateOne) SetGithubID(i int) *GitHubUserUpdateOne
SetGithubID sets the "github_id" field.
func (*GitHubUserUpdateOne) SetLogin ¶
func (ghuuo *GitHubUserUpdateOne) SetLogin(s string) *GitHubUserUpdateOne
SetLogin sets the "login" field.
func (*GitHubUserUpdateOne) SetName ¶
func (ghuuo *GitHubUserUpdateOne) SetName(s string) *GitHubUserUpdateOne
SetName sets the "name" field.
func (*GitHubUserUpdateOne) SetNillablePersonID ¶
func (ghuuo *GitHubUserUpdateOne) SetNillablePersonID(id *string) *GitHubUserUpdateOne
SetNillablePersonID sets the "person" edge to the Person entity by ID if the given value is not nil.
func (*GitHubUserUpdateOne) SetPerson ¶
func (ghuuo *GitHubUserUpdateOne) SetPerson(p *Person) *GitHubUserUpdateOne
SetPerson sets the "person" edge to the Person entity.
func (*GitHubUserUpdateOne) SetPersonID ¶
func (ghuuo *GitHubUserUpdateOne) SetPersonID(id string) *GitHubUserUpdateOne
SetPersonID sets the "person" edge to the Person entity by ID.
type GitHubUsers ¶
type GitHubUsers []*GitHubUser
GitHubUsers is a parsable slice of GitHubUser.
func (*GitHubUsers) FromResponse ¶
func (ghu *GitHubUsers) FromResponse(res *gremlin.Response) error
FromResponse scans the gremlin response data into GitHubUsers.
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 Person ¶
type Person struct { // ID of the ent. ID string `json:"id,omitempty"` // Email holds the value of the "email" field. Email string `json:"email,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // IsGiantSwarmEmployee holds the value of the "isGiantSwarmEmployee" field. IsGiantSwarmEmployee bool `json:"isGiantSwarmEmployee,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the PersonQuery when eager-loading is set. Edges PersonEdges `json:"edges"` // contains filtered or unexported fields }
Person is the model entity for the Person schema.
func (*Person) FromResponse ¶
FromResponse scans the gremlin response data into Person.
func (*Person) QueryGithubAccount ¶
func (pe *Person) QueryGithubAccount() *GitHubUserQuery
QueryGithubAccount queries the "github_account" edge of the Person entity.
func (*Person) Unwrap ¶
Unwrap unwraps the Person 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 (*Person) Update ¶
func (pe *Person) Update() *PersonUpdateOne
Update returns a builder for updating this Person. Note that you need to call Person.Unwrap() before calling this method if this Person was returned from a transaction, and the transaction was committed or rolled back.
type PersonClient ¶
type PersonClient struct {
// contains filtered or unexported fields
}
PersonClient is a client for the Person schema.
func NewPersonClient ¶
func NewPersonClient(c config) *PersonClient
NewPersonClient returns a client for the Person from the given config.
func (*PersonClient) Create ¶
func (c *PersonClient) Create() *PersonCreate
Create returns a create builder for Person.
func (*PersonClient) CreateBulk ¶
func (c *PersonClient) CreateBulk(builders ...*PersonCreate) *PersonCreateBulk
CreateBulk returns a builder for creating a bulk of Person entities.
func (*PersonClient) Delete ¶
func (c *PersonClient) Delete() *PersonDelete
Delete returns a delete builder for Person.
func (*PersonClient) DeleteOne ¶
func (c *PersonClient) DeleteOne(pe *Person) *PersonDeleteOne
DeleteOne returns a delete builder for the given entity.
func (*PersonClient) DeleteOneID ¶
func (c *PersonClient) DeleteOneID(id string) *PersonDeleteOne
DeleteOneID returns a delete builder for the given id.
func (*PersonClient) GetX ¶
func (c *PersonClient) GetX(ctx context.Context, id string) *Person
GetX is like Get, but panics if an error occurs.
func (*PersonClient) Query ¶
func (c *PersonClient) Query() *PersonQuery
Query returns a query builder for Person.
func (*PersonClient) QueryGithubAccount ¶
func (c *PersonClient) QueryGithubAccount(pe *Person) *GitHubUserQuery
QueryGithubAccount queries the github_account edge of a Person.
func (*PersonClient) Update ¶
func (c *PersonClient) Update() *PersonUpdate
Update returns an update builder for Person.
func (*PersonClient) UpdateOne ¶
func (c *PersonClient) UpdateOne(pe *Person) *PersonUpdateOne
UpdateOne returns an update builder for the given entity.
func (*PersonClient) UpdateOneID ¶
func (c *PersonClient) UpdateOneID(id string) *PersonUpdateOne
UpdateOneID returns an update builder for the given id.
func (*PersonClient) Use ¶
func (c *PersonClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `person.Hooks(f(g(h())))`.
type PersonCreate ¶
type PersonCreate struct {
// contains filtered or unexported fields
}
PersonCreate is the builder for creating a Person entity.
func (*PersonCreate) Exec ¶
func (pc *PersonCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*PersonCreate) ExecX ¶
func (pc *PersonCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PersonCreate) Mutation ¶
func (pc *PersonCreate) Mutation() *PersonMutation
Mutation returns the PersonMutation object of the builder.
func (*PersonCreate) Save ¶
func (pc *PersonCreate) Save(ctx context.Context) (*Person, error)
Save creates the Person in the database.
func (*PersonCreate) SaveX ¶
func (pc *PersonCreate) SaveX(ctx context.Context) *Person
SaveX calls Save and panics if Save returns an error.
func (*PersonCreate) SetEmail ¶
func (pc *PersonCreate) SetEmail(s string) *PersonCreate
SetEmail sets the "email" field.
func (*PersonCreate) SetGithubAccount ¶
func (pc *PersonCreate) SetGithubAccount(g *GitHubUser) *PersonCreate
SetGithubAccount sets the "github_account" edge to the GitHubUser entity.
func (*PersonCreate) SetGithubAccountID ¶
func (pc *PersonCreate) SetGithubAccountID(id string) *PersonCreate
SetGithubAccountID sets the "github_account" edge to the GitHubUser entity by ID.
func (*PersonCreate) SetID ¶
func (pc *PersonCreate) SetID(s string) *PersonCreate
SetID sets the "id" field.
func (*PersonCreate) SetIsGiantSwarmEmployee ¶
func (pc *PersonCreate) SetIsGiantSwarmEmployee(b bool) *PersonCreate
SetIsGiantSwarmEmployee sets the "isGiantSwarmEmployee" field.
func (*PersonCreate) SetName ¶
func (pc *PersonCreate) SetName(s string) *PersonCreate
SetName sets the "name" field.
func (*PersonCreate) SetNillableGithubAccountID ¶
func (pc *PersonCreate) SetNillableGithubAccountID(id *string) *PersonCreate
SetNillableGithubAccountID sets the "github_account" edge to the GitHubUser entity by ID if the given value is not nil.
type PersonCreateBulk ¶
type PersonCreateBulk struct {
// contains filtered or unexported fields
}
PersonCreateBulk is the builder for creating many Person entities in bulk.
type PersonDelete ¶
type PersonDelete struct {
// contains filtered or unexported fields
}
PersonDelete is the builder for deleting a Person entity.
func (*PersonDelete) Exec ¶
func (pd *PersonDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*PersonDelete) ExecX ¶
func (pd *PersonDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*PersonDelete) Where ¶
func (pd *PersonDelete) Where(ps ...predicate.Person) *PersonDelete
Where appends a list predicates to the PersonDelete builder.
type PersonDeleteOne ¶
type PersonDeleteOne struct {
// contains filtered or unexported fields
}
PersonDeleteOne is the builder for deleting a single Person entity.
func (*PersonDeleteOne) Exec ¶
func (pdo *PersonDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*PersonDeleteOne) ExecX ¶
func (pdo *PersonDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type PersonEdges ¶
type PersonEdges struct { // GithubAccount holds the value of the github_account edge. GithubAccount *GitHubUser `json:"github_account,omitempty"` // contains filtered or unexported fields }
PersonEdges holds the relations/edges for other nodes in the graph.
func (PersonEdges) GithubAccountOrErr ¶
func (e PersonEdges) GithubAccountOrErr() (*GitHubUser, error)
GithubAccountOrErr returns the GithubAccount value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type PersonGroupBy ¶
type PersonGroupBy struct {
// contains filtered or unexported fields
}
PersonGroupBy is the group-by builder for Person entities.
func (*PersonGroupBy) Aggregate ¶
func (pgb *PersonGroupBy) Aggregate(fns ...AggregateFunc) *PersonGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*PersonGroupBy) Bool ¶
func (pgb *PersonGroupBy) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.
func (*PersonGroupBy) BoolX ¶
func (pgb *PersonGroupBy) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*PersonGroupBy) Bools ¶
func (pgb *PersonGroupBy) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.
func (*PersonGroupBy) BoolsX ¶
func (pgb *PersonGroupBy) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*PersonGroupBy) Float64 ¶
func (pgb *PersonGroupBy) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.
func (*PersonGroupBy) Float64X ¶
func (pgb *PersonGroupBy) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*PersonGroupBy) Float64s ¶
func (pgb *PersonGroupBy) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.
func (*PersonGroupBy) Float64sX ¶
func (pgb *PersonGroupBy) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*PersonGroupBy) Int ¶
func (pgb *PersonGroupBy) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.
func (*PersonGroupBy) IntX ¶
func (pgb *PersonGroupBy) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*PersonGroupBy) Ints ¶
func (pgb *PersonGroupBy) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.
func (*PersonGroupBy) IntsX ¶
func (pgb *PersonGroupBy) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*PersonGroupBy) Scan ¶
func (pgb *PersonGroupBy) Scan(ctx context.Context, v interface{}) error
Scan applies the group-by query and scans the result into the given value.
func (*PersonGroupBy) ScanX ¶
func (pgb *PersonGroupBy) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*PersonGroupBy) String ¶
func (pgb *PersonGroupBy) String(ctx context.Context) (_ string, err error)
String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.
func (*PersonGroupBy) StringX ¶
func (pgb *PersonGroupBy) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type PersonMutation ¶
type PersonMutation struct {
// contains filtered or unexported fields
}
PersonMutation represents an operation that mutates the Person nodes in the graph.
func (*PersonMutation) AddField ¶
func (m *PersonMutation) 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 (*PersonMutation) AddedEdges ¶
func (m *PersonMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*PersonMutation) AddedField ¶
func (m *PersonMutation) 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 (*PersonMutation) AddedFields ¶
func (m *PersonMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*PersonMutation) AddedIDs ¶
func (m *PersonMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*PersonMutation) ClearEdge ¶
func (m *PersonMutation) 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 (*PersonMutation) ClearField ¶
func (m *PersonMutation) 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 (*PersonMutation) ClearGithubAccount ¶
func (m *PersonMutation) ClearGithubAccount()
ClearGithubAccount clears the "github_account" edge to the GitHubUser entity.
func (*PersonMutation) ClearedEdges ¶
func (m *PersonMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*PersonMutation) ClearedFields ¶
func (m *PersonMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (PersonMutation) Client ¶
func (m PersonMutation) 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 (*PersonMutation) EdgeCleared ¶
func (m *PersonMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*PersonMutation) Email ¶
func (m *PersonMutation) Email() (r string, exists bool)
Email returns the value of the "email" field in the mutation.
func (*PersonMutation) Field ¶
func (m *PersonMutation) 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 (*PersonMutation) FieldCleared ¶
func (m *PersonMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*PersonMutation) Fields ¶
func (m *PersonMutation) 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 (*PersonMutation) GithubAccountCleared ¶
func (m *PersonMutation) GithubAccountCleared() bool
GithubAccountCleared reports if the "github_account" edge to the GitHubUser entity was cleared.
func (*PersonMutation) GithubAccountID ¶
func (m *PersonMutation) GithubAccountID() (id string, exists bool)
GithubAccountID returns the "github_account" edge ID in the mutation.
func (*PersonMutation) GithubAccountIDs ¶
func (m *PersonMutation) GithubAccountIDs() (ids []string)
GithubAccountIDs returns the "github_account" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use GithubAccountID instead. It exists only for internal usage by the builders.
func (*PersonMutation) ID ¶
func (m *PersonMutation) ID() (id string, 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 (*PersonMutation) IsGiantSwarmEmployee ¶
func (m *PersonMutation) IsGiantSwarmEmployee() (r bool, exists bool)
IsGiantSwarmEmployee returns the value of the "isGiantSwarmEmployee" field in the mutation.
func (*PersonMutation) Name ¶
func (m *PersonMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*PersonMutation) OldEmail ¶
func (m *PersonMutation) OldEmail(ctx context.Context) (v string, err error)
OldEmail returns the old "email" field's value of the Person entity. If the Person object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PersonMutation) 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 (*PersonMutation) OldIsGiantSwarmEmployee ¶
func (m *PersonMutation) OldIsGiantSwarmEmployee(ctx context.Context) (v bool, err error)
OldIsGiantSwarmEmployee returns the old "isGiantSwarmEmployee" field's value of the Person entity. If the Person object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PersonMutation) OldName ¶
func (m *PersonMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Person entity. If the Person object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*PersonMutation) RemovedEdges ¶
func (m *PersonMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*PersonMutation) RemovedIDs ¶
func (m *PersonMutation) 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 (*PersonMutation) ResetEdge ¶
func (m *PersonMutation) 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 (*PersonMutation) ResetEmail ¶
func (m *PersonMutation) ResetEmail()
ResetEmail resets all changes to the "email" field.
func (*PersonMutation) ResetField ¶
func (m *PersonMutation) 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 (*PersonMutation) ResetGithubAccount ¶
func (m *PersonMutation) ResetGithubAccount()
ResetGithubAccount resets all changes to the "github_account" edge.
func (*PersonMutation) ResetIsGiantSwarmEmployee ¶
func (m *PersonMutation) ResetIsGiantSwarmEmployee()
ResetIsGiantSwarmEmployee resets all changes to the "isGiantSwarmEmployee" field.
func (*PersonMutation) ResetName ¶
func (m *PersonMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*PersonMutation) SetEmail ¶
func (m *PersonMutation) SetEmail(s string)
SetEmail sets the "email" field.
func (*PersonMutation) SetField ¶
func (m *PersonMutation) 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 (*PersonMutation) SetGithubAccountID ¶
func (m *PersonMutation) SetGithubAccountID(id string)
SetGithubAccountID sets the "github_account" edge to the GitHubUser entity by id.
func (*PersonMutation) SetID ¶
func (m *PersonMutation) SetID(id string)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Person entities.
func (*PersonMutation) SetIsGiantSwarmEmployee ¶
func (m *PersonMutation) SetIsGiantSwarmEmployee(b bool)
SetIsGiantSwarmEmployee sets the "isGiantSwarmEmployee" field.
func (*PersonMutation) SetName ¶
func (m *PersonMutation) SetName(s string)
SetName sets the "name" field.
func (PersonMutation) Tx ¶
func (m PersonMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*PersonMutation) Type ¶
func (m *PersonMutation) Type() string
Type returns the node type of this mutation (Person).
func (*PersonMutation) Where ¶
func (m *PersonMutation) Where(ps ...predicate.Person)
Where appends a list predicates to the PersonMutation builder.
type PersonQuery ¶
type PersonQuery struct {
// contains filtered or unexported fields
}
PersonQuery is the builder for querying Person entities.
func (*PersonQuery) All ¶
func (pq *PersonQuery) All(ctx context.Context) ([]*Person, error)
All executes the query and returns a list of Persons.
func (*PersonQuery) AllX ¶
func (pq *PersonQuery) AllX(ctx context.Context) []*Person
AllX is like All, but panics if an error occurs.
func (*PersonQuery) Clone ¶
func (pq *PersonQuery) Clone() *PersonQuery
Clone returns a duplicate of the PersonQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*PersonQuery) Count ¶
func (pq *PersonQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*PersonQuery) CountX ¶
func (pq *PersonQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*PersonQuery) Exist ¶
func (pq *PersonQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*PersonQuery) ExistX ¶
func (pq *PersonQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*PersonQuery) First ¶
func (pq *PersonQuery) First(ctx context.Context) (*Person, error)
First returns the first Person entity from the query. Returns a *NotFoundError when no Person was found.
func (*PersonQuery) FirstID ¶
func (pq *PersonQuery) FirstID(ctx context.Context) (id string, err error)
FirstID returns the first Person ID from the query. Returns a *NotFoundError when no Person ID was found.
func (*PersonQuery) FirstIDX ¶
func (pq *PersonQuery) FirstIDX(ctx context.Context) string
FirstIDX is like FirstID, but panics if an error occurs.
func (*PersonQuery) FirstX ¶
func (pq *PersonQuery) FirstX(ctx context.Context) *Person
FirstX is like First, but panics if an error occurs.
func (*PersonQuery) GroupBy ¶
func (pq *PersonQuery) GroupBy(field string, fields ...string) *PersonGroupBy
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 { Email string `json:"email,omitempty"` Count int `json:"count,omitempty"` } client.Person.Query(). GroupBy(person.FieldEmail). Aggregate(ent.Count()). Scan(ctx, &v)
func (*PersonQuery) IDs ¶
func (pq *PersonQuery) IDs(ctx context.Context) ([]string, error)
IDs executes the query and returns a list of Person IDs.
func (*PersonQuery) IDsX ¶
func (pq *PersonQuery) IDsX(ctx context.Context) []string
IDsX is like IDs, but panics if an error occurs.
func (*PersonQuery) Limit ¶
func (pq *PersonQuery) Limit(limit int) *PersonQuery
Limit adds a limit step to the query.
func (*PersonQuery) Offset ¶
func (pq *PersonQuery) Offset(offset int) *PersonQuery
Offset adds an offset step to the query.
func (*PersonQuery) Only ¶
func (pq *PersonQuery) Only(ctx context.Context) (*Person, error)
Only returns a single Person entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Person entity is not found. Returns a *NotFoundError when no Person entities are found.
func (*PersonQuery) OnlyID ¶
func (pq *PersonQuery) OnlyID(ctx context.Context) (id string, err error)
OnlyID is like Only, but returns the only Person ID in the query. Returns a *NotSingularError when exactly one Person ID is not found. Returns a *NotFoundError when no entities are found.
func (*PersonQuery) OnlyIDX ¶
func (pq *PersonQuery) OnlyIDX(ctx context.Context) string
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*PersonQuery) OnlyX ¶
func (pq *PersonQuery) OnlyX(ctx context.Context) *Person
OnlyX is like Only, but panics if an error occurs.
func (*PersonQuery) Order ¶
func (pq *PersonQuery) Order(o ...OrderFunc) *PersonQuery
Order adds an order step to the query.
func (*PersonQuery) QueryGithubAccount ¶
func (pq *PersonQuery) QueryGithubAccount() *GitHubUserQuery
QueryGithubAccount chains the current query on the "github_account" edge.
func (*PersonQuery) Select ¶
func (pq *PersonQuery) Select(fields ...string) *PersonSelect
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 { Email string `json:"email,omitempty"` } client.Person.Query(). Select(person.FieldEmail). Scan(ctx, &v)
func (*PersonQuery) Unique ¶
func (pq *PersonQuery) Unique(unique bool) *PersonQuery
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 (*PersonQuery) Where ¶
func (pq *PersonQuery) Where(ps ...predicate.Person) *PersonQuery
Where adds a new predicate for the PersonQuery builder.
func (*PersonQuery) WithGithubAccount ¶
func (pq *PersonQuery) WithGithubAccount(opts ...func(*GitHubUserQuery)) *PersonQuery
WithGithubAccount tells the query-builder to eager-load the nodes that are connected to the "github_account" edge. The optional arguments are used to configure the query builder of the edge.
type PersonSelect ¶
type PersonSelect struct { *PersonQuery // contains filtered or unexported fields }
PersonSelect is the builder for selecting fields of Person entities.
func (*PersonSelect) Bool ¶
func (ps *PersonSelect) Bool(ctx context.Context) (_ bool, err error)
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*PersonSelect) BoolX ¶
func (ps *PersonSelect) BoolX(ctx context.Context) bool
BoolX is like Bool, but panics if an error occurs.
func (*PersonSelect) Bools ¶
func (ps *PersonSelect) Bools(ctx context.Context) ([]bool, error)
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*PersonSelect) BoolsX ¶
func (ps *PersonSelect) BoolsX(ctx context.Context) []bool
BoolsX is like Bools, but panics if an error occurs.
func (*PersonSelect) Float64 ¶
func (ps *PersonSelect) Float64(ctx context.Context) (_ float64, err error)
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*PersonSelect) Float64X ¶
func (ps *PersonSelect) Float64X(ctx context.Context) float64
Float64X is like Float64, but panics if an error occurs.
func (*PersonSelect) Float64s ¶
func (ps *PersonSelect) Float64s(ctx context.Context) ([]float64, error)
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*PersonSelect) Float64sX ¶
func (ps *PersonSelect) Float64sX(ctx context.Context) []float64
Float64sX is like Float64s, but panics if an error occurs.
func (*PersonSelect) Int ¶
func (ps *PersonSelect) Int(ctx context.Context) (_ int, err error)
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*PersonSelect) IntX ¶
func (ps *PersonSelect) IntX(ctx context.Context) int
IntX is like Int, but panics if an error occurs.
func (*PersonSelect) Ints ¶
func (ps *PersonSelect) Ints(ctx context.Context) ([]int, error)
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*PersonSelect) IntsX ¶
func (ps *PersonSelect) IntsX(ctx context.Context) []int
IntsX is like Ints, but panics if an error occurs.
func (*PersonSelect) Scan ¶
func (ps *PersonSelect) Scan(ctx context.Context, v interface{}) error
Scan applies the selector query and scans the result into the given value.
func (*PersonSelect) ScanX ¶
func (ps *PersonSelect) ScanX(ctx context.Context, v interface{})
ScanX is like Scan, but panics if an error occurs.
func (*PersonSelect) String ¶
func (ps *PersonSelect) String(ctx context.Context) (_ string, err error)
String returns a single string from a selector. It is only allowed when selecting one field.
func (*PersonSelect) StringX ¶
func (ps *PersonSelect) StringX(ctx context.Context) string
StringX is like String, but panics if an error occurs.
type PersonUpdate ¶
type PersonUpdate struct {
// contains filtered or unexported fields
}
PersonUpdate is the builder for updating Person entities.
func (*PersonUpdate) ClearGithubAccount ¶
func (pu *PersonUpdate) ClearGithubAccount() *PersonUpdate
ClearGithubAccount clears the "github_account" edge to the GitHubUser entity.
func (*PersonUpdate) Exec ¶
func (pu *PersonUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*PersonUpdate) ExecX ¶
func (pu *PersonUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PersonUpdate) Mutation ¶
func (pu *PersonUpdate) Mutation() *PersonMutation
Mutation returns the PersonMutation object of the builder.
func (*PersonUpdate) Save ¶
func (pu *PersonUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*PersonUpdate) SaveX ¶
func (pu *PersonUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*PersonUpdate) SetEmail ¶
func (pu *PersonUpdate) SetEmail(s string) *PersonUpdate
SetEmail sets the "email" field.
func (*PersonUpdate) SetGithubAccount ¶
func (pu *PersonUpdate) SetGithubAccount(g *GitHubUser) *PersonUpdate
SetGithubAccount sets the "github_account" edge to the GitHubUser entity.
func (*PersonUpdate) SetGithubAccountID ¶
func (pu *PersonUpdate) SetGithubAccountID(id string) *PersonUpdate
SetGithubAccountID sets the "github_account" edge to the GitHubUser entity by ID.
func (*PersonUpdate) SetIsGiantSwarmEmployee ¶
func (pu *PersonUpdate) SetIsGiantSwarmEmployee(b bool) *PersonUpdate
SetIsGiantSwarmEmployee sets the "isGiantSwarmEmployee" field.
func (*PersonUpdate) SetName ¶
func (pu *PersonUpdate) SetName(s string) *PersonUpdate
SetName sets the "name" field.
func (*PersonUpdate) SetNillableGithubAccountID ¶
func (pu *PersonUpdate) SetNillableGithubAccountID(id *string) *PersonUpdate
SetNillableGithubAccountID sets the "github_account" edge to the GitHubUser entity by ID if the given value is not nil.
func (*PersonUpdate) Where ¶
func (pu *PersonUpdate) Where(ps ...predicate.Person) *PersonUpdate
Where appends a list predicates to the PersonUpdate builder.
type PersonUpdateOne ¶
type PersonUpdateOne struct {
// contains filtered or unexported fields
}
PersonUpdateOne is the builder for updating a single Person entity.
func (*PersonUpdateOne) ClearGithubAccount ¶
func (puo *PersonUpdateOne) ClearGithubAccount() *PersonUpdateOne
ClearGithubAccount clears the "github_account" edge to the GitHubUser entity.
func (*PersonUpdateOne) Exec ¶
func (puo *PersonUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*PersonUpdateOne) ExecX ¶
func (puo *PersonUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*PersonUpdateOne) Mutation ¶
func (puo *PersonUpdateOne) Mutation() *PersonMutation
Mutation returns the PersonMutation object of the builder.
func (*PersonUpdateOne) Save ¶
func (puo *PersonUpdateOne) Save(ctx context.Context) (*Person, error)
Save executes the query and returns the updated Person entity.
func (*PersonUpdateOne) SaveX ¶
func (puo *PersonUpdateOne) SaveX(ctx context.Context) *Person
SaveX is like Save, but panics if an error occurs.
func (*PersonUpdateOne) Select ¶
func (puo *PersonUpdateOne) Select(field string, fields ...string) *PersonUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*PersonUpdateOne) SetEmail ¶
func (puo *PersonUpdateOne) SetEmail(s string) *PersonUpdateOne
SetEmail sets the "email" field.
func (*PersonUpdateOne) SetGithubAccount ¶
func (puo *PersonUpdateOne) SetGithubAccount(g *GitHubUser) *PersonUpdateOne
SetGithubAccount sets the "github_account" edge to the GitHubUser entity.
func (*PersonUpdateOne) SetGithubAccountID ¶
func (puo *PersonUpdateOne) SetGithubAccountID(id string) *PersonUpdateOne
SetGithubAccountID sets the "github_account" edge to the GitHubUser entity by ID.
func (*PersonUpdateOne) SetIsGiantSwarmEmployee ¶
func (puo *PersonUpdateOne) SetIsGiantSwarmEmployee(b bool) *PersonUpdateOne
SetIsGiantSwarmEmployee sets the "isGiantSwarmEmployee" field.
func (*PersonUpdateOne) SetName ¶
func (puo *PersonUpdateOne) SetName(s string) *PersonUpdateOne
SetName sets the "name" field.
func (*PersonUpdateOne) SetNillableGithubAccountID ¶
func (puo *PersonUpdateOne) SetNillableGithubAccountID(id *string) *PersonUpdateOne
SetNillableGithubAccountID sets the "github_account" edge to the GitHubUser entity by ID if the given value is not nil.
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(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 Rollbacker method.
type Tx ¶
type Tx struct { // Cluster is the client for interacting with the Cluster builders. Cluster *ClusterClient // GitHubIssue is the client for interacting with the GitHubIssue builders. GitHubIssue *GitHubIssueClient // GitHubUser is the client for interacting with the GitHubUser builders. GitHubUser *GitHubUserClient // Person is the client for interacting with the Person builders. Person *PersonClient // 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 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
- cluster.go
- cluster_create.go
- cluster_delete.go
- cluster_query.go
- cluster_update.go
- config.go
- context.go
- ent.go
- generate.go
- githubissue.go
- githubissue_create.go
- githubissue_delete.go
- githubissue_query.go
- githubissue_update.go
- githubuser.go
- githubuser_create.go
- githubuser_delete.go
- githubuser_query.go
- githubuser_update.go
- mutation.go
- person.go
- person_create.go
- person_delete.go
- person_query.go
- person_update.go
- runtime.go
- tx.go