H2, HSQLDB or any other embedded database using an InputStream
问题 Can I use H2, HSQLDB, or any other embedded database, with a database from an InputStream instead of a file? I'm planning to use AssetManager.open() on Android, which can return an InputStream in random access mode. 回答1: H2 supports a pluggable file system that allows you to access read-only databases in a zip or jar files. However, there is currently no file system implementation for the AssetManager . It should be relatively easy to implement it. The best starting point is probably