Help us shape the future of Go! Take the 2026 Go Developer Survey

schema

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFieldType

func BuildFieldType(field *bigquery.TableFieldSchema) (reflect.Type, error)

BuildFieldType build a field type from big query schema

func BuildSchemaTypes

func BuildSchemaTypes(table *bigquery.TableSchema) ([]reflect.Type, error)

BuildSchemaTypes build type matching table schema

Types

type FieldType

type FieldType string

FieldType is the type of field.

const (
	// FieldTypeString is a string field type.
	FieldTypeString FieldType = "STRING"
	// FieldTypeBytes is a bytes field type.
	FieldTypeBytes FieldType = "BYTES"
	// FieldTypeInteger is a integer field type.
	FieldTypeInteger FieldType = "INTEGER"
	// FieldTypeFloat is a float field type.
	FieldTypeFloat FieldType = "FLOAT"
	// FieldTypeBoolean is a boolean field type.
	FieldTypeBoolean FieldType = "BOOLEAN"
	// FieldTypeTimestamp is a timestamp field type.
	FieldTypeTimestamp FieldType = "TIMESTAMP"
	// FieldTypeRecord is a record field type.
	FieldTypeRecord FieldType = "RECORD"
	// FieldTypeDate is a date field type.
	FieldTypeDate FieldType = "DATE"
	// FieldTypeTime is a time field type.
	FieldTypeTime FieldType = "TIME"
	// FieldTypeDateTime is a datetime field type.
	FieldTypeDateTime FieldType = "DATETIME"
	// FieldTypeNumeric is a numeric field type.
	FieldTypeNumeric FieldType = "NUMERIC"
	// FieldTypeBigNumeric is a numeric field type that supports values of larger precision
	FieldTypeBigNumeric FieldType = "BIGNUMERIC"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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