Skip to content

Commit

Permalink
Disconnect from gbif db after conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
stitam committed May 29, 2024
1 parent f8cb424 commit c38bb2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/db_download.R
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ db_download_gbif <- function(verbose = TRUE, overwrite = FALSE) {
col_types = "icccccccccccccccccccccc"
)

RSQLite::dbDisconnect(db)

mssg(verbose, 'cleaning up...')
unlink(db_path_file)
unlink(db_path_dir, recursive = TRUE)
Expand Down

0 comments on commit c38bb2a

Please sign in to comment.