bulkupload

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCopyToTuples

func DecodeCopyToTuples(colBuf *bytes.Buffer, out utils.Writer, pgColumns map[int]*config.PgColumn, colProps map[int]*config.ColumnProperty, in []byte) error

DecodeCopyToTuples decodes line from the text pg copy command into a array of tuples

Types

type BulkUpload

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

func New

func New(chConn chutils.CHConnector, gzipBufSize int, comprLevel config.GzipComprLevel) *BulkUpload

func (*BulkUpload) BulkUpload

func (c *BulkUpload) BulkUpload(tableName config.ChTableName, columns []string) error

func (*BulkUpload) Finish

func (c *BulkUpload) Finish() error

func (*BulkUpload) Init

func (c *BulkUpload) Init(buf buffer.BufferAt) error

Prepare pipes

func (*BulkUpload) Write

func (c *BulkUpload) Write(p []byte) (int, error)

func (*BulkUpload) WriteByte

func (c *BulkUpload) WriteByte(p byte) error

type BulkUploader

type BulkUploader interface {
	utils.Writer

	Init(buffer.BufferAt) error
	Finish() error
	BulkUpload(name config.ChTableName, columns []string) error
}

Jump to

Keyboard shortcuts

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