Created
February 16, 2019 16:39
-
-
Save Athospd/5fba61f62465cf2ba6e731abdbc19454 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(RSQLite) | |
library(tidyverse) | |
library(dbplyr) | |
con <- RSQLite::dbConnect(RSQLite::SQLite(), "database.sqlite") | |
nome_das_tabelas <- RSQLite::dbListTables(con) | |
tabelas <- nome_das_tabelas %>% | |
map(~dbplyr::db_collect(con, glue::glue("select * from {.x}"))) %>% | |
set_names(nome_das_tabelas) | |
writexl::write_xlsx(tabelas, path = "soccer.xlsx") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment