Skip to content

lmangani/vch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vlang-build

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