package types

import "github.com/ClickHouse/clickhouse-go/lib/types"

Index

Variables

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

Types

type Date

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

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

type DateTime

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

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

type UUID

type UUID string

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

func (UUID) MarshalBinary

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

func (*UUID) Scan

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

func (UUID) Value

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

Source Files

date.go uuid.go

Version
v1.5.4 (latest)
Published
Feb 8, 2022
Platform
linux/amd64
Imports
5 packages
Last checked
2 hours ago

Tools for package owners.