Browse Source

Corregir función sqlBackup.

main
Costa 2 years ago
parent
commit
1613207bf6
4 changed files with 274 additions and 43 deletions
  1. +1
    -1
      Docs/Readme.md
  2. +1
    -1
      Docs/sqlFunctions-doc.Rmd
  3. +271
    -40
      Docs/sqlFunctions-doc.html
  4. +1
    -1
      sqlFunctions.R

+ 1
- 1
Docs/Readme.md

@ -128,7 +128,7 @@ sqlBackUp()
```r
sqlBackUp<-function(dbfile=file,conn=dta,bu.dir=NULL){
if(sqlTables(conn) %>% filter(TABLE_NAME == "UMID") %>% nrow > 0){bu.dir<-"BU_UM"}
if(sqlTables(conn) %>% filter(TABLE_NAME == "OVID") %>% nrow > 0){dbtype<-"BU_OVARIO"}
if(sqlTables(conn) %>% filter(TABLE_NAME == "OVID") %>% nrow > 0){bu.dir<-"BU_OVARIO"}
db=strsplit(dbfile, "/")[[1]]%>% tail(n=1)
bu_path<-gsub(db,bu.dir,dbfile)

+ 1
- 1
Docs/sqlFunctions-doc.Rmd

@ -126,7 +126,7 @@ sqlBackUp()
```r
sqlBackUp<-function(dbfile=file,conn=dta,bu.dir=NULL){
if(sqlTables(conn) %>% filter(TABLE_NAME == "UMID") %>% nrow > 0){bu.dir<-"BU_UM"}
if(sqlTables(conn) %>% filter(TABLE_NAME == "OVID") %>% nrow > 0){dbtype<-"BU_OVARIO"}
if(sqlTables(conn) %>% filter(TABLE_NAME == "OVID") %>% nrow > 0){bu.dir<-"BU_OVARIO"}
db=strsplit(dbfile, "/")[[1]]%>% tail(n=1)
bu_path<-gsub(db,bu.dir,dbfile)

+ 271
- 40
Docs/sqlFunctions-doc.html
File diff suppressed because it is too large
View File


+ 1
- 1
sqlFunctions.R

@ -24,7 +24,7 @@ sqlInitialize<-function(){
sqlBackUp<-function(dbfile=file,conn=dta,bu.dir=NULL){
if(sqlTables(conn) %>% filter(TABLE_NAME == "UMID") %>% nrow > 0){bu.dir<-"BU_UM"}
if(sqlTables(conn) %>% filter(TABLE_NAME == "OVID") %>% nrow > 0){dbtype<-"BU_OVARIO"}
if(sqlTables(conn) %>% filter(TABLE_NAME == "OVID") %>% nrow > 0){bu.dir<-"BU_OVARIO"}
db=strsplit(dbfile, "/")[[1]]%>% tail(n=1)
bu_path<-gsub(db,bu.dir,dbfile)

Loading…
Cancel
Save