Documentation ¶
Index ¶
- Variables
- func Open(path string) (*sql.DB, error)
- func ParseIssueComment(owner string, repo string, number int, comment *github.IssueComment) (InsertCommentParams, InsertUserParams, []error)
- func ParsePullRequestComment(owner string, repo string, number int, comment *github.PullRequestComment) (InsertCommentParams, InsertUserParams, []error)
- func ParsePullRequestReview(owner string, repo string, number int, review *github.PullRequestReview) (InsertReviewParams, InsertUserParams, []error)
- type Comment
- type DBTX
- type InsertCommentParams
- type InsertPullParams
- type InsertReviewParams
- type InsertTimelineParams
- type InsertUserParams
- type Pull
- type Queries
- func (q *Queries) InsertComment(ctx context.Context, arg InsertCommentParams) error
- func (q *Queries) InsertPull(ctx context.Context, arg InsertPullParams) error
- func (q *Queries) InsertReview(ctx context.Context, arg InsertReviewParams) error
- func (q *Queries) InsertTimeline(ctx context.Context, arg InsertTimelineParams) error
- func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) error
- func (q *Queries) ReportCycleTime(ctx context.Context) ([]ReportCycleTimeRow, error)
- func (q *Queries) RetrieveDistinctUsers(ctx context.Context) ([]RetrieveDistinctUsersRow, error)
- func (q *Queries) RetrieveFirstCommenter(ctx context.Context, userids []int64) ([]RetrieveFirstCommenterRow, error)
- func (q *Queries) RetrieveFirstReviewer(ctx context.Context, userids []int64) ([]RetrieveFirstReviewerRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type ReportCycleTimeRow
- type RetrieveDistinctUsersRow
- type RetrieveFirstCommenterRow
- type RetrieveFirstReviewerRow
- type Review
- type Timeline
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateTablesQuery string
Functions ¶
func ParseIssueComment ¶
func ParseIssueComment(owner string, repo string, number int, comment *github.IssueComment) (InsertCommentParams, InsertUserParams, []error)
func ParsePullRequestComment ¶
func ParsePullRequestComment(owner string, repo string, number int, comment *github.PullRequestComment) (InsertCommentParams, InsertUserParams, []error)
func ParsePullRequestReview ¶
func ParsePullRequestReview(owner string, repo string, number int, review *github.PullRequestReview) (InsertReviewParams, InsertUserParams, []error)
Types ¶
type InsertCommentParams ¶
type InsertPullParams ¶
type InsertPullParams struct { ID int64 Owner string Repo string Title string Url string Additions int64 Deletions int64 ChangedFiles int64 AuthorID int64 CreatedAt string ClosedAt sql.NullString IsMerged int64 }
func ParsePullRequest ¶
func ParsePullRequest(owner string, repo string, number int, pr *github.PullRequest) (InsertPullParams, []error)
type InsertReviewParams ¶
type InsertTimelineParams ¶
type InsertTimelineParams struct { Event string CreatedAt string Owner string Repo string PullID int64 }
func ParseTimelineEvent ¶
type InsertUserParams ¶
type InsertUserParams struct { ID int64 Login string DisplayName sql.NullString }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) InsertComment ¶
func (q *Queries) InsertComment(ctx context.Context, arg InsertCommentParams) error
func (*Queries) InsertPull ¶
func (q *Queries) InsertPull(ctx context.Context, arg InsertPullParams) error
func (*Queries) InsertReview ¶
func (q *Queries) InsertReview(ctx context.Context, arg InsertReviewParams) error
func (*Queries) InsertTimeline ¶
func (q *Queries) InsertTimeline(ctx context.Context, arg InsertTimelineParams) error
func (*Queries) InsertUser ¶
func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) error
func (*Queries) ReportCycleTime ¶
func (q *Queries) ReportCycleTime(ctx context.Context) ([]ReportCycleTimeRow, error)
func (*Queries) RetrieveDistinctUsers ¶
func (q *Queries) RetrieveDistinctUsers(ctx context.Context) ([]RetrieveDistinctUsersRow, error)
func (*Queries) RetrieveFirstCommenter ¶
func (*Queries) RetrieveFirstReviewer ¶
type ReportCycleTimeRow ¶
Click to show internal directories.
Click to hide internal directories.