Documentation ¶
Index ¶
Constants ¶
View Source
const (
// FileExtension is the file extension for BigQuery schema files.
FileExtension = "TableSchema.json"
)
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(input protoreflect.MessageDescriptor, opts ...GenerateOptions) (bigquery.Schema, *descriptorpb.DescriptorProto, error)
Generate generates a BigQuery schema for the given message descriptor.
Types ¶
type GenerateOptions ¶
type GenerateOptions interface {
// contains filtered or unexported methods
}
GenerateOptions are the options for Generate.
func WithMaxDepth ¶
func WithMaxDepth(maxDepth int) GenerateOptions
WithMaxDepth returns a GenerateOptions that sets the max depth.
func WithMaxRecursionDepth ¶
func WithMaxRecursionDepth(maxRecursionDepth int) GenerateOptions
WithMaxRecursionDepth returns a GenerateOptions that sets the max recursion depth.
Click to show internal directories.
Click to hide internal directories.