get_table_rdb {when}R Documentation

Store the table in a relational database

Description

Once all the configuration elements have been defined and the dimension table has been generated, using this function we can obtain it in table format in a Relational DBMS.

Usage

get_table_rdb(td, con, overwrite)

## S3 method for class 'when'
get_table_rdb(td, con, overwrite = FALSE)

Arguments

td

A when object.

con

A DBI::DBIConnection object.

overwrite

A boolean, allow overwriting tables in the database.

Value

Invisible NULL.

See Also

Other getting results: get_table_csv(), get_table_xlsx(), get_table()

Examples


my_db <- DBI::dbConnect(RSQLite::SQLite())

when() |>
  generate_table() |>
  get_table_rdb(my_db)

DBI::dbDisconnect(my_db)


[Package when version 1.0.0 Index]