Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Commit dfd932e

Browse files
committed
extend comments from chcol module
1 parent 9a787ff commit dfd932e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

chcol.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ import "github.com/ClickHouse/clickhouse-go/v2/lib/chcol"
2222
// Re-export chcol types/funcs to top level clickhouse package
2323

2424
type (
25+
// Variant represents a ClickHouse Variant type that can hold multiple possible types
2526
Variant = chcol.Variant
27+
// Dynamic is an alias for the Variant type
2628
Dynamic = chcol.Dynamic
27-
JSON = chcol.JSON
29+
// JSON represents a ClickHouse JSON type that can hold multiple possible types
30+
JSON = chcol.JSON
2831

29-
JSONSerializer = chcol.JSONSerializer
32+
// JSONSerializer interface allows a struct to be manually converted to an optimized JSON structure instead of relying
33+
// on recursive reflection.
34+
// Note that the struct must be a pointer in order for the interface to be matched, reflection will be used otherwise.
35+
JSONSerializer = chcol.JSONSerializer
36+
// JSONDeserializer interface allows a struct to load its data from an optimized JSON structure instead of relying
37+
// on recursive reflection to set its fields.
3038
JSONDeserializer = chcol.JSONDeserializer
3139
)
3240

0 commit comments

Comments
 (0)