-
Download the Timestream JDBC driver shaded JAR file (e.g.,
amazon-timestream-jdbc-<version>-shaded.jar
) -
Launch the SQuirreL SQL Client application.
-
Ensure the Drivers tab is selected.
-
Navigate to menu path Drivers > New Driver ...
-
For the Name: field, enter Timestream.
-
For the Example JDBC URL: field, enter
jdbc:timestream://AccessKeyId=<myAccessKeyId>;SecretAccessKey=<mySecretAccessKey>;SessionToken=<mySessionToken>;Region=<myRegion>;
-
Select the JDBC Driver Class Path tab.
-
Click the Add button and navigate to the downloaded Amazon Timestream JDBC driver JAR file.
-
Click OK to add the JAR file to the JDBC Driver Class Path.
-
Click the List Drivers button.
-
For the Class Name: field, ensure the
software.amazon.timestream.jdbc.TimestreamDriver
is selected. -
Click the OK button to create and save the driver settings.
-
Launch the SQuirreL SQL Client application.
-
Ensure the Aliases tab is selected.
-
Navigate the menu path Aliases > New Alias...
-
In the popup window, fill the following info
a. For the Name: field, enter a name for this alias. For example,
TimestreamConnection
b. For the Driver: field, ensure Timestream is selected.
c. For the URL: field, enter your JDBC connection string. For example,
jdbc:timestream://AccessKeyId=myAccessKeyId;SecretAccessKey=mySecretAccessKey;SessionToken=oxcdsfsnu;Region=us-east-1;
. For a list of connection properties (e.g., Access Key, Secret Key, etc.), see READMEd. Do NOT use the "User Name:" and "Password:" fields to fill credentials, they could not work.
-
Click OK to save the alias.
-
Double-click your alias to start the connection dialog.
-
Click the Connect button to connect.
-
After you succeed to connect to Timestream, you will be able to see a window like the below example.