datahike-postgres icon indicating copy to clipboard operation
datahike-postgres copied to clipboard

Can't run example on README

Open mauricioszabo opened this issue 5 years ago • 3 comments

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

mauricioszabo avatar Jul 29 '20 14:07 mauricioszabo

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

mauricioszabo avatar Jul 29 '20 14:07 mauricioszabo

Thanks for reporting, looks good to me. :+1:

whilo avatar Jul 30 '20 16:07 whilo

Tested, works. Please merge :)

mdrobulis avatar Feb 21 '21 17:02 mdrobulis