create_table: Create a historical table from input data

View source: R/create_table.R

create_tableR Documentation

Create a historical table from input data

Description

Create a historical table from input data

Usage

create_table(.data, conn = NULL, db_table, ...)

Arguments

.data

(data.frame(1), tibble(1), data.table(1), or tbl_dbi(1))
Data object.

conn

(DBIConnection(1))
Connection object.

db_table

(⁠id-like object(1)⁠)
A table specification (coercible by id()).

...

Other arguments passed to DBI::dbCreateTable().

Value

Invisibly returns the table as it looks on the destination (or locally if conn is NULL).

Examples


  conn <- get_connection()

  create_table(mtcars, conn = conn, db_table = "mtcars")

  close_connection(conn)


SCDB documentation built on Oct. 4, 2024, 1:09 a.m.