Creating an in-memory database

In this project, we will create a memory-only database that is destroyed immediately after the application ends. This is convenient in the prototype stage, as we don't have the hassle with manually upgrading data in the database when we change the database structure. Another advantage is that we don't need to keep track of the path where we will store the database permanently.

To connect to a database with JDBC, a connection string has to be provided. The connection string tells JDBC which driver to use, the location of the database, and (often) the required credentials to use when accessing the database. It can also contain DBMS-specific configuration options.

In the older versions of JDBC, it was required ...

Get Introduction to JVM Languages now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.