ch-go icon indicating copy to clipboard operation
ch-go copied to clipboard

Request: add option for struct/primitive scan

Open itziklavon opened this issue 2 years ago • 2 comments

Hi, can we make this interface to be more generic? and work more like lets say sqlx works? i.e pass in the struct/primitive we want to scan, and fill up the fields automatically i think it will imrove the usabilty of this driver

itziklavon avatar Aug 25 '22 06:08 itziklavon

Hi, probably this should be in https://github.com/ClickHouse/clickhouse-go?

As we have package for higher-level interaction, I'm not sure whether to add more generic things in ch-go.

ernado avatar Aug 26 '22 09:08 ernado

Already supported in clickhouse-go. This is a higher level construct and would likely mean adding reflection to ch-go, something imagine @ernado is not keen on

gingerwizard avatar Aug 29 '22 08:08 gingerwizard

Please use clickhouse-go for this.

ernado avatar Feb 10 '23 11:02 ernado