From 22b7e6df6164aeb938048f8173c56f0638150d15 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Fri, 26 Jul 2019 12:39:52 -0700 Subject: [PATCH] Reword username/user caveat for HikariCP --- doc/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/getting-started.md b/doc/getting-started.md index 635dd96..bb9f3c4 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -176,7 +176,7 @@ Finally, create the connection pooled datasource. `db-spec` here contains the re Some important notes regarding HikariCP: -* Authentication credentials must use `:username` (rather than `:user` for regular db-spec hash maps -- and c3p0). +* Authentication credentials must use `:username` (if you are using c3p0 or regular, non-pooled, connections, then the db-spec hash map must contain `:user`). * When using `:dbtype "jtds"`, you must specify `:connectionTestQuery "SELECT 1"` (or some other query to verify the health of a connection) because the jTDS JDBC driver does not implement `.isValid()` so HikariCP requires a specific test query instead (c3p0 does not rely on this method so it works with jTDS without needing `:preferredTestQuery`). You will generally want to create the connection pooled datasource at the start of your program (and close it before you exit, although that's not really important since it'll be cleaned up when the JVM shuts down):