bq

package
v0.59.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BQ

type BQ struct {
	// contains filtered or unexported fields
}

func New

func New(client *bigquery.Client, dataset, table string) (*BQ, error)

func (*BQ) CreateTable

func (b *BQ) CreateTable(ctx context.Context) error

func (*BQ) FS

func (b *BQ) FS() (fs.FS, error)

func (*BQ) Put added in v0.27.0

func (b *BQ) Put(ctx context.Context, path string, context []byte) error

func (*BQ) StoreReport added in v0.27.0

func (b *BQ) StoreReport(ctx context.Context, r *report.Report) error

type ReportRecord

type ReportRecord struct {
	Id                  string               `bigquery:"id"`
	Owner               string               `bigquery:"owner"`
	Repo                string               `bigquery:"repo"`
	Ref                 string               `bigquery:"ref"`
	Commit              string               `bigquery:"commit"`
	CoverageTotal       bigquery.NullInt64   `bigquery:"coverage_total"`
	CoverageCovered     bigquery.NullInt64   `bigquery:"coverage_covered"`
	CodeToTestRatioCode bigquery.NullInt64   `bigquery:"code_to_test_ratio_code"`
	CodeToTestRatioTest bigquery.NullInt64   `bigquery:"code_to_test_ratio_test"`
	TestExecutionTime   bigquery.NullFloat64 `bigquery:"test_execution_time"`
	Timestamp           time.Time            `bigquery:"timestamp"`
	Raw                 string               `bigquery:"raw"`
}

Jump to

Keyboard shortcuts

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