Documentation
¶
Index ¶
- Constants
- func AppendStruct() error
- func ArrayInsertRead() error
- func AsyncInsert() error
- func Auth() error
- func BatchInsert() error
- func BatchWithReleaseConnection() error
- func BindParameters() error
- func CheckMinServerVersion(conn driver.Conn, major, minor, patch uint64) bool
- func ClientInfo() error
- func ColumnInsert() error
- func Compress() error
- func Connect() error
- func ConvertedInsert() error
- func CustomTypes() error
- func DynamicExample() error
- func DynamicScan() error
- func Exec() error
- func ExternalData() error
- func GeoInsertRead() error
- func GetNativeConnection(settings clickhouse.Settings, tlsConfig *tls.Config, ...) (driver.Conn, error)
- func GetNativeConnectionWithOptions(settings clickhouse.Settings, tlsConfig *tls.Config, ...) (driver.Conn, error)
- func GetNativeTestEnvironment() (clickhouse_tests.ClickHouseTestEnvironment, error)
- func IterableOrderedMapInsertRead() error
- func JSONFastStructExample() error
- func JSONPathsExample() error
- func JSONStringExample() error
- func JSONStructExample() error
- func MapInsertRead() error
- func MultiHostRandomVersion() error
- func MultiHostRoundRobinVersion() error
- func MultiHostVersion() error
- func NestedFlattened() error
- func NestedUnFlattened() error
- func NullableInsertRead() error
- func OpenTelemetry() error
- func PingWithSettings() error
- func ProgressProfileLogs() error
- func QueryRow() error
- func QueryRows() error
- func QueryWithParameters() error
- func ReadWriteBigInt() error
- func ReadWriteDecimal() error
- func SSLNoVerifyVersion() error
- func SSLVersion() error
- func ScanStruct() error
- func SelectStruct() error
- func SpecialBind() error
- func TupleInsertRead() error
- func UUIDInsertRead() error
- func UseContext() error
- func VariantExample() error
- type FastProduct
- type FastProductPricing
- type Product
- type ProductPricing
- type YourBatch
Constants ¶
View Source
const TestSet string = "examples_clickhouse_api"
Variables ¶
This section is empty.
Functions ¶
func AppendStruct ¶
func AppendStruct() error
func ArrayInsertRead ¶
func ArrayInsertRead() error
func AsyncInsert ¶
func AsyncInsert() error
func BatchInsert ¶
func BatchInsert() error
func BatchWithReleaseConnection ¶ added in v2.13.0
func BatchWithReleaseConnection() error
func BindParameters ¶
func BindParameters() error
func CheckMinServerVersion ¶ added in v2.30.1
func ClientInfo ¶ added in v2.6.0
func ClientInfo() error
func ColumnInsert ¶
func ColumnInsert() error
func ConvertedInsert ¶
func ConvertedInsert() error
func CustomTypes ¶ added in v2.5.0
func CustomTypes() error
func DynamicExample ¶ added in v2.30.1
func DynamicExample() error
func DynamicScan ¶
func DynamicScan() error
func ExternalData ¶
func ExternalData() error
func GeoInsertRead ¶
func GeoInsertRead() error
func GetNativeConnection ¶
func GetNativeConnectionWithOptions ¶ added in v2.6.0
func GetNativeTestEnvironment ¶
func GetNativeTestEnvironment() (clickhouse_tests.ClickHouseTestEnvironment, error)
func IterableOrderedMapInsertRead ¶ added in v2.17.0
func IterableOrderedMapInsertRead() error
func JSONFastStructExample ¶ added in v2.31.0
func JSONFastStructExample() error
func JSONPathsExample ¶ added in v2.30.1
func JSONPathsExample() error
func JSONStringExample ¶ added in v2.30.1
func JSONStringExample() error
func JSONStructExample ¶ added in v2.30.1
func JSONStructExample() error
func MapInsertRead ¶
func MapInsertRead() error
func MultiHostRandomVersion ¶ added in v2.26.0
func MultiHostRandomVersion() 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 QueryWithParameters ¶ added in v2.5.0
func QueryWithParameters() 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
func VariantExample ¶ added in v2.30.1
func VariantExample() error
Types ¶
type FastProduct ¶ added in v2.31.0
type FastProduct struct { ID clickhouse.Dynamic `json:"id"` Name string `json:"name"` Tags []string `json:"tags"` Pricing FastProductPricing `json:"pricing"` Metadata map[string]any `json:"metadata"` CreatedAt time.Time `json:"created_at" chType:"DateTime64(3)"` }
func NewExampleFastProduct ¶ added in v2.31.0
func NewExampleFastProduct() *FastProduct
func (*FastProduct) DeserializeClickHouseJSON ¶ added in v2.31.0
func (p *FastProduct) DeserializeClickHouseJSON(obj *clickhouse.JSON) error
DeserializeClickHouseJSON implements clickhouse.JSONDeserializer for faster struct scanning
func (*FastProduct) SerializeClickHouseJSON ¶ added in v2.31.0
func (p *FastProduct) SerializeClickHouseJSON() (*clickhouse.JSON, error)
SerializeClickHouseJSON implements clickhouse.JSONSerializer for faster struct appending
type FastProductPricing ¶ added in v2.31.0
type Product ¶ added in v2.30.1
type Product struct { ID clickhouse.Dynamic `json:"id"` Name string `json:"name"` Tags []string `json:"tags"` Pricing ProductPricing `json:"pricing"` Metadata map[string]interface{} `json:"metadata"` CreatedAt time.Time `json:"created_at" chType:"DateTime64(3)"` }
func NewExampleProduct ¶ added in v2.30.1
func NewExampleProduct() *Product
type ProductPricing ¶ added in v2.30.1
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.go
- dynamic_scan_types.go
- exec.go
- external_data.go
- geo.go
- json_fast_structs.go
- json_paths.go
- json_strings.go
- json_structs.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
- variant.go
Click to show internal directories.
Click to hide internal directories.