if (FALSE) {
con_db <- DBI::dbConnect(duckdb::duckdb(dbdir = tempfile()))
create_table(.con=con_db,.data=mtcars,database_name="memory",schema_name="main",table_name="mtcars")
con_md <- connect_to_motherduck()
upload_database_to_md(con_md, from_db_name = "memory", to_db_name = "analytics")
}
Run the code above in your browser using DataLab