if (FALSE) {
# To connect to a database
my_db <- src_presto(
catalog = "memory",
schema = "default",
user = Sys.getenv("USER"),
host = "http://localhost",
port = 8080,
session.timezone = "Asia/Kathmandu"
)
# Use a PrestoConnection
my_con <- DBI::dbConnect(
catalog = "memory",
schema = "default",
user = Sys.getenv("USER"),
host = "http://localhost",
port = 8080,
session.timezone = "Asia/Kathmandu"
)
my_db2 <- src_presto(con = my_con)
}
Run the code above in your browser using DataLab