Class Hikari

    • Method Detail

      • createDataSource

        public static com.zaxxer.hikari.HikariDataSource createDataSource​(String jdbcUrl)
                                                                   throws SQLException
        Create a data source for the provided URL, relative to the current working directory.
        Parameters:
        jdbcUrl - URL to connect to
        Returns:
        a new data source
        Throws:
        SQLException - if unable to resolve a driver for the URL
        Since:
        2.0.0
      • createDataSource

        public static com.zaxxer.hikari.HikariDataSource createDataSource​(String jdbcUrl,
                                                                          Path baseDir)
                                                                   throws SQLException
        Create a data source for the provided jdbcUrl, with any filesystem paths made relative to baseDir.
        Parameters:
        jdbcUrl - URL to connect to
        baseDir - base directory
        Returns:
        a new data source
        Throws:
        SQLException - if unable to resolve a driver for the URL
        Since:
        2.0.0