Driver

Description

The fully qualified classname of the jdbc driver to use to connect to the database.

This must match the driver for the database type in the url you are using.

If you use a driver class that is not shipped with MigrateDB, you must ensure that it is available on the classpath ( see Adding to the classpath).

Default

Auto-detected based on the url

Usage

Command line

./migratedb -driver=com.microsoft.sqlserver.jdbc.SQLServerDriver info

Configuration File

migratedb.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver

Environment Variable

MIGRATEDB_DRIVER=com.microsoft.sqlserver.jdbc.SQLServerDriver

API

MigrateDb.configure()
    .driver("com.microsoft.sqlserver.jdbc.SQLServerDriver")
    .load()