Documentation ¶
Overview ¶
Package bqexporter exports status data to BigQuery.
Package bqexporter exports status data to BigQuery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportStatus ¶
ExportStatus exports status data to BigQuery. It queries Spanner and BigQuery and exports rows in Spanner that are not in BigQuery. This is run from a cron job and only 1 instance may be run at one time. Otherwise, we may run into the issue of inserting duplicated rows into BigQuery.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides methods to export statuses to BigQuery via the BigQuery Write API.
func (*Client) InsertStatusRows ¶
InsertStatusRows inserts the given rows in BigQuery.
type ExportClient ¶
type FakeClient ¶
FakeClient represents a fake implementation of the test variant branch exporter, for testing.
func NewFakeClient ¶
func NewFakeClient() *FakeClient
NewFakeClient creates a new FakeClient for exporting test variant branches.
func (*FakeClient) EnsureSchema ¶
func (fc *FakeClient) EnsureSchema(ctx context.Context) error