I am wondering if anyone knows a way to generate a connection to a SQLite database in python from a StringIO object.
I have a compressed SQLite3 database file and I would like to decompress it using the gzip
library and then connect to it without first making a temp file.
I've looked into the slqite3
library source, but it looks like filename
gets passed all the way through into the C code. Are there any other SQLite3 connection libraries that you could use a file ID for? Or is there some why I can trick the builtin sqlite3
library into thinking that my StringIO (or some other object type) is an actual file?