tree: d1c165bd1fcf10c8027a367d9a3580364def87df [path history] [tgz]
  1. test_data/
  2. testing/
  3. export.go
  4. export_test.go
  5. generate.go
  6. main.go
  7. README.md
  8. text.go
go/src/infra/cmd/bqexport/README.md

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.

Usage

  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