Class ReadOnlyDatabaseInZip

java.lang.Object
org.h2.samples.ReadOnlyDatabaseInZip

public class ReadOnlyDatabaseInZip extends Object
This sample application shows how to create and use a read-only database in a zip file. The database file is split into multiple smaller files, to speed up random-access. Splitting up the file is only needed if the database file is larger than a few megabytes.
  • Constructor Details

    • ReadOnlyDatabaseInZip

      public ReadOnlyDatabaseInZip()
  • Method Details

    • main

      public static void main(String... args) throws Exception
      This method is called when executing this sample application from the command line.
      Parameters:
      args - the command line parameters
      Throws:
      Exception - on failure