db

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommitJobTransaction

func CommitJobTransaction(dbContext *config.DbContextType) error

func ConnectDB

func ConnectDB(conf *config.ConfigType) error

func InitDatabase

func InitDatabase(conf config.ConfigType) error

func PrepareJobTransaction

func PrepareJobTransaction(ctx context.Context, conf config.ConfigType, dbContext *config.DbContextType) error

func QueryWorkflowRunAttempts

func QueryWorkflowRunAttempts(conf config.ConfigType, runId int64) map[int64]struct{}

func QueryWorkflowRunsNotInDb

func QueryWorkflowRunsNotInDb(conf config.ConfigType, workflowRuns []gh.WorkflowRunAttemptKey) []gh.WorkflowRunAttemptKey

func SaveJobInfo

func SaveJobInfo(dbContext *config.DbContextType, workflowJob *github.WorkflowJob) error

func SaveStepInfo

func SaveStepInfo(dbContext *config.DbContextType, job *github.WorkflowJob, step *github.TaskStep) error

func SaveWorkflowRun

func SaveWorkflowRun(conf config.ConfigType, record *data.WorkflowRunRec) error

func SaveWorkflowRunAttempt

func SaveWorkflowRunAttempt(conf config.ConfigType, workflowRun *github.WorkflowRun) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL