Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("no rows returned")
)
Functions ¶
This section is empty.
Types ¶
type BQClient ¶
type BQClient interface {
Put(ctx context.Context, table string, data any) error
StreamRead(ctx context.Context, table string, projectIDs []string) (<-chan []byte, <-chan error)
StreamPut(ctx context.Context, table string, data any) error
StreamPutAll(ctx context.Context, inputs map[string][]any) error
Query(ctx context.Context, query string, params []bigquery.QueryParameter) (*bigquery.RowIterator, error)
QueryRow(ctx context.Context, query string, params []bigquery.QueryParameter, dst any) error
Update(ctx context.Context, table string, id string, updates map[string]interface{}) error
Delete(ctx context.Context, table string, id string) error
Get(ctx context.Context, table string, id string, dst any) error
Close() error
}
Click to show internal directories.
Click to hide internal directories.