boost-factory-bigquery

Use when constructing a Google BigQuery client in a Go service via github.com/xgodev/boost/factory/contrib/cloud.google.com/bigquery/v1. Covers NewClient + variants and the per-instance config root (boost.factory.gcp.bigquery.*) with nested apiOptions/grpcOptions. Triggers on imports under factory/contrib/cloud.google.com/bigquery/, on questions about BigQuery in a boost service, or NewClient construction.

xgodev/boost1 installsMITSynced Aug 26

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: boost-factory-bigquery
description: Use when constructing a Google BigQuery client in a Go service via github.com/xgodev/boost/factory/contrib/cloud.google.com/bigquery/v1. Covers NewClient + variants and the per-instance config root (boost.factory.gcp.bigquery.*) with nested apiOptions/grpcOptions. Triggers on imports under factory/contrib/cloud.google.com/bigquery/, on questions about BigQuery in a boost service, or NewClient construction.
license: MIT
---

**REQUIRED BACKGROUND:** `boost-start`, `boost-wrapper-config`, `boost-factory-gcp-api`, `boost-factory-gcp-grpc`.

```go
import bq "github.com/xgodev/boost/factory/contrib/cloud.google.com/bigquery/v1"

client, err := bq.NewClient(ctx)
if err != nil { log.Fatalf("bigquery: %v", err) }
defer client.Close()
```

Configure under `boost.factory.gcp.bigquery.*`. The factory composes nested `boost.factory.gcp.bigquery.apiOptions.*` (GCP credentials, endpoint) and `boost.factory.gcp.bigquery.grpcOptions.*` (keepalive, retries, message size). Override individually:

```
BOOST_FACTORY_GCP_BIGQUERY_APIOPTIONS_PROJECTID=my-project
BOOST_FACTORY_GCP_BIGQUERY_GRPCOPTIONS_KEEPALIVE_TIME=30s
```

`plugins ...clientgrpc.Plugin` accepts gRPC interceptors (tracing, metrics).

## Red flags

| Red flag | Fix |
|---|---|
| `bigquery.NewClient(ctx, projectID)` from upstream SDK directly | `bq.NewClient(ctx)` |
| `GOOGLE_CLOUD_PROJECT` via `os.Getenv` | `BOOST_FACTORY_GCP_BIGQUERY_APIOPTIONS_PROJECTID` |
| Forgetting `defer client.Close()` | Add it — drains gRPC |

More API Design skills

← All API Design skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY