lmangani / vch

Basic HTTP ClickHouse Driver for V

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Basic HTTP ClickHouse Driver for V


Languages

Language:V 96.2%Language:AMPL 3.8%