Documentation
¶
Index ¶
- type DB
- func (d *DB) CreatePullRequestModel(repo *types.Repo, pull *github.PullRequest) *types.PullRequest
- func (d *DB) GetPullByNumber(repo *types.Repo, pullNumber int) (*types.PullRequest, error)
- func (d *DB) PatchPullRequestModel(model *types.PullRequest, repo *types.Repo, pull *github.PullRequest) *types.PullRequest
- func (d *DB) SavePull(pull *types.PullRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB struct offer database connection and some common table manipulations
func CreateDbConnect ¶
CreateDbConnect create database connect to TiDB or MySQL
func (*DB) CreatePullRequestModel ¶
func (d *DB) CreatePullRequestModel(repo *types.Repo, pull *github.PullRequest) *types.PullRequest
CreatePullRequestModel create pull request model from github pull request
func (*DB) GetPullByNumber ¶
GetPullByNumber finds pull by pull number
func (*DB) PatchPullRequestModel ¶
func (d *DB) PatchPullRequestModel(model *types.PullRequest, repo *types.Repo, pull *github.PullRequest) *types.PullRequest
PatchPullRequestModel update pull request model
Click to show internal directories.
Click to hide internal directories.