JDBC Driver for Streak

Build 23.0.8839

Establishing a Connection

Creating a JDBC Data Source

You can create a JDBC data source to connect from your Java application. Creating a JDBC data source based on the CData JDBC Driver for Streak consists of three basic steps:

  • Add the driver JAR file to the classpath. The JAR file is located in the lib subfolder of the installation directory. Note that the .lic file must be located in the same folder as the JAR file.
  • Provide the driver class. For example:
    cdata.jdbc.streak.StreakDriver
  • Provide the JDBC URL. For example:
    jdbc:streak:ApiKey=8c84j9b4j54762ce809ej6a782d776j3;
    
    or
    
    jdbc:cdata:streak:ApiKey=8c84j9b4j54762ce809ej6a782d776j3;

    The second format above can be used whenever there is a conflict in your application between drivers using the same URL format to ensure you are using the CData driver. The URL must start with either "jdbc:streak:" or "jdbc:cdata:streak:" and can include any of the connection properties in name-value pairs separated with semicolons.

Use the BASIC Authentication standard to connect to Streak. BASIC Auth requires the authenticating user to interact with Streak using the browser. The driver facilitates this in various ways as described below.

Authenticate a Streak Account

A (BASIC) authentication key must be created for your Streak account.

  • If Streak hasn't been fully installed, navigate to the Streak website and click Add to Chrome at the top of the page. Install the extension. Note that Google Chrome and Safari are the only browsers supported by Streak.
  • In your Gmail inbox, click the Streak icon at the top of the page for a dropdown, and select Integrations.
  • Under Integrations, navigate to Streak API section.
  • Select Get API Key to retrieve the API Key from Streak.
  • Set the ApiKey connection property to the retrieved API Key to connect to data.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839