Registry / database / redshift-jdbc42

redshift-jdbc42

JSON →
library2.2.7javamavenunverified

Java JDBC 4.2 (JRE 8+) driver for connecting to Amazon Redshift databases.

<dependency> <groupId>com.amazon.redshift</groupId> <artifactId>redshift-jdbc42</artifactId> <version>2.2.7</version> </dependency>
INSTALL
IMPORT
SIG · REDSHIFT-JDBC42
R
redshift-jdbc42
databasejavav2.2.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Driver
✓ com.amazon.redshift.jdbc42.Driver

Connects to an Amazon Redshift database using JDBC.

import java.sql.Connection; import java.sql.DriverManager; import com.amazon.redshift.jdbc42.Driver; public class Example { public static void main(String[] args) throws Exception { String url = "jdbc:redshift://host:5439/db?user=user&password=pass"; Connection conn = DriverManager.getConnection(url); System.out.println("Connected to Redshift"); conn.close(); } }
Debug
Known issues
breakingDriver class name changed in version 2.x from com.amazon.redshift.jdbc.Driver to com.amazon.redshift.jdbc42.Driver.
fix
Update import and Class.forName to use com.amazon.redshift.jdbc42.Driver for JRE 8+.
affects: >=2.0.0
Upgrade
Version history
2.2.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Meta
1
Amazon
1
Resources
redshift-jdbc42 — mvn dependency:get redshift-jdbc42 · libregistry