public interface ConnectionProvider
Modifier and Type | Method and Description |
---|---|
BaseConnection |
connect(HostSpec hostSpec,
Properties props,
@Nullable String url)
Called once per connection that needs to be created.
|
BaseConnection connect(HostSpec hostSpec, Properties props, @Nullable String url) throws SQLException
hostSpec
- The HostSpec containing the host-port information for the host to connect toprops
- The Properties to use for the connectionurl
- The connection URLConnection
resulting from the given connection informationSQLException
- if an error occursCopyright © 1997-2021 PostgreSQL Global Development Group. All Rights Reserved.