This driver never needs to be unloaded and hence dbUnload()
is a
null-op.
clickhouse()# S4 method for ClickhouseDriver
show(object)
# S4 method for ClickhouseDriver
dbGetInfo(dbObj, ...)
# S4 method for ClickhouseDriver
dbIsValid(dbObj, ...)
# S4 method for ClickhouseDriver
dbUnloadDriver(drv, ...)
loadConfig(CONFIG_PATHS, DEFAULT_PARAMS, pre_config)
# S4 method for ClickhouseDriver
dbConnect(
drv,
host = "localhost",
port = 9000,
dbname = "default",
user = "default",
password = "",
compression = "lz4",
config_paths = c("./RClickhouse.yaml", "~/.R/RClickhouse.yaml",
"/etc/RClickhouse.yaml"),
Int64 = c("integer64", "integer", "numeric", "character"),
toUTF8 = TRUE,
...
)
# S4 method for ClickhouseDriver
dbDataType(dbObj, obj, ...)
a merged configuration
A database connection.
ClickHouse database driver.
a list of configuration paths
a list of configuration defaults
initialization set
name of the host on which the database is running.
port on which the database is listening.
name of the default database.
name of the user to connect as.
the user's password.
the compression method for the connection (lz4 by default).
paths where config files are searched for; order of paths denotes hierarchy (first string has highest priority etc.).
The R type that 64-bit integer types should be mapped to, default is bit64::integer64, which allows the full range of 64 bit integers.
logical, should character variables be converted to UTF-8. Default is TRUE.
library(DBI)
RClickhouse::clickhouse()
if (FALSE) {
conn <- dbConnect(RClickhouse::clickhouse(), host="localhost")
}
Run the code above in your browser using DataLab