On 03/09/2016 12:48 AM, Simon Slavin wrote: > On 8 Mar 2016, at 4:35pm, Dan Kennedy <danielk1977 at gmail.com> wrote: > >> I don't think it does that. sqlite3_shutdown() is for embedded platforms to >> shutdown sub-systems initialized by sqlite3_initialize(). Calling it with >> open connections will usually either leak resources or crash. >> >> More here: https://www.sqlite.org/c3ref/initialize.html > You're right: > > "All open database connections must be closed and all other SQLite resources > must be deallocated prior to invoking sqlite3_shutdown()." > > Hmm. So there's no neat way to shut down SQLite if you've lost track of your > context. Is there a way of asking SQLite for a list of connections ?
I don't think there is. Dan.