JDBC Driver

    The driver is also available from Maven Central:

    The Presto JDBC driver has the following requirements:

    • Java version 8 or higher.

    The following JDBC URL formats are supported:

    For example, use the following URL to connect to Presto running on example.net port 8080 with the catalog hive and the schema sales:

    The above URL can be used as follows to create a connection:

    The driver supports various parameters that may be set as URL parameters or as properties passed to DriverManager. Both of the following examples are equivalent:

    These methods may be mixed; some parameters may be specified in the URL while others are specified using properties. However, the same parameter may not be specified using both methods.