Documentation
¶
Overview ¶
Package bqutil provides utility functions to interact with BigQuery.
Index ¶
- Constants
- func DatasetForProject(luciProject string) (string, error)
- func FatalError(err error) bool
- func MarshalStructPB(s *structpb.Struct) (string, error)
- func ProjectForDataset(dataset string) (string, error)
- func TestVariantIdentifier(testID string, variant *rdbpb.Variant) (*bqpb.TestVariantIdentifier, error)
- func VariantJSON(variant *rdbpb.Variant) (string, error)
- type Inserter
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 DatasetForProject ¶
DatasetForProject returns the name of the BigQuery dataset that contains the given project's data, in the LUCI Analysis GCP project.
func FatalError ¶
FatalError returns true if the error is a known fatal error.
func MarshalStructPB ¶
MarshalStructPB serialises a structpb.Struct as a JSONPB.
func ProjectForDataset ¶
ProjectForDataset returns the name of the LUCI Project that corresponds to the given BigQuery dataset.
func TestVariantIdentifier ¶
func TestVariantIdentifier(testID string, variant *rdbpb.Variant) (*bqpb.TestVariantIdentifier, error)
TestVariantIdentifier constructs a BigQuery-format TestVariantIdentifier from a flat ResultDB test ID and variant combination.
Types ¶
Click to show internal directories.
Click to hide internal directories.