types

package
Version: v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InvalidUUIDFormatError = errors.New("invalid UUID format")

Functions

This section is empty.

Types

type Array

type Array struct {
	// contains filtered or unexported fields
}

func NewArray

func NewArray(v interface{}) *Array

func NewArrayByType

func NewArrayByType(chType string, v interface{}) *Array

func (*Array) Value

func (array *Array) Value() (driver.Value, error)

func (*Array) Values added in v1.3.5

func (array *Array) Values() interface{}

func (*Array) WriteArray

func (array *Array) WriteArray(encoder *binary.Encoder, column column.Column) (uint64, error)

type Date added in v1.3.5

type Date time.Time

Truncate timezone

clickhouse.Date(time.Date(2017, 1, 1, 0, 0, 0, 0, time.Local)) -> time.Date(2017, 1, 1, 0, 0, 0, 0, time.UTC)

func (Date) Value added in v1.3.5

func (date Date) Value() (driver.Value, error)

type DateTime added in v1.3.5

type DateTime time.Time

Truncate timezone

clickhouse.DateTime(time.Date(2017, 1, 1, 0, 0, 0, 0, time.Local)) -> time.Date(2017, 1, 1, 0, 0, 0, 0, time.UTC)

func (DateTime) Value added in v1.3.5

func (datetime DateTime) Value() (driver.Value, error)

type UUID added in v1.3.5

type UUID string

this type will be deprecated because the ClickHouse server (>=1.1.54276) has a built-in type UUID

func (UUID) MarshalBinary added in v1.3.5

func (str UUID) MarshalBinary() ([]byte, error)

func (*UUID) Scan added in v1.3.5

func (str *UUID) Scan(v interface{}) error

func (UUID) Value added in v1.3.5

func (str UUID) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL