I want to use gorm to query clickhouse ”with totals“ data. But gorm doesn't seem to support it?
ClickHouse/clickhouse-go can do it. But it can't use map[string]interface{} to receive data.
Is there a good way for gorm to find out ”with totals“?
I want to use gorm to query clickhouse ”with totals“ data. But gorm doesn't seem to support it?
ClickHouse/clickhouse-go can do it. But it can't use map[string]interface{} to receive data.
Is there a good way for gorm to find out ”with totals“?
Copyright © 2021 Jogjafile Inc.
I see that you have asked this in gorm's repo - https://github.com/go-gorm/clickhouse/issues/157
As for clickhouse-go, this issue (https://github.com/ClickHouse/clickhouse-go/issues/309) which points to the WITH TOTALS tests, should help: