Connection originating from nycflights13_sqlite() cannot be disconnected from. #440
Labels
breaking change ☠️
API change likely to affect existing code
feature
a feature request or enhancement
Milestone
While using the
nycflights13_sqlite()
function to create an example database for teaching, we are unable to use the standardDBI::dbDisconnect()
function to close the connection. This is a problem when trying to teach students good behavior and to close their connections.The root of the problem is the
src_dbi()
function call at the end of thecopy_nycflights13()
function. But given thatsrc_dbi()
is no longer recommended, and users should generate tables directly from the connection usingtbl()
, should thesrc_dbi()
command still be there?If you believe that
nycflights13_sqlite()
function shouldn't be changed (so as to avoid breaking other peoples' examples), could the documentation at least mention that this is an unusual case and the connection can't be closed?Created on 2020-04-30 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: