driver

The driver global parameter is a string that sets the driver for the target database you're using with Liquibase.

Uses

Each database has its own driver, such as oracle.jdbc.OracleDriver for an Oracle database. Liquibase automatically specifies the driver for most supported databases. However, you can also specify a custom database driver in the driver parameter.

For more information on the parameters you need to specify to run Liquibase commands, see Create and Configure a liquibase.properties File.

Syntax

You can set this parameter in the following ways:

Option Syntax
Liquibase properties file
liquibase.driver: <string>
Global flow file argument (example)
stages:
  Default:
    actions:
      - type: liquibase
        command: diff
        globalArgs: { driver: "<string>" }
Global CLI parameter
liquibase
 --driver=<string> diff
 --changelog-file=example-changelog.xml

JVM system property (JAVA_OPTS Environment Variable)

JAVA_OPTS=-Dliquibase.driver=<string>
Liquibase Environment Variables
LIQUIBASE_DRIVER=<string>

For more information, see Working with Command Parameters.

Related links