| dbRenameTable | R Documentation |
Not a DBI generic: DBI has no dbRenameTable(), so RTrino defines its
own, the way RPresto does for Presto.
dbRenameTable(conn, name, new_name, ...)
## S4 method for signature 'TrinoConnection'
dbRenameTable(conn, name, new_name, ...)
conn |
A TrinoConnection object. |
name |
Current table name, in any form |
new_name |
New table name, in the same forms. |
... |
Unused, for compatibility with the generic. |
TRUE, invisibly.
con <- DBI::dbConnect(RTrino::Trino(), host = Sys.getenv("RTRINO_TEST_URL"),
catalog = "memory", schema = "default")
DBI::dbWriteTable(con, "sales", data.frame(id = 1:3))
dbRenameTable(con, "sales", "sales_old")
DBI::dbExistsTable(con, "sales_old")
DBI::dbRemoveTable(con, "sales_old")
DBI::dbDisconnect(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.