Skip to content

Commit

Permalink
auto-disconnect SQLite connection (tidyverse#2878)
Browse files Browse the repository at this point in the history
because DBI specs ask for a warning if a client does not disconnect
  • Loading branch information
krlmlr committed Jun 16, 2017
1 parent 2b82798 commit b0320c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/src_dbi.R
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ src_sqlite <- function(path, create = FALSE) {
con <- DBI::dbConnect(RSQLite::SQLite(), path)
RSQLite::initExtension(con)

dbplyr::src_dbi(con)
dbplyr::src_dbi(con, auto_disconnect = TRUE)
}

# S3 methods --------------------------------------------------------------
Expand Down

0 comments on commit b0320c8

Please sign in to comment.