Skip to content

xue2sheng/RClickhouse

 
 

Repository files navigation

RClickhouse

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Project Status: Active - The project has reached a stable, usable state and is being actively developed. Build Status

This R package is a DBI interface for the Yandex Clickhouse database. It provides basic dplyr support by auto-generating SQL-commands using dbplyr and is based on the official C++ Clickhouse Client.

Requirements & Installation

A C++ compiler and for Windows Rtools are required. The latest version can be installed directly from github using devtools like this:

devtools::install_github("IMSMWU/RClickhouse")

Usage

# create a DBI Connection
con <- DBI::dbConnect(RClickhouse::clickhouse(), host="example-db.com")

# now you can write data to the db
DBI::dbWriteTable(con, "mtcars", mtcars)

# ... and query it using dpylr
library(dplyr)

tbl(con, "mtcars") %>% group_by(cyl) %>% summarise(smpg=sum(mpg))

Acknowledgements

Big thanks to Kirill Müller, Maxwell Peterson, Artemkin Pavel and Hannes Mühleisen.

About

A 'DBI' Interface to the Yandex Clickhouse Database Providing Basic 'dplyr' Support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 56.9%
  • R 39.7%
  • C 3.4%