types

package
v0.0.0-...-90a1d44 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISO8601     = "2006-01-02T15:04:05-0700"
	ISO8601Date = "2006-01-02"
)

Variables

This section is empty.

Functions

func Encode

func Encode(t Type, value interface{}) ([]byte, error)

Types

type Type

type Type uint8
const (
	TypeDecimal   Type = 0
	TypeTiny      Type = 1
	TypeShort     Type = 2
	TypeLong      Type = 3
	TypeFloat     Type = 4
	TypeDouble    Type = 5
	TypeNull      Type = 6
	TypeTimestamp Type = 7
	TypeLonglong  Type = 8
	TypeInt24     Type = 9
	TypeDate      Type = 10
	/* TypeDuration original name was TypeTime, renamed to TypeDuration to resolve the conflict with Go type Time.*/
	TypeDuration Type = 11
	TypeDatetime Type = 12
	TypeYear     Type = 13
	TypeNewDate  Type = 14
	TypeVarchar  Type = 15
	TypeBit      Type = 16

	TypeJSON       Type = 0xf5
	TypeNewDecimal Type = 0xf6
	TypeEnum       Type = 0xf7
	TypeSet        Type = 0xf8
	TypeTinyBlob   Type = 0xf9
	TypeMediumBlob Type = 0xfa
	TypeLongBlob   Type = 0xfb
	TypeBlob       Type = 0xfc
	TypeVarString  Type = 0xfd
	TypeString     Type = 0xfe
	TypeGeometry   Type = 0xff
)

func (Type) String

func (i Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳