go-clickhouse
go-clickhouse copied to clipboard
Golang ClickHouse connector
Now arg of type time in query function args will be replaced with '' eg ``` clickhouse.NewQuery("Select * From event Where time > ?", time.Now()) ``` will fail
I want to use insert statement with format csv. For example ``` INSERT INTO events FORMAT CSV 8cd3e02c-83b1-41f0-8e29-c1681f03feb0,1a9cbce7-0788-430e-b3e7-15bbbea2ac27,3,0,0,0.000010,0.200000,,2017-02-27,1488203857,4,3,3,4,0,0,4,0,,,Unknown,Linux Unknown,0,0,[],,,0,0,0,,127.0.0.1,0,0,0,,0,,0,0,0,,,,,,,,,,,,,[] ``` For this purpose my code looks like (simplified) ``` ......
``` iter := query.Iter(conn) if iter.Error() != nil { log.Panicln(iter.Error()) } ``` I think it would be better that iter use muti-return val, which is golang API usually do. ```...
Currently Iter.Scan() breaks on the first empty line and misses extremes and WITH TOTALS rows which separated from the main data by an empty line. https://clickhouse.yandex/reference_en.html#TabSeparated I see 2 ways:...