fongo : a really simple mongorestore in only 30 SLOC !

If you use a fake mongodb like ‘fongo’ and you want to import a zip dump into fongo, here is a way to do that : public void restoreDump(String filePath) throws RestoreFailedException { ZipFile zipFile; try { zipFile = new ZipFile(filePath); } catch (IOException e1) { throw new RestoreFailedException (e1); } Enumeration< ? extends ZipArchiveEntry>… Read More »