persistence/play-java-jdbc/src/main/java/play/db/Databases.java
public static Database inMemory(String name, Map<String, ? extends Object> config) {
    return inMemory(name, "jdbc:h2:mem:" + name, config);
  }
public static Database inMemory(String name, Map<String, ? extends Object> config) {
    return inMemory(name, "jdbc:h2:mem:" + name, config);
  }
Create an in-memory H2 database.

@param name the database name
@param config a map of extra database configuration
@return a configured in-memory h2 database