vch
March 30, 2022 ยท View on GitHub
vch
HTTP ClickHouse driver for V
Status
- Functional (exec, ping)
- Read Only mode (GET)
- Experimental, Basic & Untested. Do not use this in production
Library Usage
module main
import vch
fn main(){
client := vch.new_client('http://clickhouse:8123', 'default:password')
rows := client.exec('SELECT 1')
println(rows)
}
CLI Usage
CH_API="http://clickhouse:8123" CH_AUTH="default:password" vch -q "SHOW DATABASES" -f JSONEachRow
Todo
- HTTP/S connectivity
- Basic Authentication
- GET/READ support
- POST/INSERT support
- Format Parsers
- Commands
- Everything else