Create a database table in temporary in-memory database.
Create a database table in temporary in-memory database.
memdb_frame() works like tibble::tibble(), but instead of creating a new data frame in R, it creates a table in src_memdb().
memdb_frame(..., .name = unique_table_name())tbl_memdb(df, name = deparse(substitute(df)))src_memdb()
Arguments
...: <dynamic-dots> A set of name-value pairs. These arguments are processed with rlang::quos() and support unquote via !! and unquote-splice via !!!. Use := to create columns that start with a dot.
Arguments are evaluated sequentially. You can refer to previously created elements directly or using the .data
pronoun. To refer explicitly to objects in the calling environment, use !! or .env , e.g. !!.data or .env$.data for the special case of an object named .data.
df: Data frame to copy
name, .name: Name of table in database: defaults to a random name that's unlikely to conflict with an existing table.