O'Reilly logo

Introduction to JVM Languages by Vincent van der Leun

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required