it could be a bug. if there are still some statements open (unfinalized) you
will get this error while trying to close the db. I have started to develop an
interchangeable sqlite-api a while ago (I use it for some tooling ) -
unfortunately the work is pending because I like to finish the oracle-wrapper
first. The repo is here:
[https://github.com/mikra01/nimdb](https://github.com/mikra01/nimdb) (and you
can use it together with db_sqlite (see "speed_comparison.nim" in the
"sqlite3_samples" folder )