Connecting using the JDBC Driver Manager
- Last Updated: June 12, 2023
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
One way to connect to a service is through the JDBC
DriverManager using the DriverManager.getConnection()
method. As the following example shows, this method specifies a string containing a
connection URL.
Connection conn = DriverManager.getConnection
(jdbc:datadirect:googleanalytics4:AddTables='{myTableDefinitionString}';
ClientID=client_id.apps.googleusercontent.com;ClientSecret=client_secret;
RefreshToken=refresh_token;[property=value[;...]]);