rvdb_clickhouse

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(c rvdb.DSNConfig) (*sql.DB, error)

func RunPinger

func RunPinger(db *sql.DB, callback func(error))

Types

type Inserter

type Inserter interface {
	FlushToDBStmt(stmt *sql.Stmt) (Result, error)
}

type Result

type Result struct {
	RowsProcessed int64
	RowsError     int64
}

func InsertRecords

func InsertRecords(db *sql.DB, schema, table string, fields []string, recs []Inserter) (Result, error)

Jump to

Keyboard shortcuts

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