zsqltypes

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package zsqltypes provides a minimal pure-Go TypeKind enum for the bigquery-emulator codebase. Its constants use the BigQuery type names (INT64 etc.), and their numeric values track the googlesql.TypeKind enum exposed by the googlesqlite driver, so a `*googlesqlite.ColumnType.Kind` can be cast directly to TypeKind.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TypeKind

type TypeKind int

TypeKind matches googlesql.TypeKind integer values.

const (
	TYPE_UNKNOWN TypeKind = 0

	INT32       TypeKind = 2
	INT64       TypeKind = 3
	UINT32      TypeKind = 4
	UINT64      TypeKind = 5
	BOOL        TypeKind = 6
	FLOAT       TypeKind = 7
	DOUBLE      TypeKind = 8
	STRING      TypeKind = 9
	BYTES       TypeKind = 10
	DATE        TypeKind = 11
	ENUM        TypeKind = 16
	ARRAY       TypeKind = 17
	STRUCT      TypeKind = 18
	PROTO       TypeKind = 19
	TIMESTAMP   TypeKind = 20
	TIME        TypeKind = 21
	DATETIME    TypeKind = 22
	GEOGRAPHY   TypeKind = 23
	NUMERIC     TypeKind = 24
	BIG_NUMERIC TypeKind = 25
	EXTENDED    TypeKind = 26
	JSON        TypeKind = 27
	INTERVAL    TypeKind = 28
)

func (TypeKind) String

func (k TypeKind) String() string

Jump to

Keyboard shortcuts

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