chwriter

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickhouseWriter

type ClickhouseWriter struct {
	Conn driver.Conn

	FieldMap    map[string]string // mapping json field -> ch column name
	ExtraFields []string          // additional fields to write into separate columns. Should be present in CH table
	// contains filtered or unexported fields
}

func NewClickhouseWriter

func NewClickhouseWriter(hosts []string, user, passwd, db, table string) (*ClickhouseWriter, error)

func (*ClickhouseWriter) Write

func (w *ClickhouseWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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