I would like to query a SQLite database, downloaded from a remote sever, in Python, without having ever written it to disk.
I see you can start a blank SQLite database in memory using the magic name :memory:
https://docs.python.org/3/library/sqlite3.html. And I see you can copy from a disk-backed SQLite DB to an in-memory one, say using iterdump. But... I would like to populate a :memory:
database with the contents of a bytes
instance that contains the database, without ever having written those bytes
to disk fist.
My reason: it seems unnecessary to have it all in memory, have to write it to disk, and then read it back to memory, so it's a general "keeping the number of steps down" in my process.