schema

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
	// FieldTypeBool is a bool field type.
	FieldTypeBool FieldType = "BOOL"

	// 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