powered by
Create a historical table from input data
create_table(.data, conn = NULL, db_table, ...)
Invisibly returns the table as it looks on the destination (or locally if conn is NULL).
conn
NULL
(data.frame(1), tibble(1), data.table(1), or tbl_dbi(1)) Data object.
data.frame(1)
tibble(1)
data.table(1)
tbl_dbi(1)
(DBIConnection(1)) Connection object.
DBIConnection(1)
(id-like object(1)) A table specification (coercible by id()).
id-like object(1)
id()
Other arguments passed to DBI::dbCreateTable().
DBI::dbCreateTable()
if (FALSE) { # requireNamespace("RSQLite", quietly = TRUE) conn <- get_connection() create_table(mtcars, conn = conn, db_table = "mtcars") close_connection(conn) }
Run the code above in your browser using DataLab