Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lmangani/vch

Basic HTTP ClickHouse Driver for V
https://github.com/lmangani/vch

api ch clickhouse cloki driver http v vlang

Last synced: 23 days ago
JSON representation

Basic HTTP ClickHouse Driver for V

Awesome Lists containing this project

README

        

[![vlang-build](https://github.com/lmangani/vch/actions/workflows/v.yml/badge.svg)](https://github.com/lmangani/vch/actions/workflows/v.yml)

# 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
```v
module main

import vch

fn main(){
client := vch.new_client('http://clickhouse:8123', 'default:password')
rows := client.exec('SELECT 1')
println(rows)
}

```

## CLI Usage
```bash
CH_API="http://clickhouse:8123" CH_AUTH="default:password" vch -q "SHOW DATABASES" -f JSONEachRow
```

### Todo
- [x] HTTP/S connectivity
- [x] Basic Authentication
- [x] GET/READ support
- [ ] POST/INSERT support
- [ ] Format Parsers
- [ ] Commands
- [ ] Everything else