clickhouse
clickhouse copied to clipboard
GORM clickhouse driver
Hi. I am trying to create a table in the clickhouse database using gorm's auto migrator. I have defined the struct as below: ```golang type Cost struct { InfraId string...
## Your Question ## The document you expected this should be explained ## Expected answer
## GORM Playground Link https://github.com/go-gorm/playground/pull/639 ## Description When changing the column type AutoMigrate performs ALTER TABLE MODIFY COLUMN on each field every time migration is started. If the old type...
## Your Question Does GORM with Clickhouse support `Preload` (eager loading), e.g. can it preload data from related models using same types of relations as with other DBs: belongs to,...
## Description When I use gorm to operate the click house table which is running in the cluster mode, just like this: `database.db.Table(tableName).Set( "gorm:table_cluster_options", "on cluster hs_ch_cluster").AutoMigrate(&dto.User{})` The autoMigrate function...
## creare data to clickhouse happen error but data success write to clickhouse ```shell 2023/04/26 10:58:22 main.go:32 [error] unsupported data type: &[] Ok ``` ## version info > go version:...
## GORM Playground Link https://github.com/go-gorm/playground/pull/1 ## Description There is an issue with the QuoteTo method for the tuple data type of clickhouse, which resulted in the data not being written....
Hi, I've filed an issue under the clickhouse-go repo, but this might be an issue with the clickhouse driver. https://github.com/ClickHouse/clickhouse-go/issues/939 Is it expected for the output of a serializer to...
## Describe the feature 希望后期可以支持集群见表的功能,当前自动建表AutoMigrate不支持配置ON CLUSTER,只能单机建表,所以目前只能用EXEC手动写sql实现。后期希望可以增加该功能,对于clickhouse比较常用。
## Your Question When i use createInBatch like `global.GVA_CH.Model(v.Interface).CreateInBatch(datas,1000)` OR specified BatchSize,an error will occured. `io.EOF` error if `gormConfig.SkipDefaultTransaction` set to true and `unpexted packet` error if `gormConfig.SkipDefaultTransaction` set to...