From c0c2522e2885697bc027c6ccb6b7b1f57b466a28 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Thu, 18 Mar 2021 14:15:54 -0700 Subject: [PATCH] Add example JDBC drivers/versions --- doc/getting-started.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/getting-started.md b/doc/getting-started.md index 747abd4..012a102 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -20,7 +20,13 @@ for `deps.edn` or: ``` for `project.clj` or `build.boot`. -**In addition, you will need to add dependencies for the JDBC drivers you wish to use for whatever databases you are using.** You can see the drivers and versions that `next.jdbc` is tested against in [the project's `deps.edn` file](https://github.com/seancorfield/next-jdbc/blob/develop/deps.edn#L10-L27), but many other JDBC drivers for other databases should also work (e.g., Oracle, Red Shift). +**In addition, you will need to add dependencies for the JDBC drivers you wish to use for whatever databases you are using. For example:** + +* MySQL: `mysql/mysql-connector-java {:mvn/version "8.0.19"}` ([search for latest version](https://search.maven.org/artifact/mysql/mysql-connector-java)) +* PostgreSQL: `org.postgresql/postgresql {:mvn/version "42.2.10"}` ([search for latest version](https://search.maven.org/artifact/org.postgresql/postgresql)) +* Microsoft SQL Server: `com.microsoft.sqlserver/mssql-jdbc {:mvn/version "8.2.1.jre8"}` ([search for latest version](https://search.maven.org/artifact/com.microsoft.sqlserver/mssql-jdbc)) + +> Note: these are the versions that I've tested `next.jdbc` against but there may be more recent versions and those should generally work too -- click the "search for latest version" link to see all available versions of those drivers on Maven Central. You can see the full list of drivers and versions that `next.jdbc` is tested against in [the project's `deps.edn` file](https://github.com/seancorfield/next-jdbc/blob/develop/deps.edn#L10-L27), but many other JDBC drivers for other databases should also work (e.g., Oracle, Red Shift). ## An Example REPL Session