powered by
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 star_database as_rdb(db, con, overwrite = FALSE)
# S3 method for star_database as_rdb(db, con, overwrite = FALSE)
Invisible NULL.
A star_database object.
star_database
A DBI::DBIConnection object.
DBI::DBIConnection
A boolean, allow overwriting tables in the 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()
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)
Run the code above in your browser using DataLab