JDBC uses drivers that implement the JDBC API, and provides access to low-level functionality for working with specific databases.
URLs are how you tell the JDBC driver which database you want to connect to. The first part of the URL is always jdbc:<driverId>: where driverId is the specific name that the driver expects to see (for example, postgresql , mysql or, in your case, sqlite .) The format of the URL after the driver-specific driver identifier drivers. With mysql and postgres, where you usually connect via TCP to the database server, you will see this format:
jdbc:mysql://dbserver:dbport/databaseName jdbc:postgresql://dbserver:dbport/databaseName
But since SQLite is a local in-process database, the part of the URL after the driver ID is just the path to the file system, for example:
jdbc:sqlite:/home/me/my-db-file.sqlite
source share