public static Database inMemory(
      String name, Map<String, String> urlOptions, Map<String, ? extends Object> config) {
    StringBuilder urlExtra = new StringBuilder();
    for (Map.Entry<String, String> option : urlOptions.entrySet()) {
      urlExtra.append(';').append(option.getKey()).append('=').append(option.getValue());
    }
    String url = "jdbc:h2:mem:" + name + urlExtra;
    return inMemory(name, url, config);
  }
public static Database inMemory(
      String name, Map<String, String> urlOptions, Map<String, ? extends Object> config) {
    StringBuilder urlExtra = new StringBuilder();
    for (Map.Entry<String, String> option : urlOptions.entrySet()) {
      urlExtra.append(';').append(option.getKey()).append('=').append(option.getValue());
    }
    String url = "jdbc:h2:mem:" + name + urlExtra;
    return inMemory(name, url, config);
  }
public static Database inMemory ( String name , Map < String , String > urlOptions , Map < String , ? extends Object > config ) { StringBuilder urlExtra = new StringBuilder ( ) ; for ( Map . Entry < String , String > option : urlOptions . entrySet ( ) ) { urlExtra . append ( ' ' ) . append ( option . getKey ( ) ) . append ( ' ' ) . append ( option . getValue ( ) ) ; } String url = "jdbc:h2:mem:" + name + urlExtra ; return inMemory ( name , url , config ) ; }
Create an in-memory H2 database.

@param name the database name
@param urlOptions a map of extra url options
@param config a map of extra database configuration
@return a configured in-memory h2 database
Create an in - memory H2 database .