ssoudan / clickhouse-r

Rstats client for ClickHouse (https://clickhouse.yandex)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clickhouse R DBI client

This R package provides a DBI client for the ClickHouse database

Installation

  • the latest development version from github with

    devtools::install_github("hannesmuehleisen/clickhouse-r")

If you encounter a bug, please file a minimal reproducible example on github.

Usage

library(DBI)
con <- dbConnect(clickhouse::clickhouse(), host="localhost", port=8123L, user="default", password="")
dbWriteTable(con, "mtcars", mtcars)
dbListTables(con)
dbGetQuery(con, "SELECT COUNT(*) FROM mtcars")
d <- dbReadTable(con, "mtcars")
dbDisconnect(con)

About

Rstats client for ClickHouse (https://clickhouse.yandex)


Languages

Language:R 100.0%