seancorfield / next-jdbc

A modern low-level Clojure wrapper for JDBC-based access to databases.
https://cljdoc.org/d/com.github.seancorfield/next.jdbc/
Eclipse Public License 1.0
755 stars 90 forks source link

username as an alias for user? #192

Closed seancorfield closed 2 years ago

seancorfield commented 2 years ago

Given the potential confusion that everything really needs :user except for HikariCP which requires :username, can we reduce the confusion by treated one as an alias for the other in all cases?

seancorfield commented 2 years ago

Since HikariCP is not a dependency and it wouldn't be "safe" to just assume that the presence of either key should mean both are present, there is no easy way to do this within next.jdbc.