Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lmangani/vch
- Owner: lmangani
- Created: 2022-03-29T20:55:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T19:47:32.000Z (almost 3 years ago)
- Last Synced: 2024-10-05T13:22:19.485Z (3 months ago)
- Topics: api, ch, clickhouse, cloki, driver, http, v, vlang
- Language: V
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 mainimport 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