I need to process data from a SQLite database using some Java code. The problem is that the database is retrieved from an external service and thus it is only available as an InputStream
.
I would really like to avoid saving the db to the file system before starting to process the data, but I don't see a way of doing it.
I am currently using SqlJet, as it provides an option to create an in-memory database. However there seems to be no way to turn an InputStream
/ byte array into a database.
There's nothing forcing me to use SqlJet, it can be easily replaced by any other tool if it provides the needed functionality.