Description Usage Details Value See Also Examples
clickhouse
creates a new DBI driver that can be used to connect and interact with external clickhouse databases.
1 |
The clickhouse()
function creates the R object which can be used to a
call dbConnect
which actually creates the connection.
Since it has no parameters, it is most commonly used inline with the dbConnect
call.
Returns a driver object that can be used in calls to
dbConnect
with an external clickhouse database.
dbConnect
for documentation how to invoke the driver
1 2 3 4 5 6 7 8 9 10 | ## Not run:
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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.