if (FALSE) {
# First create a database connection with src_presto, then reference a tbl
# within that database
my_db <- src_presto(
catalog = "memory",
schema = "default",
user = Sys.getenv("USER"),
host = "http://localhost",
port = 8080,
session.timezone = "Asia/Kathmandu"
)
my_tbl <- tbl(my_db, "my_table")
}
if (FALSE) {
# First create a database connection, then reference a tbl within that
# database
my_con <- DBI::dbConnect(
catalog = "memory",
schema = "default",
user = Sys.getenv("USER"),
host = "http://localhost",
port = 8080,
session.timezone = "Asia/Kathmandu"
)
my_tbl <- tbl(my_con, "my_table")
}
Run the code above in your browser using DataLab