From 87acc3d3cbf145350ab79adfaf46a62fc59e3389 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Thu, 25 Jul 2019 11:43:35 -0700 Subject: [PATCH] Add caveat about HikariCP username --- doc/getting-started.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/getting-started.md b/doc/getting-started.md index 8797dab..46ed586 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -174,6 +174,8 @@ Then import the appropriate classes into your code: Finally, create the connection pooled datasource. `db-spec` here contains the regular `next.jdbc` options (`:dbtype`, `:dbname`, and maybe `:host`, `:port`, `:classname` etc). Those are used to construct the JDBC URL that is passed into the datasource object (by calling `.setJdbcUrl` on it). You can also specify any of the connection pooling library's options, as mixed case keywords corresponding to any simple setter methods on the class being passed in, e.g., `:connectionTestQuery`, `:maximumPoolSize` (HikariCP), `:maxPoolSize`, `:preferredTestQuery` (c3p0). +Note: HikariCP expects `:username` instead of `:user` when supplying authentication credentials. c3p0 expects `:user`, just like in a regular db-spec hash map. + 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): ```clojure