Class Hikari
- java.lang.Object
-
- ca.stellardrift.permissionsex.sql.hikari.Hikari
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.zaxxer.hikari.HikariDataSourcecreateDataSource(String jdbcUrl)Create a data source for the provided URL, relative to the current working directory.static com.zaxxer.hikari.HikariDataSourcecreateDataSource(String jdbcUrl, Path baseDir)Create a data source for the providedjdbcUrl, with any filesystem paths made relative tobaseDir.
-
-
-
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 providedjdbcUrl, with any filesystem paths made relative tobaseDir.- Parameters:
jdbcUrl- URL to connect tobaseDir- base directory- Returns:
- a new data source
- Throws:
SQLException- if unable to resolve a driver for the URL- Since:
- 2.0.0
-
-