Skip to content

Commit

Permalink
candidate fix for #316
Browse files Browse the repository at this point in the history
  • Loading branch information
pbiecek committed Jun 23, 2017
1 parent ad0031f commit 4723418
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ importClassesFrom(RSQLite,SQLiteDriver)
importFrom(DBI,dbConnect)
importFrom(DBI,dbDisconnect)
importFrom(DBI,dbDriver)
importFrom(DBI,dbExecute)
importFrom(DBI,dbGetQuery)
importFrom(DBI,dbReadTable)
importFrom(DBI,dbUnloadDriver)
Expand Down
1 change: 1 addition & 0 deletions R/archivist-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#' @import httr
#' @importFrom DBI dbWriteTable
#' @importFrom DBI dbGetQuery
#' @importFrom DBI dbExecute
#' @importFrom DBI dbDisconnect
#' @importFrom DBI dbConnect
#' @importFrom DBI dbReadTable
Expand Down
4 changes: 2 additions & 2 deletions R/createEmptyRepo.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ createLocalRepo <- function( repoDir, force = TRUE, default = FALSE ){
dbWriteTable( backpack, "tag", tag, overwrite = TRUE, row.names = FALSE )


dbGetQuery(backpack, "delete from artifact")
dbGetQuery(backpack, "delete from tag")
dbExecute(backpack, "delete from artifact")
dbExecute(backpack, "delete from tag")

dbDisconnect( backpack )

Expand Down

0 comments on commit 4723418

Please sign in to comment.