adapt

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 10 Imported by: 12

Documentation

Overview

Package adapt adds functionality related to converting bigquery representations like schema and data type representations.

It is EXPERIMENTAL and subject to change or removal without notice.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BQSchemaToStorageTableSchema

func BQSchemaToStorageTableSchema(in bigquery.Schema) (*storagepb.TableSchema, error)

BQSchemaToStorageTableSchema converts a bigquery Schema into the protobuf-based TableSchema used by the BigQuery Storage WriteClient.

func StorageSchemaToDescriptor

func StorageSchemaToDescriptor(inSchema *storagepb.TableSchema, scope string) (protoreflect.Descriptor, error)

StorageSchemaToDescriptor builds a protoreflect.Descriptor for a given table schema.

func StorageTableSchemaToBQSchema

func StorageTableSchemaToBQSchema(in *storagepb.TableSchema) (bigquery.Schema, error)

StorageTableSchemaToBQSchema converts a TableSchema from the BigQuery Storage WriteClient into the equivalent BigQuery Schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL