bqutil

package
v0.0.0-...-7bf56e6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package bqutil contains utility functions for BigQuery.

Index

Constants

View Source
const InternalDatasetID = "internal"

InternalDatasetID is the name of the BigQuery dataset which is intended for internal service use only.

Variables

This section is empty.

Functions

func ProjectForDataset

func ProjectForDataset(dataset string) (string, error)

ProjectForDataset returns the name of the LUCI Project that corresponds to the given BigQuery dataset.

func TestFailureAnalysisToBqRow

func TestFailureAnalysisToBqRow(ctx context.Context, tfa *model.TestFailureAnalysis) (*bqpb.TestAnalysisRow, error)

TestFailureAnalysisToBqRow returns a TestAnalysisRow for a TestFailureAnalysis. This is very similar to TestFailureAnalysisToPb in protoutil, but we intentionally keep them separate because they are for 2 different purposes. It gives us the flexibility to change one without affecting the others.

Types

This section is empty.

Jump to

Keyboard shortcuts

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