tree: 6b06bf1cad89f8502c37758a00ebca429992bbea [path history] [tgz]
  1. test_data/
  2. testing/
  3. export.go
  4. export_test.go
  5. generate.go
  6. main.go
  8. text.go

bqexport is a go:generate utility to generate Go structs based on BigQuery schema protobufs compatible with bqschemaupdater. These structs can then be used in combination with eventupload to send events to BigQuery.


  1. Create a TableDef protobuf.
  2. Once your protobuf has been reviewed and committed, run the bqexport command: bqexport --help. Don't have bqexport in your path? Try this inside the infra Go env.
  3. Add a go:generate line in generate.go in your Go package alongside your generated file:
//go:generate go install infra/cmd/bqexport
//go:generate bqexport -name MyStruct -path /path/to/tabledef.pb.txt