data

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClickHouseRevision         = 54213
	ClickHouseDBMSVersionMajor = 1
	ClickHouseDBMSVersionMinor = 1
)
View Source
const ClientName = "Golang SQLDriver"

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Values     [][]interface{}
	Columns    []column.Column
	NumRows    uint64
	NumColumns uint64
	// contains filtered or unexported fields
}

func (*Block) AppendRow

func (block *Block) AppendRow(args []driver.Value) error

func (*Block) ColumnNames

func (block *Block) ColumnNames() []string

func (*Block) Copy

func (block *Block) Copy() *Block

func (*Block) Read

func (block *Block) Read(serverInfo *ServerInfo, decoder *binary.Decoder) (err error)

func (*Block) Reserve

func (block *Block) Reserve()

func (*Block) Reset

func (block *Block) Reset()

func (*Block) Write

func (block *Block) Write(serverInfo *ServerInfo, encoder *binary.Encoder) error

func (*Block) WriteArray

func (block *Block) WriteArray(c int, v interface{}) error

func (*Block) WriteArrayNullable

func (block *Block) WriteArrayNullable(c int, v *interface{}) error

func (*Block) WriteArrayWithValue

func (block *Block) WriteArrayWithValue(c int, value Value) error

func (*Block) WriteBool

func (block *Block) WriteBool(c int, v bool) error

func (*Block) WriteBytes

func (block *Block) WriteBytes(c int, v []byte) error

func (*Block) WriteBytesNullable

func (block *Block) WriteBytesNullable(c int, v *[]byte) error

func (*Block) WriteDate

func (block *Block) WriteDate(c int, v time.Time) error

func (*Block) WriteDateNullable

func (block *Block) WriteDateNullable(c int, v *time.Time) error

func (*Block) WriteDateTime

func (block *Block) WriteDateTime(c int, v time.Time) error

func (*Block) WriteDateTimeNullable

func (block *Block) WriteDateTimeNullable(c int, v *time.Time) error

func (*Block) WriteFixedString

func (block *Block) WriteFixedString(c int, v []byte) error

func (*Block) WriteFixedStringNullable

func (block *Block) WriteFixedStringNullable(c int, v *[]byte) error

func (*Block) WriteFloat32

func (block *Block) WriteFloat32(c int, v float32) error

func (*Block) WriteFloat32Nullable

func (block *Block) WriteFloat32Nullable(c int, v *float32) error

func (*Block) WriteFloat64

func (block *Block) WriteFloat64(c int, v float64) error

func (*Block) WriteFloat64Nullable

func (block *Block) WriteFloat64Nullable(c int, v *float64) error

func (*Block) WriteIP

func (block *Block) WriteIP(c int, v net.IP) error

func (*Block) WriteInt16

func (block *Block) WriteInt16(c int, v int16) error

func (*Block) WriteInt16Nullable

func (block *Block) WriteInt16Nullable(c int, v *int16) error

func (*Block) WriteInt32

func (block *Block) WriteInt32(c int, v int32) error

func (*Block) WriteInt32Nullable

func (block *Block) WriteInt32Nullable(c int, v *int32) error

func (*Block) WriteInt64

func (block *Block) WriteInt64(c int, v int64) error

func (*Block) WriteInt64Nullable

func (block *Block) WriteInt64Nullable(c int, v *int64) error

func (*Block) WriteInt8

func (block *Block) WriteInt8(c int, v int8) error

func (*Block) WriteInt8Nullable

func (block *Block) WriteInt8Nullable(c int, v *int8) error

func (*Block) WriteString

func (block *Block) WriteString(c int, v string) error

func (*Block) WriteStringNullable

func (block *Block) WriteStringNullable(c int, v *string) error

func (*Block) WriteUInt16

func (block *Block) WriteUInt16(c int, v uint16) error

func (*Block) WriteUInt16Nullable

func (block *Block) WriteUInt16Nullable(c int, v *uint16) error

func (*Block) WriteUInt32

func (block *Block) WriteUInt32(c int, v uint32) error

func (*Block) WriteUInt32Nullable

func (block *Block) WriteUInt32Nullable(c int, v *uint32) error

func (*Block) WriteUInt64

func (block *Block) WriteUInt64(c int, v uint64) error

func (*Block) WriteUInt64Nullable

func (block *Block) WriteUInt64Nullable(c int, v *uint64) error

func (*Block) WriteUInt8

func (block *Block) WriteUInt8(c int, v uint8) error

func (*Block) WriteUInt8Nullable

func (block *Block) WriteUInt8Nullable(c int, v *uint8) error

type ClientInfo

type ClientInfo struct{}

func (ClientInfo) String

func (ClientInfo) String() string

func (ClientInfo) Write

func (ClientInfo) Write(encoder *binary.Encoder) error

type ServerInfo

type ServerInfo struct {
	Name         string
	Revision     uint64
	MinorVersion uint64
	MajorVersion uint64
	Timezone     *time.Location
}

func (*ServerInfo) Read

func (srv *ServerInfo) Read(decoder *binary.Decoder) (err error)

func (ServerInfo) String

func (srv ServerInfo) String() string

type Value

type Value interface {
	// Kind returns value's Kind.
	Kind() reflect.Kind

	// Len returns value's length.
	// It panics if value's Kind is not Array, Chan, Map, Slice, or String.
	Len() int

	// Index returns value's i'th element.
	// It panics if value's Kind is not Array, Slice, or String or i is out of range.
	Index(i int) Value

	// Interface returns value's current value as an interface{}.
	Interface() interface{}
}

Value is a writable value.

Jump to

Keyboard shortcuts

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