Skip to content

Commit

Permalink
updates to mapper files
Browse files Browse the repository at this point in the history
  • Loading branch information
hswerdfe committed Mar 15, 2021
1 parent 5bbe30f commit 6512f46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mappers/statscan_mapper.r
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@


library(stringi)

#source("src/wbe_db_func.r")


NML <- list(
STATSCAN <- list(
nm = "STATSCAN",


Expand Down Expand Up @@ -88,13 +88,16 @@ NML <- list(
}
})
df2$tmp_id <- NULL

#tables involved in the load
ld_tbl_nms <-
names(df2) %>%
str_split(pattern = "_", n = 2) %>%
lapply(`[[`, 1) %>% unlist() %>% unique()

lapply(ld_tbl_nms, function(ld_tbl_nm){
df2 %>% select(starts_with(ld_tbl_nm))

wbe_find_df_col(df)

})
Expand Down
2 changes: 2 additions & 0 deletions src/wbe_db_func.r
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ library(docstring)
library(anytime)
library(tools)
library(assertthat)
library(stringi)


wbe_CONNS <- c() # Keeps a list of connections to the db

Expand Down

0 comments on commit 6512f46

Please sign in to comment.