Documentation ¶
Overview ¶
Package bq handles sending rows to BigQuery.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Fake ¶
type Fake struct {
// contains filtered or unexported fields
}
Fake is a fake BQ client for tests.
func (*Fake) Rows ¶
Rows returns the stored rows for a given dataset and table.
cloudProject can be empty, implying the same cloud project as the running code.
func (*Fake) RowsCount ¶
RowsCount returns the number of stored rows for a given dataset and table.
cloudProject can be empty, implying the same cloud project as the running code.
type Row ¶
type Row struct { // CloudProject allows sending rows to other projects. // // Optional. Defaults to the one in the scope of which this process is running // (e.g. "luci-change-verifier-dev"). CloudProject string Dataset string Table string // OperationID is used for de-duplication, but over just 1 minute window :( OperationID string Payload proto.Message }
Row encapsulates destination and actual row to send.
Exists to avoid confusion over multiple string arguments to SendRow.
Click to show internal directories.
Click to hide internal directories.