Skip to content

Commit

Permalink
Add convenience method for creating connections
Browse files Browse the repository at this point in the history
  • Loading branch information
rbarbey committed Jan 25, 2024
1 parent dc0e3da commit 855cd28
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,17 @@ public Driver getJdbcDriverInstance() throws NoDriverFoundException {
return driver;
}

/**
* Creates a connection to the underlying containerized database
* instance without any parameters.
*
* @return a Connection
* @throws SQLException if there is a repeated failure to create the connection
*/
public Connection createConnection() throws SQLException, NoDriverFoundException {
return createConnection("");
}

/**
* Creates a connection to the underlying containerized database instance.
*
Expand Down

0 comments on commit 855cd28

Please sign in to comment.