datahike-postgres
datahike-postgres copied to clipboard
Can't run example on README
My configuration for PostgreSQL is the following:
(def cfg {:store {:backend :pg
:host "localhost"
:port 5432
:user "postgres"
:password ""
:dbname "dhike"}})
As I'm currently running locally, I don't need a password. This is printed on the console when I try to connect to Datahike:
INFO: No default configuration found for :pg
INFO: Not configuration spec found for :pg
WARNING: JDBC URL must contain a / at the end of the host or port: jdbc:postgresql://localhost:5432
More info on this: it seems that it does not add the :user nor the :dbname to the connection string.
If I change :dbname to :path "/dhike", it still does not add the user
Thanks for reporting, looks good to me. :+1:
Tested, works. Please merge :)