This section explains how to connect to a database.
Using the DriverManager Class
Using the PGConnectionPoolDataSource Class
Using the PGXADataSource Class
Note
Do not specify "V2" for the "protocolVersion" of the connection string.