Presto | R Documentation |
Connect to a Presto database
Presto(...)
## S4 method for signature 'PrestoDriver'
dbConnect(
drv,
catalog,
schema,
user,
host = "localhost",
port = 8080,
source = methods::getPackageName(),
session.timezone = "",
output.timezone = "",
parameters = list(),
ctes = list(),
request.config = httr::config(),
use.trino.headers = FALSE,
extra.credentials = "",
bigint = c("integer", "integer64", "numeric", "character"),
...
)
## S4 method for signature 'PrestoConnection'
dbDisconnect(conn)
Presto A PrestoDriver object
dbConnect A PrestoConnection object
dbDisconnect A logical()
value indicating success
## Not run:
conn <- dbConnect(Presto(),
catalog = "hive", schema = "default",
user = "onur", host = "localhost", port = 8080,
session.timezone = "US/Eastern", bigint = "character"
)
dbListTables(conn, "%_iris")
dbDisconnect(conn)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.