You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getFormSchema() has a method that allows you to transform it into a data.frame but getDatabaseSchema() currently does not.
it'll be nice to get the database schema into a data.frame format as well so that updates to the database schema can also be handled via data.frames , similar to #33
afda_schema <- getDatabaseSchema("c5h9mudkz3sqce52")
## Tables come from the "resources" list
## turn below code into a function
## Get table labels
tab_label <- afda_schema %>%
purrr::pluck("resources") %>%
purrr::map(pluck("label")) %>% unlist()
## Get table IDs
tab_id <- afda_schema %>%
purrr::pluck("resources") %>%
purrr::map(pluck("id")) %>%
unlist()
## put 'em together to create a nice look-up
data.frame(
Table = tab_label,
table_id = tab_id
)
``
The text was updated successfully, but these errors were encountered:
Split from #32 (comment)
getFormSchema() has a method that allows you to transform it into a data.frame but getDatabaseSchema() currently does not.
it'll be nice to get the database schema into a data.frame format as well so that updates to the database schema can also be handled via data.frames , similar to #33
The text was updated successfully, but these errors were encountered: