clickhouse

package
v1.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodeFunc

type EncodeFunc func(data interface{}) (item *WriteItem, err error)

EncodeFunc .

type Interface

type Interface interface {

	// Client .
	Client() ckdriver.Conn

	// NewWriter .
	NewWriter(opts *WriterOptions) *Writer
}

Interface clickhouse client

type WriteItem

type WriteItem struct {
	Table string
	Data  interface{}
}

WriteItem .

type Writer

type Writer struct {
	Encoder EncodeFunc
	// contains filtered or unexported fields
}

Writer .

func NewWriter

func NewWriter(client ckdriver.Conn, encoder EncodeFunc) *Writer

NewWriter .

func (*Writer) Close

func (w *Writer) Close() error

Close .

func (*Writer) WriteN

func (w *Writer) WriteN(list ...interface{}) (int, error)

WriteN .

type WriterOptions

type WriterOptions struct {
	Encoder EncodeFunc
}

WriterOptions .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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