clickhouse icon indicating copy to clipboard operation
clickhouse copied to clipboard

GORM clickhouse driver

Results 37 clickhouse issues
Sort by recently updated
recently updated
newest added

## GORM Playground Link `m := []UserTable{ {User: User{ Name: "tom1", Age: 12, Class: 10, }}, {User: User{ Name: "li1", Age: 22, Class: 10, }}, {User: User{ Name: "wang1", Age:...

## how can gorm-clickhouse read "with totals" row ? ## The document you expected this should be explained ## Expected answer like below,but i want to receive data by []map[string]interface...

type:question

本地删除了缓存,执行go mod tidy时,报错缺少github.com/mitchellh/osext包,发现github作者已将此项目删除,请及时修复

## Description 自定义 Selects 和 Group 的情况下查询 count 会抛出 `sql: expected 5 destination arguments in Scan, not 1` 错误 ![image](https://user-images.githubusercontent.com/33713644/202640074-e059a781-f7cd-456c-8deb-16be3a59391d.png) ![image](https://user-images.githubusercontent.com/33713644/202640255-af9d4850-4b32-4bc8-b5bf-2d9f84384775.png)

Not sure this is a bug or my own misunderstanding of gorm: These models: ```go type HModel struct { ID string `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time // DeletedAt DeletedAt `gorm:"index"`...

gorm.io/driver/clickhouse version is v0.5.0

Insert query works as expected but it throws error when trying to update.

```sql 2024/01/01 11:31:24 /src/farseer-go/data/tableSet.go:325 code: 15, message: Column id specified more than once [0.958ms] [rows:0] INSERT INTO `log_data` (`id`,`create_at`,`log_level`,`component`,`content`,`trace_id`,`app_id`,`app_name`,`app_ip`,`id`) VALUES (265673404566245376,'2024-01-01 11:31:23','2','','同步数据库:1/1,task:263267062471217160',265673404574633984,265590868014043136,'FSchedule','10.100.0.88',265673404566245376) ``` 以上,如果我将id换成了log_id,则一切正常

Please update the clickhouse-go in the clickhouse driver to the latest version thank you :)

github.com/ClickHouse/clickhouse-go/v2 has not been imported ``` package main import ( "gorm.io/driver/clickhouse" "gorm.io/gorm" ) // should be github.com/ClickHouse/clickhouse-go/v2 sqlDB, err := clickhouse.OpenDB(&clickhouse.Options{ Addr: []string{"127.0.0.1:9999"}, Auth: clickhouse.Auth{ Database: "default", Username: "default", Password:...