View source: R/star_database_export.R
as_rdb | R Documentation |
Given a connection to a relational database, it stores the facts and dimensions in the form of tables. Tables can be overwritten.
as_rdb(db, con, overwrite)
## S3 method for class 'star_database'
as_rdb(db, con, overwrite = FALSE)
db |
A |
con |
A |
overwrite |
A boolean, allow overwriting tables in the database. |
Invisible NULL.
star_database
Other star database exportation functions:
as_csv_files()
,
as_dm_class()
,
as_multistar()
,
as_single_tibble_list()
,
as_tibble_list()
,
as_xlsx_file()
,
draw_tables()
my_db <- DBI::dbConnect(RSQLite::SQLite())
db <- star_database(mrs_cause_schema, ft_num) |>
snake_case()
db |>
as_rdb(my_db)
DBI::dbDisconnect(my_db)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.