get_table {SCDB} | R Documentation |
Retrieves a named table from a given schema on the connection
Description
Retrieves a named table from a given schema on the connection
Usage
get_table(conn, db_table = NULL, slice_ts = NA, include_slice_info = FALSE)
Arguments
conn |
( |
db_table |
( |
slice_ts |
( |
include_slice_info |
( |
Value
A "lazy" data.frame (tbl_lazy) generated using dbplyr.
Note that a temporary table will be preferred over ordinary tables in the default schema (see get_schema()
) with
an identical name.
Examples
conn <- get_connection()
dplyr::copy_to(conn, mtcars, name = "mtcars", temporary = FALSE)
get_table(conn)
if (table_exists(conn, "mtcars")) {
get_table(conn, "mtcars")
}
close_connection(conn)
[Package SCDB version 0.4.0 Index]