package clickhouse_api

import "github.com/ClickHouse/clickhouse-go/v2/examples/clickhouse_api"

Index

Constants

const TestSet string = "examples_clickhouse_api"

Functions

func AppendStruct

func AppendStruct() error

func ArrayInsertRead

func ArrayInsertRead() error

func AsyncInsert

func AsyncInsert() error

func Auth

func Auth() error

func BatchInsert

func BatchInsert() error

func BatchWithReleaseConnection

func BatchWithReleaseConnection() error

func BindParameters

func BindParameters() error

func ClientInfo

func ClientInfo() error

func ColumnInsert

func ColumnInsert() error

func Compress

func Compress() error

func Connect

func Connect() error

func ConvertedInsert

func ConvertedInsert() error

func CustomTypes

func CustomTypes() error

func DynamicScan

func DynamicScan() error

func Exec

func Exec() error

func ExternalData

func ExternalData() error

func GeoInsertRead

func GeoInsertRead() error

func GetNativeConnection

func GetNativeConnection(settings clickhouse.Settings, tlsConfig *tls.Config, compression *clickhouse.Compression) (driver.Conn, error)

func GetNativeConnectionWithOptions

func GetNativeConnectionWithOptions(settings clickhouse.Settings, tlsConfig *tls.Config, compression *clickhouse.Compression) (driver.Conn, error)

func GetNativeTestEnvironment

func GetNativeTestEnvironment() (clickhouse_tests.ClickHouseTestEnvironment, error)

func InsertReadJSON

func InsertReadJSON() error

func MapInsertRead

func MapInsertRead() error

func MultiHostRoundRobinVersion

func MultiHostRoundRobinVersion() error

func MultiHostVersion

func MultiHostVersion() error

func NestedFlattened

func NestedFlattened() error

func NestedUnFlattened

func NestedUnFlattened() error

func NullableInsertRead

func NullableInsertRead() error

func OpenTelemetry

func OpenTelemetry() error

func PingWithSettings

func PingWithSettings() error

func ProgressProfileLogs

func ProgressProfileLogs() error

func QueryRow

func QueryRow() error

func QueryRows

func QueryRows() error

func QueryWithParameters

func QueryWithParameters() error

func ReadComplexJSON

func ReadComplexJSON() error

func ReadWriteBigInt

func ReadWriteBigInt() error

func ReadWriteDecimal

func ReadWriteDecimal() error

func SSLNoVerifyVersion

func SSLNoVerifyVersion() error

func SSLVersion

func SSLVersion() error

func ScanStruct

func ScanStruct() error

func SelectStruct

func SelectStruct() error

func SpecialBind

func SpecialBind() error

func TupleInsertRead

func TupleInsertRead() error

func UUIDInsertRead

func UUIDInsertRead() error

func UseContext

func UseContext() error

Types

type YourBatch

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

func New

func New(ctx context.Context, conn driver.Conn, insertStatement string) (*YourBatch, error)

func (*YourBatch) Append

func (b *YourBatch) Append(col1 uint64, col2 string) error

func (*YourBatch) Send

func (b *YourBatch) Send() error

Source Files

append_struct.go array.go async.go auth.go batch.go batch_release_connection.go big_int.go bind.go bind_special.go client_info.go columnar_insert.go compression.go connect.go connect_settings.go context.go custom_types.go decimal.go dynamic_scan_types.go exec.go external_data.go geo.go json.go map.go multi_host.go nested.go nullable.go open_telemetry.go progress.go query_parameters.go query_row.go query_rows.go scan_struct.go select_struct.go ssl.go ssl_no_verify.go tuple.go type_convert.go utils.go uuid.go

Version
v2.14.0
Published
Sep 12, 2023
Platform
linux/amd64
Imports
22 packages
Last checked
now

Tools for package owners.